QueryString question

Discussion in 'ASP .Net Web Controls' started by Judy Ward, Jul 7, 2004.

  1. Judy Ward

    Judy Ward Guest

    I have a code example I am trying to use:

    Within an asp repeater item template in Master.aspx:
    <a href='<%# String.Format( "details.aspx?id={0}", Container.DataItem( "EmployeeID") ) %>'><%#
    Container.DataItem("LastName") %></a>

    In Details.aspx:
    Dim intEmployeeID As Integer
    intEmployeeID = Int32.Parse(Request.QueryString( "id" ) )

    This works great for passing the EmployeeID. I also want the value in "LastName" but I can't figure out how to get it from the QueryString (assuming it is even a part of it). Any suggestions?

    Thank you,
    Judy
    Judy Ward, Jul 7, 2004
    #1
    1. Advertising

  2. Judy Ward

    Scott M. Guest

    <a href='<%# String.Format( "details.aspx?id={0}", Container.DataItem(
    "EmployeeID") );LastName= %><%#
    Container.DataItem("LastName")' %>text</a>

    server-side:

    Dim lName as string = Request.QueryString("LastName")

    "Judy Ward" <Judy > wrote in message
    news:...
    > I have a code example I am trying to use:
    >
    > Within an asp repeater item template in Master.aspx:
    > <a href='<%# String.Format( "details.aspx?id={0}", Container.DataItem(

    "EmployeeID") ) %>'><%#
    > Container.DataItem("LastName") %></a>
    >
    > In Details.aspx:
    > Dim intEmployeeID As Integer
    > intEmployeeID = Int32.Parse(Request.QueryString( "id" ) )
    >
    > This works great for passing the EmployeeID. I also want the value in

    "LastName" but I can't figure out how to get it from the QueryString
    (assuming it is even a part of it). Any suggestions?
    >
    > Thank you,
    > Judy
    Scott M., Jul 7, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?SnVkeSBXYXJk?=

    QueryString Question

    =?Utf-8?B?SnVkeSBXYXJk?=, Jul 9, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    313
    Lau Lei Cheong
    Jul 9, 2004
  2. Doug
    Replies:
    10
    Views:
    7,408
    teeg01
    Dec 5, 2008
  3. JenHu

    Question about querystring

    JenHu, Feb 23, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    277
    2kool
    Feb 23, 2005
  4. Mehdi
    Replies:
    6
    Views:
    36,095
    sloan
    Apr 6, 2006
  5. Adeel Ahmad
    Replies:
    1
    Views:
    432
    Anthony Jones
    Mar 7, 2006
Loading...

Share This Page