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
How do cookies work? Give an example of their abuse.
Explain what is postback in asp. Net?
What is the purpose of master page?
Write some code using interfaces, virtual methods, and an abstract class`
What is mta?
What are the differences between application object and session object?
How can we prevent browser from caching an aspx page?
Explain what is an abstract class?
What is the default authentication mode for asp.net?
How can you send an email message from an asp.net web page?
Can we have a web application running without web.config file?
What is syntax code to send email from an asp.net application?
What are the disadvantages of using session?
What is the equivalent of date() and time() in asp.net?
What is different authentication mechanisms used in ASP.NET?