Click here to Skip to main content
15,902,634 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
Can I display Ajax popup on asp.net web page based on the logic in code behind(C#.Net)

Please advice..
Thanks
Posted

yes.you can display it using c#.net;
first you create a object for it and assign properties like is,target control id,popup control id etc.,
call the method show method using this object.
ex:
modalpopupextender pop = new modalpopupextender.
pop.id;
pop.show();

i think this will solve your requirement.
 
Share this answer
 
// From code behind
protected void Button1_Click(object sender, EventArgs e)
{
   ModalPopupExtender1.Show();
}
 
Share this answer
 
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900