class="line number1 index0 alt2">protected
void
Bind()
class="line number2 index1 alt1">
{
class="line number3 index2 alt2">
CompInfo ci = (CompInfo)Session[
"coi"
];
class="line number4 index3 alt1">
Complinkappl cla =
new
Complinkappl();
class="line number5 index4 alt2">
IList iclai = cla.Selsonly(
" cpacompid = "
+ ci.Compid.ToString() +
" order by cpadate desc"
);
class="line number6 index5 alt1">
this
.GridView1.DataSource = iclai;
class="line number7 index6 alt2">
this
.GridView1.DataBind();
class="line number8 index7 alt1">
foreach
(GridViewRow row
in
GridView1.Rows)
class="line number9 index8 alt2">
{
class="line number10 index9 alt1">
LinkButton lb = row.Cells[3].FindControl(
"Lbtnup"
)
as
LinkButton;
class="line number11 index10 alt2">
Literal lt = row.Cells[3].FindControl(
"Lt"
)
as
Literal;
class="line number12 index11 alt1">
if
(lt.Text !=
"1"
)
class="line number13 index12 alt2">
{
class="line number14 index13 alt1">
lb.Visible =
false
;
class="line number15 index14 alt2">
}
class="line number16 index15 alt1">
else
class="line number17 index16 alt2">
{
class="line number18 index17 alt1">
lb.Visible =
true
;
class="line number19 index18 alt2">
}
class="line number20 index19 alt1">
}
class="line number21 index20 alt2">
}