Skip to content

Instantly share code, notes, and snippets.

@gwing33
Created July 5, 2011 21:06
Show Gist options
  • Save gwing33/1065942 to your computer and use it in GitHub Desktop.
Save gwing33/1065942 to your computer and use it in GitHub Desktop.
So...because I couldn't create a form on a asp.net page I ended up creating on in the master file outside the usercontrol form then using javascript to write the form...crap on so many levels.
$('#adword_save').click(function() {
var el = $('#submit_form');
var form_html = '<input type="hidden" id="filename" name="filename" value="adwords.csv" />' +
'<input type="hidden" id="content" name="content" value="' + $('#copy_text').val() + '" />';
el.attr({method: 'post', action: '/some/api/location.aspx'});
el.html(form_html);
el.submit();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment