Tuesday, March 13, 2012

Simple hyperlink issue

Hi there,

I have the following hyperlink:


<asp:HyperLink id="HyperLink4" runat="server" NavigateUrl="../details/fullpropertylisting.aspx?listID=">View Your Listing</asp:HyperLink>

I want to add either the following paramter ListID or the following label lblListID.Text to the end of the hyperlink as a querystring.

No matter what I try, it doesn't work? Can someone please suggest how I would do this.

Regards, and thanks in advance,

TCMDo it through the code ...

Hyperlink4.NavigateURL = "../details/fullpropertylisting.aspx?listID=" & lblListID.text
Thanks jaqdipa,

It worked perfectly. I had had this suggested also by another coder, but didn't grasp exactly what he was getting at.

Simple when you know how,

TCM
I think everyone agrees that, when you start something new, the hardest thing is not learning it, but trying to find out how to do things. that's why I love forums - you get nice quick answers, and you can find something new out aswell.

0 comments:

Post a Comment