Show records in ASP.NET

  • Thread starter Thread starter Pepehammer
  • Start date Start date
P

Pepehammer

Hi there ;

I got the following problem, I hope you can help me out guys!

I need to display some records from a table, and I need to insert in every
row a checkbox, to select some of those records.
Once a selected some of those, I need to be able to identify'em and make
updates in the table based on those records selected.

Thanks !

MP
 
Should ask this in aspnet group.

You can show records by creating command objects and using a datareader, and
a aspgrid or other control like datalist.

Check out DataKeyField---whatever field you set that to in the HTML part of
the ASPX page can be used in the appropriate event to find out which one was
clicked--this is usually a primary key of course.

(oh... checkboxes, well that is another issue. Guess you'd use a checkbox
list or use a repeater with a checkbox. I'm not sure. Haven't done that
yet.)

You have better chances asking the aspnet group.

Shane
 
Back
Top