|
Rank: Member Groups: Member
Joined: 11/25/2008 Posts: 22
|
I use the msgbox and display an "ok" and "cancel" button to the user, when you click ok, i use the e.command name and perform logic but the msgbox stays on the screen. I tried to "dispose" the object but it still hangs. Is there a "close" option some how?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You don't need to do anything special to close the msgbox unless you have something special to keep the dialog open. Try with a blank page and you should see it works just fine. You can then compare your page with the working page to find out what has been keeping the dialog open.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 11/25/2008 Posts: 22
|
it works as long as i don't have mutliple buttons. the msgbox i'm trying to "close" has and ok and a cancel button and the code fires but the box stays open. Below is how i'm checking to see if user clicked ok. I'm not 100% what i'm doing wrong.
Code: C#
protected void MsgBox1_ButtonClick(object sender, CommandEventArgs e)
{
if (e.CommandName == "ok")
{
UserCertAct();
}
}[code=cs]
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
That does not make sense at all. Please post a complete test page that demonstrates the problem. Make sure it only includes the code that's necessary to reproduce the problem and runs independently. We will try to run it here and see what we can find.
Thanks
|
|