Hello All,
I want to display a popup window when i click on a button.Please anyone send me the code.
Thanks & Regards
Prashant S. More
Hello All,
I want to display a popup window when i click on a button.Please anyone send me the code.
Thanks & Regards
Prashant S. More
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
ramarajan ra41 reputationPosted Jul 9, 2008, 4:07 AM EDT
hi.
try in this link, i found this and cleared my solution, try this link
http://forums.asp.net/tags/popup/default.aspx?PageIndex=5
regards
ram
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Jul 9, 2008, 8:00 AM EDT
You can do it by using javascript. Say your popup page name is 'ForgotPassword.aspx'
and your button id is 'btnGo'
.aspx page coding:
function OpenForgotPassword()
{
strUrl="ForgotPassword.aspx";
x = window.showModalDialog(strUrl,"newwin","dialogHeight:20;dialogWidth:36; status:No; edge:Raised; center:yes; help:No; resizable:No; ")
}
.aspx.cs page coding
protected void Page_Load(object sender, EventArgs e)
{
btnGo.Attributes.Add("onclick","return OpenForgotPassword();");
}
Ryan AlfordRank #1,411 · 1.2K reputationPosted Jul 11, 2008, 9:03 AM EDT
Response.Write("");
kareem elhosseny12 reputationPosted Jul 11, 2008, 11:57 PM EDT
it working with me
Response.Write("");