ASP.NET - alternate way to write a hyperlink - Asked By Anjali agarwal on 21-Mar-13 04:12 AM

Hi All,

  Is their any way to write the below hyperlink using a link button or <a href

<asp:HyperLink ID="HyperLink1" runat="server" Target="_blank" NavigateUrl='<%#"~/Viewer/DetailsViewer.aspx?ID=" + Eval("Id") + "&QueryID=" + Request.QueryString["QueryID"]%>' 
        Text="View" />
Danasegarane Arunachalam replied to Anjali agarwal on 22-Mar-13 11:15 PM
You could change some thing like

<asp:LinkButton ID="LinkButton1" runat="server"
   PostBackUrl='<%#"~/Viewer/DetailsViewer.aspx?ID=" + Eval("Id") + "&QueryID=" + Request.QueryString["QueryID"]%>'