473,407 Members | 2,312 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,407 software developers and data experts.

Can i set the request parameter in asp.net

Hi,

I need to set a request parameter, is it possible?
If yes, how?

Actually i have a sever side code(in vb) like.
if trim(request("addCustomCD")) = "1" then
--
--
end if
At the end of this if, i need to set addCustomCD to 0.

Thanks,
-Kumar N
Nov 22 '07 #1
3 9287
You can't change the request. The VB code you compared to simply reads
the request, which isn't the same thing. Perhaps either redirect, or
set some cookie / session token to avoid repeats.

Marc
Nov 22 '07 #2
does this help ?

http://www.thescripts.com/forum/thread176964.html
Cheers,
Husam Ala'araj
www.aaraj.net

"Navaneet" wrote:
Hi,

I need to set a request parameter, is it possible?
If yes, how?

Actually i have a sever side code(in vb) like.
if trim(request("addCustomCD")) = "1" then
--
--
end if
At the end of this if, i need to set addCustomCD to 0.

Thanks,
-Kumar N
Nov 22 '07 #3
On 22 nov, 13:38, Navaneet <tonavan...@gmail.comwrote:
Hi,

I need to set a request parameter, is it possible?
If yes, how?

Actually i have a sever side code(in vb) like.
if trim(request("addCustomCD")) = "1" then
--
--
end if
At the end of this if, i need to set addCustomCD to 0.

Thanks,
-Kumar N
Why don't you use Session("addCustomCD") parameter ? It may be
simplier.
Session parameter can be get and set.

Vincent.
Nov 22 '07 #4

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

Similar topics

3
by: jrefactors | last post by:
page0.asp->page1.jsp When the user click submit button in page0.asp, it will post the form request to page1.jsp. page0.asp and page1.jsp are in separate machines. In page1.jsp, based on the...
3
by: news.rcn.com | last post by:
How can I access the request and response object for a page using javascript. I want to stick some data on with something like request.setAttribute( "User's choice for later use" ). I can't seem...
0
by: Sia Jai Sung | last post by:
Hi, I need to write a ASPX file that will post some request to other party (web service written in java), here is my code, <%@ Page aspcompat=true %> <% Dim xml, url
0
by: ClydeL | last post by:
I am trying to access a .net web service from c++ code using xmlhttprequest. It works fine for methods that don't take parameters. I get the same (correct) response for parameterless methods that...
0
by: Frank 'Olorin' Rizzi | last post by:
Hello everyone. This is quite convoluted, but I'll try to make it simple. I have a couple of bottom-line questions (I guess): 1~ what happens between the Page_Load routine in the code behind...
8
by: Angel | last post by:
I am trying to access in Javascript within an ASP.NET web page the Request Object. I am specifically trying to access the values in the Request.QueryString. When I try to access the values I get an...
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...
3
by: Davy | last post by:
I 'd like to print out all posted parameter names and values. I'm able to print all the posted request values, but not the parameter names. any suggestions? thanks in advanced Davy
0
by: Florian Laws | last post by:
Hello, to work around an interoperability problem with the PHP5 SOAP extension, I'd like to modify the generate XML SOAP request. (as described in...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.