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
Can you explain autopostback?
where can i gather the materials for MCP certification
What are the difference between function and stored procedure in .net programming language?
Explain file-based dependency and key-based dependency.
Which is an advantage of application service providers?
What is the difference between cache and cookies?
What are sessions used for?
How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server
How can we use Web API with ASP.NET Web Form?
Explain the path instructions in xaml?
Is session stored in browser?
What is tracing? Where is it used?
What are the Difference between asp.net and asp ?
How to comment out asp.net tags?
Define view state.