Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert Value in Hyperlink's NavigateURL property

Status
Not open for further replies.

robertfah

Programmer
Joined
Mar 20, 2006
Messages
380
Location
US
Is there a way to insert the value of a property in the NavigateURL property of a HyperLink control?

For now, I've put a button on the form and when a user clicks it, the following code executes:

Server.Transfer("request_history.aspx?RID=" + htxtRequestID.Text);

Is there a way to get the value of htxtRequestID.Text for the Hyperlink control so I can use a hyperlink instead of the ugly button control?

thanks!
 
Yes, you basically have it done already:
Code:
HyperLink1.NavigateURL = "request_history.aspx?RID=" + htxtRequestID.Text

Jim
 
DOH! Thanks man......as you can tell, it's been a long day for me already! LOL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top