I wan to display popup window like when click on Add To Bag and display login popup window (use asp net Login control) when click on CheckOut in the following link, how can i do this in asp net c#?
yes ModalPopup can do that, but ModalPopup can not support X close button, it i write cancel button, it postpack to page so make it run slowly. how can i support X close for ModalPopup and how to call ModalPopup when check Authenticated or UnAuthenticated
when click on TargetControlID?
minhpg
Member
19 Points
98 Posts
Display popup window?
May 14, 2012 04:19 AM|LINK
I wan to display popup window like when click on Add To Bag and display login popup window (use asp net Login control) when click on CheckOut in the following link, how can i do this in asp net c#?
http://www.hsn.com/electronics/cameras_c-ec0108_xc.aspx?o=!TNEC&cm_sp=TN*Electronic*Cameras&prev=hp!sf&lastbc=!dept&sf=EC&osf=EC
Thanks,
anuj_koundal
Contributor
2088 Points
495 Posts
Re: Display popup window?
May 14, 2012 04:40 AM|LINK
You can use: Modal Popup Extender from the Ajax control toolkit:
Regards
Anuj Koundal
ramiramilu
All-Star
95275 Points
14072 Posts
Re: Display popup window?
May 14, 2012 01:39 PM|LINK
Modalpopups using JQuery Examples -
http://dinbror.dk/bpopup/
And for login screen check out this specific thread - http://stackoverflow.com/questions/867109/jquery-login-modal-popup-for-asp-net-2-o-page
Thanks,
JumpStart
minhpg
Member
19 Points
98 Posts
Re: Display popup window?
May 17, 2012 01:53 AM|LINK
Yes ModalPopup can do that, but ModalPopup can not support Close button? if i write Cancel button , it make postpack to page, make page run slowly.
How can i support close X for modalPopup?
thanks,
minhpg
Member
19 Points
98 Posts
Re: Display popup window?
May 17, 2012 01:59 AM|LINK
yes ModalPopup can do that, but ModalPopup can not support X close button, it i write cancel button, it postpack to page so make it run slowly. how can i support X close for ModalPopup and how to call ModalPopup when check Authenticated or UnAuthenticated when click on TargetControlID?
Thanks,
ManojNR
Member
114 Points
59 Posts
Re: Display popup window?
May 17, 2012 04:22 AM|LINK
private void MessageBox(string msg) { string script = "<script language='javascript' type='text/javascript'>" + Environment.NewLine + "window.setTimeout(\"alert('" + msg + "')\", 500);</script>"; ScriptManager.RegisterStartupScript(Page, this.GetType(), "AlertMessage", script, false); }Call this method in button click event... and u can pass the message whatever u want
MessageBox("message");