Click here to Skip to main content
16,010,114 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Continuous file monitoring problem Pin
Mycroft Holmes15-Mar-08 21:41
professionalMycroft Holmes15-Mar-08 21:41 
GeneralRe: Continuous file monitoring problem Pin
Dave Kreskowiak17-Mar-08 7:12
mveDave Kreskowiak17-Mar-08 7:12 
Generalhelp required with a stock system Pin
mickstar15-Mar-08 3:08
mickstar15-Mar-08 3:08 
GeneralRe: help required with a stock system Pin
Christian Graus16-Mar-08 11:15
protectorChristian Graus16-Mar-08 11:15 
GeneralDraw lines on picture in background Pin
patrik.michnac15-Mar-08 3:07
patrik.michnac15-Mar-08 3:07 
GeneralRe: Draw lines on picture in background Pin
Dave Kreskowiak17-Mar-08 6:58
mveDave Kreskowiak17-Mar-08 6:58 
QuestionHow to convert a value to a string with decimal point instead of comma Pin
DCAUB15-Mar-08 0:57
DCAUB15-Mar-08 0:57 
GeneralRe: How to convert a value to a string with decimal point instead of comma Pin
Colin Angus Mackay15-Mar-08 1:13
Colin Angus Mackay15-Mar-08 1:13 
DCAUB wrote:
When i want to make a string of the variable id do the following system.convert.tostring (variable)

The result is indead a string but in the following format 12,5


The ToString is taking into account your locale. Send the ToString method a CultureInfo object of the locale you want to use in the conversion.


DCAUB wrote:
when i insert that to my SQL 2005 server


Then you are attempting it INJECT the value into a SQL string. Don't do that. It will cause you problems as it leaves your application open to SQL Injection Attacks.


DCAUB wrote:
So i think i have a converison problem .


No. You have a security problem.


DCAUB wrote:
I dont want to change the regional setting of the pc because when changing those other programs will not work like they should.


No need. (1) You can set a locale briefly on methods that accept it. (2) Fiddling about with string conversion won't solve the underlying gaping security hole you have.


DCAUB wrote:
So i look for a solution to change the convert method so i can convert to tring but with a . instead of a , or tell to SQL server 2005 that it has to accept , ans use it as a comma.


Pass the value as a double directly to SQL Server. Don't inject it into SQL strings.

For more information on securing youself against SQL Injection Attacks please read SQL Injection Attacks and some tips on how to prevent them[^]

Upcoming FREE developer events:
* Developer Day Scotland

Recent blog posts:
* Mixins in C#3.0

My website | Blog

GeneralRe: How to convert a value to a string with decimal point instead of comma Pin
DCAUB15-Mar-08 1:28
DCAUB15-Mar-08 1:28 
GeneralRe: How to convert a value to a string with decimal point instead of comma Pin
Colin Angus Mackay15-Mar-08 4:08
Colin Angus Mackay15-Mar-08 4:08 
QuestionHow to send a string over the internet to another pc Pin
softwarejaeger15-Mar-08 0:17
softwarejaeger15-Mar-08 0:17 
GeneralRe: How to send a string over the internet to another pc Pin
Dave Kreskowiak17-Mar-08 5:32
mveDave Kreskowiak17-Mar-08 5:32 
QuestionUsing System.windows.forms.datagrid Pin
shaeron14-Mar-08 22:36
shaeron14-Mar-08 22:36 
GeneralRe: Using System.windows.forms.datagrid Pin
Mycroft Holmes15-Mar-08 21:50
professionalMycroft Holmes15-Mar-08 21:50 
GeneralHowTo Refresh Data Bound Controls in VB.NET Compact Edition Pin
swdev.bali14-Mar-08 18:37
swdev.bali14-Mar-08 18:37 
QuestionConverting Excel VBA module code to VB 2005/VB.NET Pin
Graham Latto14-Mar-08 14:39
Graham Latto14-Mar-08 14:39 
GeneralRe: Converting Excel VBA module code to VB 2005/VB.NET Pin
Paul Conrad14-Mar-08 14:59
professionalPaul Conrad14-Mar-08 14:59 
QuestionRe: Converting Excel VBA module code to VB 2005/VB.NET Pin
Graham Latto14-Mar-08 15:26
Graham Latto14-Mar-08 15:26 
GeneralRe: Converting Excel VBA module code to VB 2005/VB.NET Pin
ChandraRam16-Mar-08 23:29
ChandraRam16-Mar-08 23:29 
QuestionCheck for a foder or a file Pin
Assaf8214-Mar-08 10:50
Assaf8214-Mar-08 10:50 
GeneralRe: Check for a foder or a file Pin
Dave Kreskowiak14-Mar-08 10:55
mveDave Kreskowiak14-Mar-08 10:55 
GeneralRe: Check for a foder or a file Pin
Assaf8214-Mar-08 10:57
Assaf8214-Mar-08 10:57 
GeneralRe: Check for a foder or a file Pin
Dave Kreskowiak14-Mar-08 12:22
mveDave Kreskowiak14-Mar-08 12:22 
Generalcheck for the existance of a folder Pin
Assaf8214-Mar-08 10:25
Assaf8214-Mar-08 10:25 
GeneralRe: check for the existance of a folder Pin
Assaf8214-Mar-08 10:30
Assaf8214-Mar-08 10:30 

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.