Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Querry string

0 views
Skip to first unread message

steve

unread,
May 20, 2002, 4:29:24 PM5/20/02
to
Does anyone know of a way to edit a querry strings values
and then pass them on to the next web page in ASP.NET

I get a querrystring variable called x which equels 1 and
would like to change the value to 2.


Christian Rondeau

unread,
May 20, 2002, 4:37:28 PM5/20/02
to
Querystrings aren't really variables. The good old'way I know (perhaps there
is another way with .net, but I would continue using this anyway) is to use
either of these:

response.redirect("yourwebpage.aspx?x=" & someValue)

or, if you know what you want to retreive after a post, do on your form:

<form method="post" action="myself.aspx?x=<%=someValue%>">

anyway, the point is that querystrings is just like posts, but you can set
them directly in the URL.

If this won't help, please post what are you trying to do!

Sherlock


steve

unread,
May 20, 2002, 5:09:42 PM5/20/02
to
The problem I am having is that the variables are coming
from another site. I am trying to validate the values and
in some cases manipulate them...After which I then pase
them on to another web page in my site. I am trying to
validate the values without having to edit them as
strings.

>.
>

Dhharts

unread,
May 20, 2002, 7:43:27 PM5/20/02
to

You can still access the ASP 3 classes through the .NET
library. Meaning you can use the querystring collection as
you did prior to asp.net.

EW

unread,
May 20, 2002, 11:32:22 PM5/20/02
to
I think you can do this.
For example: Somebody hits your website with QueryString.
www.yourwebsite.com/default.aspx?value1=helloworld

In your default.aspx, do Request.QueryString("value1") (Page_Load)
For example: Dim qs1 = Request.QueryString("value1")

Then, you Response.Redirect("main.aspx?value2=" & qs1)

Hope this help. If this what you mean.


"steve" <stle...@hotmail.com> wrote in message
news:4d7501c20042$a8df6750$37ef2ecf@TKMSFTNGXA13...

Gary

unread,
May 21, 2002, 4:11:25 AM5/21/02
to
In addition, the Request.QueryString returns the whole string passed
throught the *GET* method.

This posting is provided "AS IS", with no warranties, and confers no
rights. Enjoyed ASP.NET? http://www.asp.net

0 new messages