| | |
how to autogenerate date
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2007
Posts: 12
Reputation:
Solved Threads: 0
i am using a gridviw to display values from database
and using formview to insert values to gridview
i have the following fields in formview during insert mode like
Name :
StartDate:
EndDate:
now when i enter the startdate
the Enddate should automatically add 7 days to startdate and get inserted
if its textbox i know we can add like
DateTime.Now.Add(7);
but for a field in formview is it possible to do that
plz help me on this regard
Shruthi
and using formview to insert values to gridview
i have the following fields in formview during insert mode like
Name :
StartDate:
EndDate:
now when i enter the startdate
the Enddate should automatically add 7 days to startdate and get inserted
if its textbox i know we can add like
DateTime.Now.Add(7);
but for a field in formview is it possible to do that
plz help me on this regard
Shruthi
•
•
Join Date: May 2007
Posts: 20
Reputation:
Solved Threads: 2
you already know about the end date will be 7 day after startdate. you can call a store procedure when you need to insert the data to database, in the store procedure you can make it automatic add 7 day on the end date. this is another way to insert but the result will be same.
i also have another idea, that is using javascript or ajax to add it automatic. after u key in the startdate, you add in a event on start date and when you key in the start date. it will call up js and javascript to assign a new value to end date.
hope it can help you
i also have another idea, that is using javascript or ajax to add it automatic. after u key in the startdate, you add in a event on start date and when you key in the start date. it will call up js and javascript to assign a new value to end date.
hope it can help you
![]() |
Similar Threads
- recording date and time a link is clicked (ASP.NET)
- Stay Up to Date Automatically (Windows tips 'n' tweaks)
- Date is 1969????? (OS X)
- How to erase Date Last Accessed Info (Windows NT / 2000 / XP)
Other Threads in the ASP.NET Forum
- Previous Thread: Change my display name
- Next Thread: oleDbCommand - Update
| Thread Tools | Search this Thread |
.net 2.0 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox click commonfunctions compatible confirmationcodegeneration content contenttype courier css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dropdownmenu dynamically edit expose fill flash flv formatdecimal forms formview gridview homeedition iframe iis javascript jquery listbox login menu microsoft mono mouse mssql multistepregistration news numerical objects opera order panelmasterpagebuttoncontrols radio ratings registration reportemail rotatepage save schoolproject search security serializesmo.table silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking unauthorized validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webapplications webarchitecture webdevelopemnt webprogramming webservice xml xsl youareanotmemberofthedebuggerusers





