Can i set the request parameter in asp.net

  • Thread starter Thread starter Navaneet
  • Start date Start date
N

Navaneet

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
 
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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top