How To Generate ConnectionString By Using Notepad??
Answer Posted / kesavan
StreamReader fStream = new StreamReader(Application.StartupPath + "/Coninfo.ini");
fStream.BaseStream.Seek(0, SeekOrigin.Begin);
companyId = fStream.ReadLine().ToString().Substring(20);
ComPanyName = fStream.ReadLine().ToString().Substring(20);
serverName = fStream.ReadLine().ToString().Substring(20);
userId = fStream.ReadLine().ToString().Substring(20);
Password = fStream.ReadLine().ToString().Substring(20);
dataBase = fStream.ReadLine().ToString().Substring(20);
dbPath = fStream.ReadLine().ToString().Substring(20);
dbType = fStream.ReadLine().ToString().Substring(20);
fStream.Close();
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is session mode in asp.net?
List some of the important session state modes of asp.net.
What are the media types of http requests and response?
What is difference between session and cookies?
Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?
What is server side routing?
Explain what are webservices?
What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?
Define repository pattern in mvc.net? : asp.net mvc
What is ashx file in asp.net?
Define transparent caching with aop?
Where web.config file is used?
Why session is more secure than cookies?
What is the difference between a candidate key and primary key?
How do cookies work?