Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 20, 2012 06:27 AM by Zhongqing Tang - MSFT
Member
202 Points
266 Posts
Apr 04, 2012 01:24 PM|LINK
Bellow is my code in C#.net code behind .
ClientScript.RegisterStartupScript(this.GetType(), "newWindow", String.Format("<script>window.location('{0}');</script>", "http://www.test.com/pop.html"));
I dont want new window. I want to show it as pop up page.
Plz help me. If possible send the code
468 Points
214 Posts
Apr 04, 2012 01:27 PM|LINK
try this
ClientScript.RegisterStartupScript(this.GetType(), "newWindow", String.Format("<script>window.location('{0}');</script>", "http://www.test.com/pop.html") , false);
i have tested this and working fine
Star
10512 Points
1354 Posts
Apr 20, 2012 06:27 AM|LINK
Hi,
Instead of window.location, I suggest you try window.open
ClientScript.RegisterStartupScript(this.GetType(), "newWindow", String.Format("<script>window.open('{0}');</script>", "http://www.test.com/pop.html"));
Regards
muji85a
Member
202 Points
266 Posts
pop up html page calling not working
Apr 04, 2012 01:24 PM|LINK
Bellow is my code in C#.net code behind .
ClientScript.RegisterStartupScript(this.GetType(), "newWindow", String.Format("<script>window.location('{0}');</script>", "http://www.test.com/pop.html"));
I dont want new window. I want to show it as pop up page.
Plz help me. If possible send the code
newbiefreak
Member
468 Points
214 Posts
Re: pop up html page calling not working
Apr 04, 2012 01:27 PM|LINK
try this
ClientScript.RegisterStartupScript(this.GetType(), "newWindow", String.Format("<script>window.location('{0}');</script>", "http://www.test.com/pop.html") , false);
i have tested this and working fine
Zhongqing Ta...
Star
10512 Points
1354 Posts
Re: pop up html page calling not working
Apr 20, 2012 06:27 AM|LINK
Hi,
Instead of window.location, I suggest you try window.open
ClientScript.RegisterStartupScript(this.GetType(), "newWindow", String.Format("<script>window.open('{0}');</script>", "http://www.test.com/pop.html"));Regards
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework