[CLOSED] Message box confirm dialogue handling

  1. #1

    [CLOSED] Message box confirm dialogue handling

    Hi,

    I want to know the return value of the confirm dialogue(Yes, No or Cancel) and need to do some bussiness logic depending on the use click.

    I am trying following code but could not catch the user input(Yes, No or Cancel)

    How to achive this ?

    
    
    
    MessageBox mbConfirm;MessageBox mbConfirm;
    mbConfirm=Ext.Msg.Confirm("Title", "Do you want to continue").Show();
    string st=mbConfirm.ButtonText.ToString(); 
    
    if(st=="Yes")
    {
    }
    else if(st=="No")
    {
    }
  2. #2

    RE: [CLOSED] Message box confirm dialogue handling

    Hi,

    Please see the following sample which demonstrates how to call code-behind method depending on clicked button https://examples1.ext.net/#/MessageBox/Basic/ButtonsConfig/

  3. #3

    RE: [CLOSED] Message box confirm dialogue handling

    Vladsch,


    I tried this in the past but I getting errors when I tried to build that

    Added a new page testpage.apsx and tried the example.....I am using .net 2005 Environment with 3.5 Framework

    Attaching the screen shot, with error message.

    Please tell me where to change to work the same example in .net 2005 environment
  4. #4

    RE: [CLOSED] Message box confirm dialogue handling

    Hi,

    Just that example is using .NET 3.0 feature called 'Object Initializers'. Please see the following article which can help you how to convert to the .NET 2.0 syntax


    http://weblogs.asp.net/scottgu/archi...tializers.aspx
  5. #5

    RE: [CLOSED] Message box confirm dialogue handling

    Vladsch,

    Hope you forgot to give the details of the article to convert Object Initializers .Net 3.0 to .Net 2.0
  6. #6

    RE: [CLOSED] Message box confirm dialogue handling

  7. #7

    RE: [CLOSED] Message box confirm dialogue handling

    Etisbew (8/6/2009) Vladsch,

    Hope you forgot to give the details of the article to convert Object Initializers .Net 3.0 to .Net 2.0
    Just set the properties explicitly like you normally would when creating an object.

    Geoffrey McGill
    Founder
  8. #8

    RE: [CLOSED] Message box confirm dialogue handling

    Thank you Vladsch and Geoffray

    We moved to .net 2008 environmnet.....no issues ;)

Similar Threads

  1. confirm message box problem
    By mehmood in forum 1.x Help
    Replies: 6
    Last Post: Jun 21, 2012, 1:47 PM
  2. Confirm message handler
    By norphos in forum 1.x Help
    Replies: 1
    Last Post: May 18, 2011, 6:51 AM
  3. [CLOSED] Message Box event handling
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 19, 2009, 12:52 PM
  4. [CLOSED] confirm message problem
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 12, 2009, 5:43 AM

Posting Permissions