Hi,
I am using a modalpopup extender to display the login panel. At login button click page is not getting redirected .. What could be the reason plzz see the attachment
Loading
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 attend5days leftRegister
Suthish NairRank #92 · 22.8K reputationPosted Aug 25, 2011, 8:14 AM EDT
By default OK button on a modal dialog does not do a postback,
It is used for executing javascript on the browser that hides the popup.
If you need a post back just remove the OkControlID property..
Wrap the controls in update panel with update mode as conditional then hit the button for redirection.
Satish BhatRank #2,496 · 563 reputationPosted Aug 25, 2011, 1:40 AM EDT
from the aspx page and try.
B M SuchitraRank #2,922 · 492 reputationPosted Aug 25, 2011, 1:41 AM EDT
I tried but did not help..
Satish BhatRank #2,496 · 563 reputationPosted Aug 25, 2011, 2:11 AM EDT
Try putting a break point at
protected void btnlogin_Click(object sender, EventArgs e)
and check.
B M SuchitraRank #2,922 · 492 reputationPosted Aug 25, 2011, 2:40 AM EDT
I checked by applying break point.. The event does not go to the break point itself
Satish BhatRank #2,496 · 563 reputationPosted Aug 25, 2011, 4:13 AM EDT
Biswa Pujarini MohapatraRank #465 · 5.4K reputationPosted Aug 25, 2011, 4:19 AM EDT
I see there is some issue on your code. Please TargetControlID = "btnlogin" and try.
Satish BhatRank #2,496 · 563 reputationPosted Aug 25, 2011, 4:31 AM EDT
TargetControlID is the ID of the element that activates the modal popup
In this case it is a link button loginbtn
B M SuchitraRank #2,922 · 492 reputationPosted Aug 25, 2011, 8:59 PM EDT
Suthish NairRank #92 · 22.8K reputationPosted Aug 25, 2011, 11:23 PM EDT