How to open a popup page that has parameters(calculated in button event) in button event
ButtonClick()
{
string id=TextBox.Text;
/////HERE i want to open a popup as "Index.aspx?ID=id" ///////
}
PLESE RESPOND SOON
How to open a popup page that has parameters(calculated in button event) in button event
ButtonClick()
{
string id=TextBox.Text;
/////HERE i want to open a popup as "Index.aspx?ID=id" ///////
}
PLESE RESPOND SOON
You can't really open a normal popup window from code-behind, you have to do it from the client-side.
So, you can make a Javascript function that opens the window with window.open
, accepting some parameters, and then use in code-behind ClientScriptManager.RegisterClientScriptBlock
to make the JS function run after your button click.