Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<li class="subtop1"><a href="#"><%--Projects1--%><asp:LinkButton   ID="Prod_link" runat="server" Text='<%#Eval("project_name") %>'  postbackurl='<%# string.Format("~/products.aspx?pro_ids={0}", Eval("pro_id")) %>'></asp:LinkButton></a></li><pre></pre
>

The postback is not working ,when i click on it,it shows,

javascript webform_dopostbackwithoptions("somedata related to link");

how can i solve this, Autoeventwireup="false" not working
Posted
Comments
[no name] 7-Sep-15 6:49am    
As it is a Server side link button it will look like that only because javascript do post back. When you are clicking it should redirect to Proudcts.aspx. Are you not redirecting to Products page?
Arasappan 7-Sep-15 6:54am    
i want to redirect to products.aspx
[no name] 7-Sep-15 7:35am    
When you are clicking on the link what happens?
Arasappan 7-Sep-15 7:36am    
javascript webform_dopostbackwithoptions("");
[no name] 7-Sep-15 8:17am    
Try to use NavigateUrl instead of PostBackUrl if you don't want to postback form data.
NavigateUrl='<%# String.Format("~/products.aspx?pro_ids={0}", Eval("pro_id"))%>'

Or else try below

PostBackUrl='<%# Eval("pro_id", "Edit_SyatemEmails.aspx?id={0}") %>'

1 solution

XML
<ul><li class="subtop1">
<a href="SubDirectory.aspx?Direct=tmEBK02O4ylutRIjZo65x5GnT/N/ume2T65CTJSDHQM=">Your link name </a></li></ul>
 
Share this answer
 
Comments
Arasappan 7-Sep-15 8:22am    
I also pass the id.. How can i done
Arasappan 7-Sep-15 8:36am    
u reached 50%.. help me to pass the id also

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