Pop up window in ASP.Net
-
Hi, I am developing an application, which needs a pop up window to be opened, when a button is clicked, i have tried out Response.redirect, but then it navigates from one page to another, i want both the windows to be opened, can some body help me in this regard
-
Hi, I am developing an application, which needs a pop up window to be opened, when a button is clicked, i have tried out Response.redirect, but then it navigates from one page to another, i want both the windows to be opened, can some body help me in this regard
You can use
ClientScriptManager.RegisterStartUpScript("name","your popup JS")
to open a popup window. Or use simpleResponse.Write()
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
You can use
ClientScriptManager.RegisterStartUpScript("name","your popup JS")
to open a popup window. Or use simpleResponse.Write()
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
Pls can you be more clear with the post, i have never used the function said above, can you explain the parameters for the function.. and another important issue is that, i am creating the button dynamically and for that button click, i should be able to open a popup window
-
Pls can you be more clear with the post, i have never used the function said above, can you explain the parameters for the function.. and another important issue is that, i am creating the button dynamically and for that button click, i should be able to open a popup window
It is used to register client side scripts to the page. The script you specified inside that will be added to the page. See the following sample.
ClientScriptManager.RegisterStartUpScript("SampleAlert","<script language='javascript'>alert('hi') </script>");
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions