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


Please Help Members By Posting Answers For Below Questions

calling result set one procedure to anothar procedure in sql2000

1348


What is the difference between the get method () and post method ()?

529


What is state management in asp.net with example?

466


How to implement role based security in asp.net mvc? : Asp.Net MVC

445


How to disable cut, copy and paste in TextBox using jQuery in asp.net?

638






What is asp.net web pages?

534


What is webresource axd?

472


What is difference between web api and web services?

541


What is http pipeline in asp.net?

523


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?

1519


Which object is used to encapsulate the state of the client and the browser in ASP.NET?

597


What is marshalling ? Is it a part of asp.net ?

620


What describes a query?

531


What is difference between rest and soap?

582


Is razor a programming language?

537