-
About Datalist
I have added a datalist to my page which shows some details from access database.The data list looks like this:
ID:
Name:
Details
I accessed the datalist template section and I've added a button. When the user clicks on the button , I want to store the ID of the topic in a session. How can I do that , does anyone know ?
-
Re: About Datalist
-
Re: About Datalist
Your code will look something like this in the OnItemCommand event:
Code:
Session("selectedid") = CType(e.Item.FindControl("lblID"),Label).Text