conditional data and control presentation in .net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ishakteyran
    New Member
    • Jul 2007
    • 8

    conditional data and control presentation in .net

    hi to all.. here is the scenario..

    i have a set of concert infos in my database table, namely concerts, ...

    with a SQL statement i select all the concert infos according to some criteria..

    and save the result of the SQL in a DataTable, namely dt...

    now here my problem lies.. according to each row info in dt, say concert_date column , if the date of the row has passed i need a button or link that my user will click and when he clicks i will save that concert info to another table , lets say as the concerts which are liked by fans. On the other hand if the concert_date has yet to come then my user must see a link or button so that when he clicks i will save that concert info as the concerts that fans will like to see... how can i achieve such a goal with gridview.. or more specifically which is the most appropriate DPC (Data Presentation Control) to ease this task. and a little help on how to do will be appreciated ..

    and if the control that my user will click as his evaluation would be a button how would i define an _OnClick() event so that when the user clicks on it i can evaluate the info in the row which the button resides and do my evaluation functions work.. ?



    thank you all
    Last edited by DrBunchman; May 5 '08, 10:07 AM. Reason: Moved to .NET - ASP forum for Classic ASP only
Working...