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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass C# variables in the Url

Status
Not open for further replies.

josh9999

Programmer
Nov 18, 2004
7
US
I want to pass c# variable in the url

For example :

string title = "Google";
string link = "string desc = "Google Search Engine";

Hard-Coded url
location.href=' Search Engine'

replace with link
replace Google with title and
replace Google Search Engine with desc
where url, title and desc are c# variable...

Any ideas will be helpful
 
This is effectively sending a GET request... which can be interpreted bot server-side and client side (using javascript).

Can't see any problems.

Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
Once again thank you for your feedback.
I tried as Lee mentioned.

It gave me this javascript error 'link' is undifined. Any other thoughts.

Josh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top