I want the detailsview to send a word or character like "null" or " " to the database if the user leaves the textbox blank. C#
ASP.NET 2.0 Detailsview on a SQLDataSource, can I set a default value if the user leaves a textbox blank?
In the SQLDataSource, you can define a default value for each parameter. Change the parameter that the textbox provides and give it a default value. This can be done through the SqlDataSource by clicking the little arrow on the top right of the SqlDataSource and selecting "Configure Data Source...". Click through to the Define Parameters section. Notice the textbox for DefaultValue?
You can also do this in the source view of your page by adding the DefaultValue attribute to the appropriate parameter.
Reply:Asptutorials.info is your gateway to the best
sites on the Internet for asp tutorial!
Looking for Computers, Domain Names,
or Education?Browse our recommended resources
or just try the Asptutorials.info search.
http://asptutorials.info/
flower bouquet
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment