Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Datalist with buttons

Datalist with buttons

Scheduled Pinned Locked Moved ASP.NET
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BECK7
    wrote on last edited by
    #1

    Hi everyone, im trying to put a button in a datalist. This button doesnt have to be displayed for each row i have in the datalist. So, i put this button on the EditItemTemplate area, cause i want to display it once. But, for some reason it doesnt display in the run time. Am i missing any step? Thank u very much.

    C 1 Reply Last reply
    0
    • B BECK7

      Hi everyone, im trying to put a button in a datalist. This button doesnt have to be displayed for each row i have in the datalist. So, i put this button on the EditItemTemplate area, cause i want to display it once. But, for some reason it doesnt display in the run time. Am i missing any step? Thank u very much.

      C Offline
      C Offline
      cups
      wrote on last edited by
      #2

      Hello Beck, If you required button to be only once in a datalist. 1.Then add the button control in FooterTemplate of the datalist.Then in aspx page code will be as follow. 2. Onclick="UpdateValue" is event that raise on button click event.Write the UpdateValue funtion defintion in code behind page as follows. protected void GetText(object sender, System.EventArgs e) { // write your code here } if u required is not the above then let me wat is ur requirement actualy... okay.

      C 1 Reply Last reply
      0
      • C cups

        Hello Beck, If you required button to be only once in a datalist. 1.Then add the button control in FooterTemplate of the datalist.Then in aspx page code will be as follow. 2. Onclick="UpdateValue" is event that raise on button click event.Write the UpdateValue funtion defintion in code behind page as follows. protected void GetText(object sender, System.EventArgs e) { // write your code here } if u required is not the above then let me wat is ur requirement actualy... okay.

        C Offline
        C Offline
        cups
        wrote on last edited by
        #3

        sorry that fuction in code behind is as follows. protected void UpdateValue(object sender, System.EventArgs e) { // write your code here } with regards, cups

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups