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
calling result set one procedure to anothar procedure in sql2000
What is the difference between the get method () and post method ()?
What is state management in asp.net with example?
How to implement role based security in asp.net mvc? : Asp.Net MVC
How to disable cut, copy and paste in TextBox using jQuery in asp.net?
What is asp.net web pages?
What is webresource axd?
What is difference between web api and web services?
What is http pipeline in asp.net?
i develop a web application and i gave security setting i.e autherization and athentication now it work properly on my local system , now question is ,is this security setting ie autherization and athentication which i gave in web.config will it be enough strong to secure my application on internet or i have to use some 3rd party tool or software to get security .if yes --how ? if no--what is the alternate?
Which object is used to encapsulate the state of the client and the browser in ASP.NET?
What is marshalling ? Is it a part of asp.net ?
What describes a query?
What is difference between rest and soap?
Is razor a programming language?