|
Prev: ASP CreateObject Exception - Win2003& IIS6
Next: Sending email to a remote SMTP server from classic ASP
From: Rafal on 30 Nov 2006 05:24 Hello, I 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
From: Anthony Jones on 1 Dec 2006 03:38 "Rafal" <Rafal(a)discussions.microsoft.com> wrote in message news:D2D83E2C-38F0-4D2A-826E-33D2C8DC60F0(a)microsoft.com... > Hello, > > I 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, > Rafa Try asking in the microsoft.public.dotnet.general group; this is a Classic ASP group
|
Pages: 1 Prev: ASP CreateObject Exception - Win2003& IIS6 Next: Sending email to a remote SMTP server from classic ASP |