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
Which is faster viewdata or viewbag?
What is difference between View State and Hidden Field in ASP.NET?
Describe how passport authentication works.
How long should a session id be?
How to deploy/publish webservices?How many ways?Plz explain me
What is localhost in asp.net?
What is the differences between a primary key and a unique key in sql server?
What is connection pooling and how to enable and disable connection pooling?
Is session stored in browser?
In order to get assembly info which namespace we should import?
Explain the reason why the javascript validation not run on the asp.net button but run successfully on the html button?
Define viewstate in .net?
What is webresource axd?
How can you access the properties and controls of master pages from content pages?
What is preprocessor in .net?