Reputation: 1261
i m building a website in asp.net using c#.. can nyone tell me ..is it possible to either call a pageload function or load a page from javascript
Upvotes: 1
Views: 930
Reputation: 35790
window.location.reload()
And just for future reference, you could have found that in 10 seconds by Googling "javascript reload".
Upvotes: 0
Reputation: 6122
you can call __dopostback javascript method:
__doPostBack('ControlId','');
http://aspalliance.com/895_Understanding_the_JavaScript___doPostBack_Function.all
Upvotes: 0
Reputation: 123831
Do you want to go to another page like from yourpage.com to example.com?
If yes, you can use location.href="http://example.com"
in javascript.
Upvotes: 0
Reputation: 187040
Use
Returns a Location object, which contains information about the URL of the document and provides methods for changing that URL. You can also assign to this property to load another URL.
Upvotes: 1