Welcome Guest Search | Active Topics | Sign In | Register

How do you close the msgbox control server side Options
sarad1978
Posted: Thursday, April 29, 2010 11:56:14 AM
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?
eo_support
Posted: Thursday, April 29, 2010 2:22:48 PM
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!
sarad1978
Posted: Thursday, April 29, 2010 3:05:51 PM
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]
eo_support
Posted: Thursday, April 29, 2010 3:11:00 PM
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.