Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How To Generate ConnectionString By Using Notepad??

Answers were Sorted based on User's Feedback



How To Generate ConnectionString By Using Notepad??..

Answer / kesavan

string connString = System.IO.File.ReadAllText(filePath);

Is This Answer Correct ?    2 Yes 0 No

How To Generate ConnectionString By Using Notepad??..

Answer / 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

More ASP.NET Interview Questions

Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?

0 Answers  


Which adapter should you use, if you want to get the data from an access database?

0 Answers  


Is it necessary to undertsand these events of an ASPX page execute. Explain its importantance?

2 Answers   HCL, Siebel,


Is it right that ASP.NET Web API has replaced WCF?

0 Answers  


Explain the steps to be followed to use passport authentication.

0 Answers  


What are the three parts of an http response?

0 Answers  


What is the difference between a thread and a process?

3 Answers  


diff between Server.Transfer() and Server.Execute()

1 Answers  


How may clustered index we can create in table?

0 Answers  


If there are two web.config files in a application which config files will get priority?

5 Answers  


what are the server controls used in sitepath navigation?

1 Answers  


What?s a bubbled event?

6 Answers   Visual Soft,


Categories