Message alert in the .cs

  1. #1

    Message alert in the .cs

    I wanna know if is possible shooting Ext.Msg.alert() in the .cs?

    Thanks for attention!
  2. #2

    RE: Message alert in the .cs

    Currently there is no C# class for Ext.Msg, but this is a high priority for us to include and will be adding to the Toolkit very soon.*


    For now (v0.7) you can use .AddScript() and hand roll the required JavaScript.


    Example


    this.ScriptManager.AddScript("Ext.Msg.alert('Message','{0}');","Hello World");

    Geoffrey McGill
    Founder
  3. #3

    RE: Message alert in the .cs

    It will be very useful this property. But I need shooting the message in page.ascx and I'm not achieved calling the ScriptManager into page.ascx.cs.
    How I do it?

    Thanks for attention Geoffrey!
  4. #4

    RE: Message alert in the .cs

    The .AddScript Method is part of the Coolite Toolkit base Control (WebControl.cs), so the Method is available to all Controls. You do not have to specifically use the ScriptManager.*

    Another option would be to add an <ext:ScriptManagerProxy> control to your .ascx UserControl.


    Hope this helps.


    Geoffrey McGill
    Founder
  5. #5

    RE: Message alert in the .cs



    Problem solved!

    Thanks for attention Geoffrey!

Similar Threads

  1. Replies: 1
    Last Post: Mar 10, 2012, 3:58 PM
  2. Replies: 3
    Last Post: Aug 18, 2010, 9:34 PM
  3. [CLOSED] Alert Message contorl
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 11, 2010, 12:55 PM
  4. alert vs Ext.Msg.alert + window.location
    By Nime in forum 1.x Help
    Replies: 0
    Last Post: Nov 10, 2009, 3:34 AM
  5. Message alert in the GridPanel
    By flaviodamaia in forum 1.x Help
    Replies: 1
    Last Post: Aug 28, 2009, 5:58 PM

Posting Permissions