I have been struggling in learning .NET. I have the datagrid and repeater controls figured out, and using readers, etc.
However, I've been trying to write out a link and use a variable as one of the parameters of the querystring as I used to in classic ASP. For example:
<a href=mypage.asp ?n=" & MyParameter & ">Link</a>
How can I duplicate this functionality in ASP.NET pages???
I have tried using the link1.HRef="htt p://www.mypage.com? n=" & MyParameter & ""
Then printing the link on the page using the <a id="link1" runat="server">
However, the compiler doesn't seem to want to convert it and I keep getting errors. Any help would be appreciated....
Thanks
However, I've been trying to write out a link and use a variable as one of the parameters of the querystring as I used to in classic ASP. For example:
<a href=mypage.asp ?n=" & MyParameter & ">Link</a>
How can I duplicate this functionality in ASP.NET pages???
I have tried using the link1.HRef="htt p://www.mypage.com? n=" & MyParameter & ""
Then printing the link on the page using the <a id="link1" runat="server">
However, the compiler doesn't seem to want to convert it and I keep getting errors. Any help would be appreciated....
Thanks
Comment