very easy

how can I make this work?

<a href= "http://blah.com/sign.aspx?ID=<%=Request.QueryString(id)%>&HH=1" />
1jawsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Miguel OzSoftware EngineerCommented:
Use javascript: (getQuerystring is shown in the link)
http://www.bloggingdeveloper.com/post/JavaScript-QueryString-ParseGet-QueryString-with-Client-Side-JavaScript.aspx

then your code will look like:
<a href= "http://blah.com/sign.aspx?ID="+getQuerystring('id')+ "&HH=1" />
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
1jawsAuthor Commented:
this doesnt work..
0
the_billCommented:
You can try this
<%
Response.Write("<a href= ""http://blah.com/sign.aspx?ID=" & Request.QueryString(id) & "&HH=1"" />"
%>
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

1jawsAuthor Commented:
no I want this on aspx page.. under hyperlink.. a href
0
the_billCommented:
NOTE:if id is not a variable you've defined somewhere, when you check Request.QueryString, you need to use

Request.QueryString("id") rather than Request.QueryString(id)
0
aternexCommented:
I think this should work for you.
 <a href='<%=string.format("http://blah.com/sign.aspx?ID={0}&HH=1", Request.QueryString("id"))%>'>
0
1jawsAuthor Commented:
'string' does not contain a definition for 'format'
0
aternexCommented:
I'm not sure why that would be.  I have used this on occasion to do just this type of thing. I'll see if I can find anything that might cause that, its under the System namespace so it is pretty basic. Sorry for the confusion.
0
1jawsAuthor Commented:
thank you!
0
the_billCommented:
<a href= "http://blah.com/sign.aspx?ID=<%=Request.QueryString("id")%>&HH=1" />

whats the error, if any, if that fails?
0
1jawsAuthor Commented:
'System.Web.HttpRequest.QueryString' is a 'property' but is used like a 'method'
0
1jawsAuthor Commented:
I cant believe something should be very easy to do.. no solution yet..
0
aternexCommented:
Could I see a little of the code for this page that is giving you the problem, so that I can maybe test it? I havn't been able to replicate the problem you posted for the solution that I offered. I'm not doing anything special, however my web.config has a reference to the system namespace. I just wonder if there is a chance you are missing the declaration for that namespace.
Would you mind trying this  <a href='<%=system.string.format("http://blah.com/sign.aspx?ID={0}&HH=1", Request.QueryString("id"))%>'>link</a>?
0
1jawsAuthor Commented:
I get this error: Identifier expected, 'string' is a keyword
0
1jawsAuthor Commented:
What I have is simple asp:HyperLInk and I can either use NavigateUrl or add a href tag to it.. ID = is my parameter that I get that from Request.QueryString("id") .. and some how plug in to NavigateUrl or the a href tag.. Thats about it.. but not working for some reason..
0
rajapandian_81Commented:
try below one

<a href= "http://blah.com/sign.aspx?ID=<%Response.Write(Request.QueryString["id"]);%>&HH=1" >aaaaaaaaaaaaa</a>

Open in new window

0
the_billCommented:
oops! Are you using c#? you need to say

<a href= "http://blah.com/sign.aspx?ID=<%=Request.QueryString["id"]%>&HH=1" />

ie Request.QueryString["id"] NOT Request.QueryString("id")
0
1jawsAuthor Commented:
Thanks all for the effort.. I have done it different way...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.