Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 9th, 2013  |  syntax: None  |  size: 0.33 KB  |  hits: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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);