Hi all
I have a problem in connection string actually i am using server name as some (sys09\ij) and it was throwing error while executing, it was the problem with slash character, how to replace this, can any body suggest.....
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Mar 3, 2012, 5:45 AM
Please refer the below link
http://www.c-sharpcorner.com/uploadfile/abhikumarvatsa/connection-string-placement-in-Asp-Net/
Thanks
jnmsyPosted Apr 24, 2012, 12:45 AM
Just keep 2 backslashes instead of 1,because when you write 1 backslash it will be treated as escape charecter.Else put "@" in front of your coneection string like this
string cs=@"server=sys09\ij...............";
http://www.bestdotnettraining.com/
venkat nareshPosted Apr 23, 2012, 3:17 AM
its little bit useful