|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
FormView - default value as expressionI think my problem is very easy to solve but I'm new in asp.net. I'm building a Web-based application and I use .NET 2.0 and MS SQL Server 2005. I have implemented FormView control. I have 3 TextBoxes in InsertItemTemplate mode. When user wants to fill out the form, then these 3 fields should have default values. In 2 fields should be "0" but in third field should be current date (e.g. 30.11.2006). There is Text-Property but I have there e.g. <%# Bind("hereNameOfField") %>. If I put there my value then it won't save it in the DB. How can I assign the default values ? I'd very greateful for help. with best regards, Rafal |
|||||||||||||||||||||||