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

How to convert any string to view state format in asp.net? §ÇÛ짬ªª³ö»Ç¾ö»ÂÇ¿¾»¼»¾ö¼ÉÇöÇÏǼ»Ãö®±ª§°ö«³ -- i want convert this string to view state.

1 Answers   iFlex,


What is the difference between file-based dependency and key-based dependency?

0 Answers  


How do u deploy your asp.net application?

0 Answers  


what is use of web.config?

3 Answers  


What is the appSettings Section in the web.config file?

0 Answers   MindCracker,


How Can assign alias name for ASP.NET Web API Action?

0 Answers  


How to do state management in ASP.NET?

0 Answers   BirlaSoft,


what is state management,what is the purpose of it,how it will be implemented in real time?

2 Answers  


Write a standard lock() plus double check to create a critical section around a variable access?

1 Answers  


How can exception be handled with out the use of try catch?

0 Answers  


What is viewstate?

5 Answers   Microsoft,


what is abstract class and method..

2 Answers  


Categories