[CLOSED] Common Direct Methods

  1. #1

    [CLOSED] Common Direct Methods

    Hi,

    We use direct methods a lot . So what is happening is duplicaties of direct methods same direct method in two pages, page A and page B. I want all my direct methods in common place like in a handler and use that url for direct method. I need to acess direct methods across pages.. I need to call a method defined in page B from page A.

    This is possible only by using a url. (I am a big fan of mvc and developing in mvc3 last month now came back to webforms) what you suggest

    1. creating a base page and put all direct methods there (I dont like this)
    2. create a handler and differentiate based on query string (sounds fair)
    3. create a http module and rewrite the requests to a handler (if this is the case, how do i pass the parameters, how to use http module for post request, I know url re-writing works for get request for post ???

    4. Use EXT.Direct (Is there a wrapper for this in Ext.NET)

    Or Is there any best way to achieve this. I always follow Microsoft P & P, and much considered towards the standard of programming. pls help me out.
    Last edited by Daniil; Nov 29, 2011 at 6:10 AM. Reason: [CLOSED]
  2. #2
    Hi,

    1. A DirectMethod can be defined in a WebService, an http handler or a controller.
    https://examples1.ext.net/#/Events/D...ds/WebService/

    2. There is the DirectMethodHandler class in Ext.Net.
    <Ext.Net root>\Ext.Net\Core\DirectMethodHandler.cs
    You could investigate it and override/extend to suite your needs.

    3. Regarding to:
    Use EXT.Direct (Is there a wrapper for this in Ext.NET)
    Well, there is no wrapper for that in Ext.Net, but Ext.net.DirectMethod should suite all your needs.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    1. A DirectMethod can be defined in a WebService, an http handler or a controller.
    https://examples1.ext.net/#/Events/D...ds/WebService/

    2. There is the DirectMethodHandler class in Ext.Net.
    <Ext.Net root>\Ext.Net\Core\DirectMethodHandler.cs
    You could investigate it and override/extend to suite your needs.

    3. Regarding to:


    Well, there is no wrapper for that in Ext.Net, but Ext.net.DirectMethod should suite all your needs.
    I would like to know. how you will use controllers in asp.net web forms.. Is that possible. pls post a sample for it.
  4. #4
    Quote Originally Posted by speedstepmem3 View Post
    I would like to know. how you will use controllers in asp.net web forms.. Is that possible. pls post a sample for it.
    I don't think it's possible to add a Controller into your ASP.NET WebForms application. With some Google research, you might be able find a way to use the Routing Engine in a WebForm app.

    Hope this helps.
    Geoffrey McGill
    Founder

Similar Threads

  1. Direct Methods and Custom Control
    By Zdenek in forum 1.x Help
    Replies: 0
    Last Post: Apr 19, 2012, 10:18 PM
  2. Replies: 6
    Last Post: Nov 30, 2011, 6:48 PM
  3. Are direct methods same as WebMethod
    By deeptechtons in forum 1.x Help
    Replies: 2
    Last Post: Dec 27, 2010, 3:31 AM
  4. [CLOSED] Registering resources in Direct Methods/Events
    By r_honey in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Oct 14, 2010, 10:27 AM
  5. [CLOSED] how to pass combobox values through direct methods
    By dev in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Sep 08, 2010, 3:54 AM

Posting Permissions