473,395 Members | 1,343 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,395 software developers and data experts.

Changing Request.Form collection values

Hello,

I'm using HttpModule to capture requests to the web server. Before
processing the page I'd like to check the values contained in some keys
of the Request.Form collection and according to some logic change if
necessary. I'd like to do this when BeginRequest event is fired. The
problem is that the Request.Form collection is readonly.

Is there any way to accomplish this task ?

Thanks is advance

Feb 9 '06 #1
3 3741
Not via Request.Form. Rather, store the values you want in Context.Items,

http://www.odetocode.com/Articles/111.aspx
http://openmymind.net/index.aspx?documentId=6#context

Karl

--
http://www.openmymind.net/

<Ko***********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hello,

I'm using HttpModule to capture requests to the web server. Before
processing the page I'd like to check the values contained in some keys
of the Request.Form collection and according to some logic change if
necessary. I'd like to do this when BeginRequest event is fired. The
problem is that the Request.Form collection is readonly.

Is there any way to accomplish this task ?

Thanks is advance

Feb 9 '06 #2
The Request object represents a message sent from the client. Can you change
what someone on the other end of a telephone line has just said to you?
Obviously not. Neither can you change the message that was just sent from
the client.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
<Ko***********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hello,

I'm using HttpModule to capture requests to the web server. Before
processing the page I'd like to check the values contained in some keys
of the Request.Form collection and according to some logic change if
necessary. I'd like to do this when BeginRequest event is fired. The
problem is that the Request.Form collection is readonly.

Is there any way to accomplish this task ?

Thanks is advance

Feb 9 '06 #3
Hi,

If you are changing the values of a control, get the control by using
Request.Form.FindControl method. Modify the value of the control with
the help of control object.

Thanks,
Kris

Feb 9 '06 #4

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

Similar topics

6
by: Andy | last post by:
hI, wOULD PLEASE HELP ME. I AM GETTIGN THE REQUEST OBJECT ERROS ASP 0105: 80004005 INDEX OUT OF RANGE ERROR. HERE IS THE SNIPPET OF CODE THAT I AM USING. WHAT IS WRONG HERE? YOU CAN SEE WHAT I AM...
5
by: mvr | last post by:
Hi all IIS 5.0, ASP, and https:// I have "DataEntrypage.asp" which is a data entry page(about 250 data elements includes text boxes, radio buttons, check boxes, drop down boxes etc). ...
3
by: Jeremy Ames | last post by:
I am having problems with Server.Transfer when I try to change pages. I have a page that I have created just to process the information from a previous web form and then to go to the next page. The...
3
by: Jeremy Ames | last post by:
I have a form that contains two hidden values, among other controls. I was wondering, if I change these values in server script and immediately do a server.transfer, do these values get updated...
10
by: Mr Newbie | last post by:
DropDown lists and Listboxes do not appear in the list of controls and values passed back to the server on PostBack in Request.Form object. Can someone confirm this to be correct and possibly...
2
by: Elliot Rodriguez | last post by:
I have a form that contains a mix of dynamic controls and declared controls. All of them are intrinsic .NET controls. Several functions within the page use Request.Form to query the value of the...
8
by: abcd | last post by:
I can get the value on the form at the server side by using Request.form("max") when max field is disabled I dont get value. For GUI and business logic purpose I have disabled some fields with...
1
by: cannontrodder | last post by:
I am writing a composite control that allows two-way binding between a collection of boolean values and a set of checkboxes. In the CreateChildControls, I add each checkbox control that I need...
3
by: dihola | last post by:
Hi, I have a website running in IIS7 and it seems to be creating a new session for every request I make. The values I store in Session are lost with every request. This is the forms bit in my...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.