Obao.open ("POST", "Webform1.aspx? Year =" Str, FALSE);
Calling .aspx. Generally, we handle events in Page_Load.
Such as:
String queryvalue = request.querystring ["year"];
IF (! ispostback && queryvalue! = null)
{
Response.write ("1, 2, 3, 4, 5, 6");
}
At this time, the value of the second-level Select is more than 1, 2, 3, 4, 5, 6, and there are many paragraphs of large paragraphs such as "DOCTYP ..." in addition to normal 1, 2, 3, 4, 5, 6. By commissioning, the text of those large segments is actually the code that the server returns to the client's entire page. At this point, Return is added behind the response.write; it is not used.
In order to return to the client necessary numbers, we need to overload the render method, such as:
Protected Override Void Render (HTMLTextWriter Writer)
{
String queryvalue = request.querystring ["year"];
System.Diagnostics.debug.write (queryvalue);
IF (QueryValue! = NULL)
{
Writer.write ("1, 2, 3, 4, 5, 6");
Return;
}
Base.render (Writer);
}
The probably meaning here is that if it is called through XMLHTTP, we will return from the server to the client to 1, 2, 3, 4, 5, 6, and then return, no longer call the default behavior.
Oh, it is solved until this issue is. Can be implemented
Http://dev.9cbs.net/develop/Article/28/28324. The effect in theshtm.