Click here to Skip to main content
15,901,505 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can I pass the result to hyperlinke?
<asp:hyperlink id="HyperLink1" runat="server" navigateurl="~/Default2.aspx?id=<%#3+6 %>" xmlns:asp="#unknown">  HyperLink 
 </asp:hyperlink>


I wrote this but have error
:sigh:
Posted
Comments
Arindam Tewary 8-Jun-10 4:19am    
Whats the error you are getting? Post the error details please.

1 solution

It will be better if you set this at server side like following.

HTML

<asp:hyperlink id="HyperLink1" runat="server" NavigateUrl="~/Default2.aspx?id="  >MyLink</asp:hyperlink>


Code Behind

protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            HyperLink1.NavigateUrl += (3 + 6).ToString();
        }
    }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900