By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,760 Members | 955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,760 IT Pros & Developers. It's quick & easy.

How to calculate with databinder?

P: n/a
Hello
in a edittemplate of a datalist i want to use rangevalidators (for date e.g.), but these rangevalidators min and max values must be dependent on the value to edit (e.g. if the date to edit is 10/10/2003, the max-value should be 10/10/2003+3 months and min-value 10/10/2003-3 months.)

One possibility could be to add calculated columns to the datatable , but i don't know if this is a good idea when i want to use updates to the database

Does anybody can tell me how to calculate with the Databinder object
<%# DataBinder.Eval(Container.DataItem, "MyDate") %> - and now, please add/substract days, months

Thanks
Peter
Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.