Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to reload a page

Status
Not open for further replies.

linpin

Programmer
Oct 31, 2003
1
DE
hi there,
i wnat to reload a page, when the user clicks on a button.
i tried to manage this with javascript, something like
window.open(url) or location.reload, but i can`t get it run.
in c# i`ve tried :
string popupScript = &quot;<script language='javascript'>&quot; +
&quot;window.open('PopUp.aspx', 'CustomPopUp', &quot; +
&quot;'width=200, height=200, menubar=yes, resizable=no')&quot; +
&quot;</script>&quot;;

Page.RegisterStartupScript(&quot;PopupScript&quot;, popupScript);
but the javascript won`t run.
how can i run javascript in c#?
thanx
bernd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top