Good day
I have created a ASP.net website. I use a datalist to bind the data. I want to disable or make the rest of the items in the datalist not visible after clicking on any item in a datalist.
How can I do that?
Here is my code:
if (IsPostBack)
{
clsDBCalls objDBcalls = new clsDBCalls();
DataTable dtfullDesc = new DataTable();
DataTable dtMessages = new DataTable();
int iDTListID = e.Item.ItemIndex;
LinkButton strlblSystem = e.Item.FindControl("lnkSystem") as LinkButton;
string strValue = strlblSystem.Text;
dtfullDesc = objDBcalls.dtSystemDescription(strValue);
DataList dtSystemdescription = e.Item.FindControl("dtSystemDescription") as DataList;
Session["SystemName"] = strValue;
dtSystemdescription.DataSource = dtfullDesc;
dtSystemdescription.DataBind();
}
}
Thanks