how to change any control ID of datalist [Resolved]

Posted by Neer under C# on 2/16/2012 | Points: 10 | Views : 1114 | Status : [Member] | Replies : 1
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


Responses

Posted by: Neer on: 2/16/2012 [Member] Starter | Points: 25

Up
0
Down

Resolved
this is my 5th post where m not getting a single answer..

I think this is not the right place for my questions


-Neer

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

Login to post response