I have been starting to write my graduation project these days, but because something happened, I have been putting off starting it until now.
In fact, I was planning to make a Web project using ASP.NET 2.0 and using AJAX, so I went to the blog park to look for AJAX articles, and happened to find Leon.Zhou's ASP.NET 2.0 official version of the development of non-refresh pages according to code examples and I made a page to explain it, which is really good. Because I almost always use Firefox, I just tested the effect under Firefox, and found that there was no response after clicking the Button...
So I opened the Javascript console and said that Label1 was not defined. Then I looked at the source code. <span id="Label1"></span> I just lay there and skipped it for N minutes< br> Anyway, I thought of two things later. Something I did a few months ago seems to have a similar phenomenon in Firefox. I solved it at the time. I dug out the code and found that Firefox cannot directly reference it by ID. The solution is to use the getElementById() method of the document to return the < br>ReceiveServerData() method. Just change it to this:
function ReceiveServerData(result, context)
{
document.getElementById(context.id).innerHTML=result;
}
In this way, both IE and Firefox can be used normally. Finally, thanks again to Leon.Zhou for his article
source: mini drag-on shore.net