Results 1 to 3 of 3

Thread: About Datalist

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    150

    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 ?

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    150

    Re: About Datalist

    anyone ?

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: About Datalist

    Your code will look something like this in the OnItemCommand event:

    Code:
    Session("selectedid") = CType(e.Item.FindControl("lblID"),Label).Text

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width