473,394 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

HttpModules

Hi all,

I need to determine which control was clicked on a page
when i am dealing with OnPostrequesthandler event in the
HttpModule Class. I don't want to use hardcoded names in
the Httpmodule class. What i want in httpmodule class is
that depending upon whats clicked on the page (Add or
Update or Delete) i would like to enter some distinct data
into the database depending upon the user action.

How to acheive this?

Thanks in advance
regards
shiv
Nov 18 '05 #1
1 1014
you don't really have enough information on the postback to do this in the
general case. postback events are handled in two ways.

1) if the control post back is an <asp:button> or <asp:imagebutton> then
postback is a standard html postback. the name of the control and its value
will appear post variables. unless you standardize the naming convetion for
submit buttons, you can not tell them from any other form field.

2) all other control postback by putting their name in the hidden field
"__EVENTTARGET". these are easy to detect.

-- bruce (sqlwork.com)
"shiv" <ka*****@hotmail.com> wrote in message
news:04****************************@phx.gbl...
Hi all,

I need to determine which control was clicked on a page
when i am dealing with OnPostrequesthandler event in the
HttpModule Class. I don't want to use hardcoded names in
the Httpmodule class. What i want in httpmodule class is
that depending upon whats clicked on the page (Add or
Update or Delete) i would like to enter some distinct data
into the database depending upon the user action.

How to acheive this?

Thanks in advance
regards
shiv

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Aurel | last post by:
Hi, I have create a httpmodule but I have some problems. I can't access to the session. Even if I create my class like this public class myModule: IHttpModule, IRequiresSessionState {} ...
1
by: Bogdan Fiedur | last post by:
Hi Everybody, When we defined this section in web.config in the main root, <httpModules> <add name="ApplicationModule" type="Myspace.Community.ApplicationModule,Community" />...
11
by: Markus Kling | last post by:
Hi, I have a web application that has two sub-applications. The root application defines two httpModules which shall not be loaded for the subapplications. I tried to achieve this by adding ...
0
by: tshad | last post by:
I noticed in my Http modules that all the BeginRequests are handled for each Module before the EndRequests is handled (at least that seems to be the case). I have 2 HttpModules each with...
1
by: Anonieko | last post by:
Global.asax? Use HttpModules Instead! In a previous post, I talked about HttpHandlers - an underused but incredibly useful feature of ASP.NET. Today I want to talk about HttpModules, which are...
1
by: Asela Gunawardena | last post by:
Hi all, we have a webservice as a seperate virtual directory placed under a Web Site named GRSCS in IIS. Both are .NET applications and uses MS application blocks as the data layer. Recently an...
2
by: Mikael Syska | last post by:
Hi, Google gives alot of hits on httpmodules but I can't seem to find any useful on my problem ... I have a site where I'm using my own auth system ... ( guess it could be better but its...
3
by: =?Utf-8?B?Tm9yZW1hYw==?= | last post by:
Hi, We are writing a Web SSO service for all of our websites through Forms Authentication. We also want to provide our websites with the ability to protect different parts of their website and...
1
by: Samuel R. Neff | last post by:
We have a problem with Web.config inheritance in two of our applications. We have an old app which is poorly written and must be in the root of the server. We have a newer app which runs from a...
5
by: =?Utf-8?B?TUNN?= | last post by:
What do the following httpModules do? UrlAuthorization FileAuthorization ServiceModel ErrorHandlerModule ScriptModule
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.