how to linkbutton and hreflink in using gridview visible or invisible?

Posted by Chandru_ra under Regular Expressions on 7/15/2011 | Points: 10 | Views : 2597 | Status : [Member] | Replies : 1
Dear all,

now am using one linkbutton and one href link using in gridview. one linkbutton using download files and another href link using redirect another site.
run the page showing in any one linkbutton in the page how.

<asp:GridView ID="GridVideofile" runat="server" AutoGenerateColumns="false" Width="647px"
CssClass="GV" onrowdatabound="GridVideofile_RowDataBound"
<FooterStyle CssClass="Gv-Footer" />
<HeaderStyle CssClass="Gv-HRow" />
<PagerStyle CssClass="Gv-Pager" />
<RowStyle CssClass="Gv-Row" />
<SelectedRowStyle CssClass="Gv-SRow" />


No of Views :
Download Video File :
<asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">Download File</asp:LinkButton>

Url Video File :
<a href='<%#Eval("Url") %>' target="_blank"><%#Eval("Url")%></a>
Video Image :
<asp:Image ID="imgVimg" runat="server" ImageUrl=' <%#Eval("Image")%>' Width="150px" Height="150px" />

Advance Thanks to all



Posted by: Vforvijay on: 7/15/2011 [Member] Starter | Points: 25

Instead of using table add more item template ,if you dont want to visible the column make it visible as false..

Refer the below links add column as itemtemplate..

Chandru_ra, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response