<asp:TemplateField HeaderText="FileName" ItemStyle-HorizontalAlign="Center"> <itemtemplate> <asp:LinkButton ID="btn" runat="server" CommandName="Click"/> </itemtemplate>
if (e.Row.RowType == DataControlRowType.DataRow) { int EmpiD = Int32.Parse(e.Row.Cells[2].Text); DataSet EmpIDDs = GetEMP.getValue(EmpiD); DataRow EmpRow = EmpIDDs.Tables[0].Rows[0]; e.Row.Cells[0].Text = EmpRow[3].ToString(); }
Label TestLabel = (Label)e.Row.FindControl("MyLabel"); TestLabel.Text= "Hello";
<asp:LinkButton ID="btn" runat="server" CommandName="Click" Text='<%# Eval("dataSourcePropertyName") %>' />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)