freelanceprogrammers.org Forum Index » ASP

Re: Please I would like to get an ID from a URL


View user's profile Post To page top
peter_brunone Posted: Thu Jan 13, 2005 11:58 pm


Joined: 11 Jan 2006

Posts: 38
Re: Please I would like to get an ID from a URL
Imane,

   I assume you mean something like this:

http://mysite.com/somepage.aspx?thisID=somevalue

   In somepage.aspx, you would just refer to the querystring to get the value,
like this:

Dim myValue As String = Request.Querystring("thisID")

   This of course assumes that the parameter will be there every time.  If not,
then you`ll have to check to make sure Request.Querystring("thisID") is not
Nothing.

Cheers,

Peter

From: imane elfechtani imane_elfechtani@...

Hello All,

I have an ASP page that redirects to another, in the URL, I have uppanded an ID,
I need to get the value of this ID on this 2nd page and use it as an input to be
stored in a database.

Thank you so much

imane


[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
imane_elfech... Posted: Fri Jan 14, 2005 12:42 am


Joined: 04 Jan 2005

Posts: 5
Re: Please I would like to get an ID from a URL
Thank you it works :)

Peter Brunone <peterlists@...> wrote:Imane,

I assume you mean something like this:

http://mysite.com/somepage.aspx?thisID=somevalue

In somepage.aspx, you would just refer to the querystring to get the value,
like this:

Dim myValue As String = Request.Querystring("thisID")

This of course assumes that the parameter will be there every time. If not,
then you`ll have to check to make sure Request.Querystring("thisID") is not
Nothing.

Cheers,

Peter

From: imane elfechtani imane_elfechtani@...

Hello All,

I have an ASP page that redirects to another, in the URL, I have uppanded an ID,
I need to get the value of this ID on this 2nd page and use it as an input to be
stored in a database.

Thank you so much

imane


[Non-text portions of this message have been removed]



---------------------------------
Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

To unsubscribe from this group, send an email to:
AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




---------------------------------
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.

[Non-text portions of this message have been removed]
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help