[CLOSED] Is it possible to trigger Ext.Net components from Global.asasx method?

  1. #1

    [CLOSED] Is it possible to trigger Ext.Net components from Global.asasx method?

    Hello guys!

    Does anybody knows how could I show some modal dialog form from my Global.asax method "Application_BeginRequest". I intend to check some condition on every request and if it's satisfied i would like to show something to user.

    Thanks.
    Last edited by Daniil; Dec 06, 2013 at 1:01 PM. Reason: [CLOSED]
  2. #2
    Hello!

    I'm not sure that it's a good idea but you can try the following:

    protected void Application_BeginRequest()
    {
    	if (X.IsAjaxRequest)
    	{
    		Response.Clear();
    		Response.ClearContent();
    		Response.ContentType = "application/x-www-form-urlencoded; charset=UTF-8";
    		Response.Write(
    			"{script:'Ext.Msg.show({\"title\":\"DirectEvent\",\"buttons\":Ext.Msg.OK,\"msg\":\"Item - One\"});'}");
    		Response.End();
    	}
    }
  3. #3
    Hi everybody,

    Hmm, this appears to be working.
    using Ext.Net;
    
    ...
    
    
    protected void Application_BeginRequest(object sender, EventArgs e)
    {
        X.Msg.Alert("Application_BeginRequest", "Hello!").Show();
    }

Similar Threads

  1. Replies: 2
    Last Post: Feb 25, 2013, 4:40 AM
  2. Replies: 2
    Last Post: Feb 08, 2013, 8:40 PM
  3. Replies: 0
    Last Post: Dec 05, 2012, 8:22 PM
  4. Replies: 0
    Last Post: Mar 03, 2011, 1:08 PM
  5. [CLOSED] Global Static variables usage in DirectEvents Method
    By ogokgol in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 04, 2011, 2:35 PM

Posting Permissions