Just having a senior moment here...
For ASPrunner.Net, I want to set the default on a date field to the current date and set the ID adding the record to the userid field of the logged in user.
I know how to do it in ASP, can't get it working in .Net
Suggestions???
Thanks
Page 1 of 1
Default values for DB How can I set the default values when adding/editing to a database
#3
Posted 16 June 2010 - 01:44 PM
admin, on 31 May 2010 - 09:50 PM, said:
Current datetime: DateTime.Now
Current user: Page.Session["User"].UserName
Current user: Page.Session["User"].UserName
Yes this does work however it adds in the .cs file quotes before and after the sequence when building
defvalues["InDate"] = "DateTime.Now";
Any way to fix this on the build side so I don't need to manually edit every scrip[t.
Also, when adding additional fields to the database in "Modify Table" option, the field never shows up in any subsequent pages. I read the Drop and add the table response but is there any other way to do this so I don't lose all of my form changes?
Thank You.
Page 1 of 1

Sign In
Register
Help
This topic is locked
MultiQuote