Click here to Skip to main content
15,918,243 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to display linkbutton in header template on datalist ..is it possible.
Posted

link button in a datalist[^]


Check this it may help you
 
Share this answer
 
Yes it is possible-
you can take Link button in header template.
<asp:datalist id="DataList1" runat="server" onitemcommand="DataList1_ItemCommand" xmlns:asp="#unknown">
<itemtemplate>
<asp:label id="Label1" runat="server" text="<%#Bind(" name")="" %&gt;"="">

<headertemplate>
<asp:linkbutton id="LinkButton1" runat="server" text="Click Me">

 
Share this answer
 
Comments
ntitish 25-Jan-13 4:47am    
sir can i take link button on header text of the grid view......that means on the heading of the particular field name i want to display link button....
[no name] 25-Jan-13 6:07am    
yes you can take any control in header tamplate

<headertemplate>
<asp:linkbutton id="LinkButton1" runat="server" text="Click Me">
</headertemplate>

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