In my application, When the user clciks a button,some coding wil run, after that a popup window should appear, with a image button and its saved to sql server.
I am using asp.net 2.0
Plz help me
In my application, When the user clciks a button,some coding wil run, after that a popup window should appear, with a image button and its saved to sql server.
I am using asp.net 2.0
Plz help me
Hi Anusha,
You can run the code asynchronously using ajax and initiate a ModalPopUp which will pop up with your requirement (image or anything you want) after running the code. Hope this helps.
Thanks
You can use Page.ClientScript.RegisterStartupScript to open a popup window from ASP.NET code behind. For example
protected void LinkButton1_Click(object sender, EventArgs e)
{
//Write some code here
string url = "TestPage2.aspx";
ClientScript.RegisterStartupScript(this.GetType(), "newWindow", String.Format("<script>window.open('{0}');</script>", url));
}
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.