Mattias Sjögren wrote:
Could somebody give and example of how to do it ?
System.Configur ation.Configura tionSettings.Ap pSettings("Desv io")
Thanks for your reply.
I did in that way but it didn't worked and I'm going to be crazy !>..
I did:
Dim ConnectionStrin g As String
Dim MargenString As String
Dim Desvio As String
Desvio = System.Configur ation.Configura tionSettings.Ap pSettings("Desv io")
System.Console. WriteLine(Desvi o)
MargenString =
System.Configur ation.Configura tionSettings.Ap pSettings("Marg enString")
System.Console. WriteLine(Marge nString)
ConnectionStrin g =
System.Configur ation.Configura tionSettings.Ap pSettings("Conn ectionString")
System.Console. WriteLine(Conne ctionString)
--------------
and in config file I've:
<configuratio n>
<appSettings>
<add key="Desvio" value="65282561 6" />
<add key="MargenStri ng" value="10" />
</appSettings>
</configuration>
But when I run my application I see:
---------
C:\tmp1>.\prueb aSQL.exe
Network Library=DBMSSOC N;Data Source=localhos t;Initial atalog=segex;Us er
ID=sa;Password= sa
----------------
Program showed me the string of a parameter I deleted from config file
and didn't show me exsitent parameters !!!
How is posible ? Am I doing something wrong ? Is there a kind of cache
that keeps data ?
Thanks in advance
X