L
Lee Alexander
I'm trying to get a plain vanilla form post to work separate from the view
state stuff. So I started a new Website via Visual Studio 2005 and turned
off the ViewState for the default page by using EnableViewState="false",
then I added the following HTML to the asp page:
<form method="POST" action="Default.aspx" id="formId"
enctype="text/plain">
<input type="text" name="blah" />
<input type="submit" value="Submit" />
</form>
followed by some code in the pageload method:
protected void Page_Load(object sender, EventArgs e)
{
string s = this.Request.Form.Get( "blah" );
System.Diagnostics.Debug.WriteLine( s );
}
The problem is that I never get 'blah' coming through after submitting the
form. I'm sure i'm doing something really stupid here, could anyone put me
our of my misery???
Regards
Lee
state stuff. So I started a new Website via Visual Studio 2005 and turned
off the ViewState for the default page by using EnableViewState="false",
then I added the following HTML to the asp page:
<form method="POST" action="Default.aspx" id="formId"
enctype="text/plain">
<input type="text" name="blah" />
<input type="submit" value="Submit" />
</form>
followed by some code in the pageload method:
protected void Page_Load(object sender, EventArgs e)
{
string s = this.Request.Form.Get( "blah" );
System.Diagnostics.Debug.WriteLine( s );
}
The problem is that I never get 'blah' coming through after submitting the
form. I'm sure i'm doing something really stupid here, could anyone put me
our of my misery???
Regards
Lee