Click here to Skip to main content
15,902,835 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralTreeView to a ListView Pin
Brad Fackrell18-Jun-04 4:17
Brad Fackrell18-Jun-04 4:17 
GeneralRe: TreeView to a ListView Pin
Dave Kreskowiak18-Jun-04 4:51
mveDave Kreskowiak18-Jun-04 4:51 
GeneralRe: TreeView to a ListView Pin
Brad Fackrell18-Jun-04 5:06
Brad Fackrell18-Jun-04 5:06 
GeneralRe: TreeView to a ListView Pin
Brad Fackrell18-Jun-04 5:29
Brad Fackrell18-Jun-04 5:29 
GeneralAnti SQL Injection Helper Pin
Jim Taylor18-Jun-04 3:55
Jim Taylor18-Jun-04 3:55 
GeneralRe: Anti SQL Injection Helper Pin
Dave Kreskowiak18-Jun-04 4:14
mveDave Kreskowiak18-Jun-04 4:14 
GeneralRe: Anti SQL Injection Helper Pin
Jim Taylor18-Jun-04 8:04
Jim Taylor18-Jun-04 8:04 
GeneralRe: Anti SQL Injection Helper Pin
Steven Campbell18-Jun-04 5:18
Steven Campbell18-Jun-04 5:18 
You missed the most common solution - use command parameters. You don't need stored procedures to get auto-protection from SQL Injection.

Regular expressions are just overkill for this. For normal validation they are appropriate, but not at the database level.

In terms of what you are doing, one approach is to create data type classes with built in validation. It is an "ok" solution, and works pretty well with inheritance, e.g. DBTypeUserName can inherit from DBTypeString. There are downsides to this approach, such as performance (because you are no longer using value types).

Last point on validation - like you mentioned, client-side validation is unreliable. Always validate at least once more on the server-side. That said, the validation controls are harder to circumvent than you imply. The javascript is just one layer, the actual validation can be done on the code-behind, like:
Sub MySubmit_Clicked()<br />
Page.Validate()<br />
If Page.IsValid then<br />
...<br />
end If<br />
end Sub<br />

GeneralRe: Anti SQL Injection Helper Pin
Jim Taylor18-Jun-04 8:10
Jim Taylor18-Jun-04 8:10 
Generalcalendar control Pin
Vicetta18-Jun-04 3:53
Vicetta18-Jun-04 3:53 
GeneralRe: calendar control Pin
Dave Kreskowiak18-Jun-04 4:47
mveDave Kreskowiak18-Jun-04 4:47 
GeneralRe: calendar control Pin
Vicetta18-Jun-04 4:57
Vicetta18-Jun-04 4:57 
GeneralRe: calendar control Pin
Dave Kreskowiak18-Jun-04 5:19
mveDave Kreskowiak18-Jun-04 5:19 
GeneralRe: calendar control Pin
Vicetta21-Jun-04 21:44
Vicetta21-Jun-04 21:44 
GeneralSystemTray Pin
Yoseikan18-Jun-04 3:15
Yoseikan18-Jun-04 3:15 
GeneralRe: SystemTray Pin
Yoseikan18-Jun-04 3:53
Yoseikan18-Jun-04 3:53 
GeneralFolder Browse Dialog Control Pin
mphanides18-Jun-04 0:22
mphanides18-Jun-04 0:22 
GeneralRe: Folder Browse Dialog Control Pin
Dave Kreskowiak18-Jun-04 5:10
mveDave Kreskowiak18-Jun-04 5:10 
GeneralPackage &amp; Deployment wizard Pin
syed saba17-Jun-04 23:59
syed saba17-Jun-04 23:59 
GeneralRe: Package &amp; Deployment wizard Pin
Dave Kreskowiak18-Jun-04 3:26
mveDave Kreskowiak18-Jun-04 3:26 
GeneralRe: Package &amp; Deployment wizard Pin
Ian Darling18-Jun-04 3:47
Ian Darling18-Jun-04 3:47 
GeneralRe: Package &amp; Deployment wizard Pin
Dave Kreskowiak18-Jun-04 4:20
mveDave Kreskowiak18-Jun-04 4:20 
GeneralApplication won't quit Pin
PaleyX17-Jun-04 23:04
PaleyX17-Jun-04 23:04 
GeneralRe: Application won't quit Pin
Dave Kreskowiak18-Jun-04 3:23
mveDave Kreskowiak18-Jun-04 3:23 
GeneralRe: Application won't quit Pin
PaleyX18-Jun-04 3:56
PaleyX18-Jun-04 3:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.