hi,
I have datalist that is containing linkbutton ,
i want to change the ID of that link button in c#
--------------------------------------------------------------------
Below is the code of datalist HI event
=============================================
if (e.CommandName == "MoreInfo")
{
Panel P1 = (Panel)e.Item.FindControl("pnlAdditional");
if (P1.ID == "pnlAdditional")
{
P1.Visible = true;
P1.ID = "pnlLess";
//(Panel)e.Item.FindControl("pnlAdditional") = P1;
}
else if(P1.ID == "")
{
P1.Visible = false;
P1.ID = "pnlAdditional";
//(Panel)e.Item.FindControl("pnlLess") = P1;
}
}
-Neer