Results 1 to 2 of 2

Thread: get hte value after ?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Toronto, Ontario, Canada
    Posts
    275

    get hte value after ?

    Hey,

    I was wondering how you would get the vakue of reportvalue in this web addy :

    http://www.yourdomainname.com/web1.a...portvalue=9944

    Thanks,,

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    VB:
    Code:
    Dim myQueryString As NameValueCollection = Request.QueryString
    
    Dim myString As String = myQueryString("reportvalue")
    C#:
    Code:
    NameValueCollection myQueryString = Request.QueryString;
    string myString = myQueryString["reportvalue"].ToString();
    I am doing those off the top of my head, and there may be a little syntax changes you need to make. NameValueCollection is in the System.Collections.Specialized namespace.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width