I forgot to post my code. Here it is...
<asp:DetailsView ID="DetailsView1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateRows="False" CellPadding="4" ForeColor="#333333" GridLines="None" DefaultMode="Edit" Height="224px">
<Fields>
<asp:TemplateField...
I'm new to Asp.net and need some help.
I am using a DetailsView and the update statement of a datasource to update a database table. When I use the command field edit button that is provided by setting "show edit button" to true, the database is updated properly. However, I converted the...
earthandfire was correct. One character that wasn't matching is the '-' which was something I wanted to include. I need to do some checking to see what else I might want to include.
Thanks for your responsese.
You were absolutely correct about the directory
[app's exe path] \c;\anydir being created.
Can you recommend a good reference for regular expressions?
I've avoiding using them because the syntax is so cryptic and hard to understand.
I am working on an application that prompts for a directory path. I use directory.exists(path) to verify that the directory exists, and if it doesn't then create it.
This works fine as long as the path that was entered is valid. However if the path that has been entered is invalid -- for...
I have a form with 30 text controls (controls are named txtitem1 - txtitem30) which I want to bind to fields in a database (database table fields (named item1-item30). Rather than binding each item in a separate statement, I would like to create a collection for these controls and use a "for...
I have a windows form with controls bound to an Access database. When data is entered/changed in a field I want to 1)validate that the data is numeric and 2) if it is format the data show that it is displayed as 99.99.
When the code in the mycontrol_validating event is as follows:
If...
Thanks for all who responded. I was able to trap the invalid data error by putting the code in either the mycontrol_validating or the mycontrol_textChanged events.
I'm starting a new post because I'm not understanding the behavior of vb.net as it executes these events.
Thanks for your quick reply. I guess my real question was where I put the code that checks for invalid data. It isn't getting executed when I put it in the mycontrol_validating or mycontrol_onclick methods,
so where do I put it so it gets executed before the unhandled exception is thrown?
I'm just getting started with VB.net and am finding the switch from VB6 very painful. I am working on a Windows form that has bound fields to an access database. The fields are of type double. I want to include error checking to make sure that characters are not entered into the fields. It...
Ignore my last response. I tried it again without the datepart and it worked fine. Thanks for your help.
So this is what worked:
libname JobLib odbc dsn=JobStats...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.