based on the session modalpopup extrender have to show
-
hi i have a link button..., the link button have 2 modalpopupextender..., based on the session value i like to view a modalpopupextender..., but its showing two modal popup extender at a time..., how to solve this..., this is my piece code: Post Comment
Drag To Ur Place
Drag To Ur Place
code bolck: protected void LinkButton2_Click(object sender, EventArgs e) { if (Session["uname"] == null) { ModalPopupExtender1.Show(); } else { ModalPopupExtender2.Show(); } }
Thanks & Regards, Member 3879881, please don't forget to vote on the post
-
hi i have a link button..., the link button have 2 modalpopupextender..., based on the session value i like to view a modalpopupextender..., but its showing two modal popup extender at a time..., how to solve this..., this is my piece code: Post Comment
Drag To Ur Place
Drag To Ur Place
code bolck: protected void LinkButton2_Click(object sender, EventArgs e) { if (Session["uname"] == null) { ModalPopupExtender1.Show(); } else { ModalPopupExtender2.Show(); } }
Thanks & Regards, Member 3879881, please don't forget to vote on the post
Member 3879881 wrote:
protected void LinkButton2_Click(object sender, EventArgs e) { if (Session["uname"] == null) { ModalPopupExtender1.Show(); } else { ModalPopupExtender2.Show(); } }
Try To Hide other POPUP Extender alternately. void LinkButton2_Click(object sender, EventArgs e) { if (Session["uname"] == null) { ModalPopupExtender1.Show(); ModalPopupExtender2.Hide(); } else { ModalPopupExtender2.Show(); ModalPopupExtender1.Hide(); } Any Problem with this?
Sundeep Ganiga When the only tool you have is a hammer, everything looks like a nail. Come Forth Yourself to Click "Good Answer" for any expected solution. Let us Support our C Project Programmers who provide solutions here.
-
hi i have a link button..., the link button have 2 modalpopupextender..., based on the session value i like to view a modalpopupextender..., but its showing two modal popup extender at a time..., how to solve this..., this is my piece code: Post Comment
Drag To Ur Place
Drag To Ur Place
code bolck: protected void LinkButton2_Click(object sender, EventArgs e) { if (Session["uname"] == null) { ModalPopupExtender1.Show(); } else { ModalPopupExtender2.Show(); } }
Thanks & Regards, Member 3879881, please don't forget to vote on the post
What I have done in the past is to use a dummy control as the TargetControlID and then set the display property of that control to 'None'. The problem you're having is that LinkButton2 activates both ModalPopupExtenders on the client, whereas what you really want to do is show one of them from the server. Placing a hidden dummy control on your form will mean that the ModalPopupExtenders never get activated from the client.