asp.net| | sample | refresh | no Refresh | page
These days are beginning to start writing graduation design, because something happened, so have been dragged until now to start.
In fact, I'm going to do a asp.net 2.0 and use AJAX Web projects, so I went to the blog Park looking for Ajax articles, just turned to Leon.zhou asp.net 2.0 official version of the No Refresh page development
Follow the code examples and explanations to make a page that's really nice. Because I almost always use Firefox, so I just tested the effect of Firefox, the results found that the button was not after the response ...
So open the JavaScript console and say that LABEL1 is not defined
Again looked at the source code, <span id= "Label1" ></span> lay there
After n minutes Skip < br> Anyway, I thought about what I did two months ago. As if there was a similar phenomenon in Firefox, at that time to solve, turn out the code
Firefox cannot be referenced directly by ID
The solution is to use the getElementById () method of document to return the < Br>receiveserverdata () method.
function Receiveserverdata (result, context)
{
document.getElementById (context.id). Innerhtml=result;
}
So IE and Firefox can be used normally
Finally, thanks again for Leon.zhou's article.