Nov 24, 2011, 3:48 AM
[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.
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]