Using Message box in code behind

  1. #1

    Using Message box in code behind

    Hello everyone!

    I am trying to use a message box as in the examples on the website in a button click event.
    I do not get the properties that are used in the example to work example...


    ext.msg.alert("Title","message")


    but i can do this...


    Coolite.Ext.Web.MessageBox.Instance.Alert("Title", "message")


    using the latter does not show a message box and clears the panel that I was using from the page...even though the button is handled in an ajax event.
    I know there is something small here that I am missing...
    Thanks
  2. #2

    RE: Using Message box in code behind

    Hi chriskellerx10,

    I think you just need to call .Show(), and you server-side code can be shortened to the following.


    Example


    Ext.Msg.Alert("Title","message").Show();

    Hope this helps.


    Geoffrey McGill
    Founder & CEO
  3. #3

    RE: Using Message box in code behind

    Hi, Thanks for the reply.I get the error...
    Name 'Ext' is not declared.
    When I try that. And if I do 'Coolite.ext.' the only property I have after that is '.Web' I cannot get '.msg'
    Thanks





  4. #4

    RE: Using Message box in code behind

    try add the reference "using Coolite.Ext.Web;"

    and then do it:

    Ext.Msg.Alert("text","text");


    bye.
  5. #5

    RE: Using Message box in code behind

    hbbazan (2/10/2010) try add the reference "using Coolite.Ext.Web;"

    and then do it:

    Ext.Msg.Alert("text","text");


    bye.
    That was it! Thank you. I did not see the other 'ext' parameter after 'Coolite.ext.web'


Similar Threads

  1. Replies: 1
    Last Post: Mar 10, 2012, 3:58 PM
  2. Replies: 2
    Last Post: Feb 01, 2012, 6:56 AM
  3. Replies: 6
    Last Post: Nov 15, 2011, 2:02 AM
  4. Replies: 3
    Last Post: Aug 18, 2010, 9:34 PM
  5. Replies: 1
    Last Post: Sep 14, 2009, 6:10 AM

Posting Permissions