Tuesday, July 14, 2009

How can I change the statusbar using ASP.Net C# ?

I want to change the text in the status bar using the ASP.Net C# code? how can I do that?

How can I change the statusbar using ASP.Net C# ?
Changing the status bar can only be done from Javascript, so it can be changed any time the page refreshes or if you're using AJAX it could be changed without refreshing the whole page.





In Javascript you would use:





window.status = 'Message';





You could write a Javascript function that, when the page loads, it displays the contents of a hidden field that could be set from the server (C#) side.


No comments:

Post a Comment