QueryString question

J

Judy Ward

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
 
S

Scott M.

<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 said:
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?
 

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

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top