Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > QueryString question

Reply
Thread Tools

QueryString question

 
 
Judy Ward
Guest
Posts: n/a
 
      07-07-2004
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
 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      07-07-2004
<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 http://www.velocityreviews.com/forums/(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Request.QueryString looping....easy question... Doug ASP .Net 10 12-05-2008 02:27 PM
How to get value of QueryString inside QueryString Mehdi ASP .Net 6 04-06-2006 03:41 PM
Passing QueryString URL as a paremeter in QueryString Adeel Ahmad ASP General 1 03-07-2006 02:05 PM
Question about querystring JenHu ASP .Net 1 02-23-2005 09:08 PM
QueryString Question =?Utf-8?B?SnVkeSBXYXJk?= ASP .Net 1 07-09-2004 01:24 AM



Advertisments