Passing Parameters in Hyperlink

S

SJ

I want to pass a value in the NavigateURL property of the asp.HYPERLINK tag.
right now i'm using something like this :

asp:hyperlink id="Details" ImageUrl="images/btn.gif"
NavigateUrl='details.aspx?id=<%=p.mystring%>'

But it doesnt evaluate the <%=p.mystring%> into the actual value it
contains. I need this to be done within the aspx page and not in codebehind.
I'm sure there simple syntax to fix this. Any ideas?

Thanks.
 
T

Tasos Vogiatzoglou

Instead of a asp:hyperlink, use a normal html tag

<a href="details.aspx?id=<%=p.mystring%>"><img src="images/btn.gif"></a>
 

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

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,362
Latest member
ChandaWagn

Latest Threads

Top