Inserting default value into a databound textbox

S

sfuller8

I am using Visual Studio, C# and am connecting to a SQL database.

I have a TextBox within the InsertItemTemplate of my DetailsView which
is databound for when i insert a new record into the database.

Is there a way I can insert a value by default (e.g. today's date) into
the textbox which the user could either then choose to use or overwrite
before submitting to the database. I can't seem to do this without
removing the databinding.

many thanks

Scott
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top