Advertisement
Guest User

Untitled

a guest
Aug 9th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. $(function() {
  2. $('body').append(
  3. $('<input/>')
  4. .attr('type', 'hidden')
  5. .attr('name', 'foo')
  6. .val('some value')
  7. );
  8. });
  9.  
  10. HiddenField field = new HiddenField();
  11. field.ID = "HiddenField1";
  12. field.Value = "SomeValue";
  13. (this.Page.FindControl("form1") as HtmlForm).Controls.Add(field);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement