In data base i have following fields
Car_id.....CarRent/day
1 10
2 20
i am getting these fields in datlist supose i want to calculate rent for three days for each car and print it acording to Car_id in datalist say.
for car1 it wil be 30 and car2 it will be 60
using code behind how can.
Qaiser MehmoodPosted Feb 9, 2009, 2:18 AM
will u please tell me the query about tjis prob.
Vijaya KadiyalaPosted Feb 6, 2009, 1:28 PM
instead of doing this in Datalist why dont you do it at the SQL query level. This makes life easier..
The best thing is lets not have any logic at the grid level, have the logic in the query so that it maintains loosley coupled dependecy.
Thanks
Vijaya Kadiyala
http
://dotnetvj.blogspot.com