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
Securitywise What are the Enhancements in 2.0?
What is inheritance and an how it be used, example with an example?
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?
To display data in a Repeater control which template you provide?
What are the new features implemented in ASP.NET?
What is anonymous authentication?
What are the best practices to follow to secure connection strings in an ASP.NET web application?
What’s difference between “optimistic” and “pessimistic” locking?
How you will improve web application performance?
Give some salient points of difference between request processor and request dispatcher.
I’m having some trouble with cas. How can I diagnose my problem?
Explain exception handling in .net.
What are the differences between application object and session object?
How you can manage the state of application at the server side in ASP.NET?
How will you do Redo and Undo in a TextControl?