I seem to have an issue with using jQuery to do a PostBack.
I can post back no problems but non of my page control values are there.
The code is like this;
WebForm.aspx;
<script src="/jQueryPlugins/jQuery.Form.js" type="text/javascript"></script>
<form id="myForm" action="MyForm.aspx" method="post">
<input type="text" runat="server" id="txtApplicantFirstName" />
</form>
also
$(document).ready(function() {
$('#myForm').ajaxForm(function() { alert(99); });
}
Then in my code behind;
protected void Page_Load(object sender, EventArgs e)
{
string h = txtApplicantFirstName.Value;
}
Why is string h is always empty?
EDIT
I am posting like this in my javascript on the press of an anchor.
$('#myForm').submit();
Edit 2
I just tried the above code in a brand new application and it works. The only difference I can see now is that I am using a master page so the form is in the master page.