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. Repeater

Repeater

Scheduled Pinned Locked Moved ASP.NET
tutorialcsharpquestion
3 Posts 3 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.
  • K Offline
    K Offline
    Karthick_gc
    wrote on last edited by
    #1

    How to fetch the particular data and store in a variable when that data was clicked? For example in my repeater i have fields like Id,Name,etc. When i click on the Id field,that particular Id will be stored in a variable so that i can use it for my process? Can anyone give Idea or Code with c#?

    C F 2 Replies Last reply
    0
    • K Karthick_gc

      How to fetch the particular data and store in a variable when that data was clicked? For example in my repeater i have fields like Id,Name,etc. When i click on the Id field,that particular Id will be stored in a variable so that i can use it for my process? Can anyone give Idea or Code with c#?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You need to handle the click and then work out what row was clicked. I assume the field is a button or a link, if it's a button, use a button that lets you pass back a command argument, if it's a link, put the value on the URL. This is very basic stuff, perhaps you should buy a book on ASP.NET ?

      Christian Graus Driven to the arms of OSX by Vista.

      1 Reply Last reply
      0
      • K Karthick_gc

        How to fetch the particular data and store in a variable when that data was clicked? For example in my repeater i have fields like Id,Name,etc. When i click on the Id field,that particular Id will be stored in a variable so that i can use it for my process? Can anyone give Idea or Code with c#?

        F Offline
        F Offline
        Frauke
        wrote on last edited by
        #3

        Take a look at the DataRepeater tutorials here: http://www.asp.net/learn/data-access/[^] There are quite a few - I'm sure one of them has what you need.

        Frauke Nonnenmacher Creative Cats

        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