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 can u deifne the benefits and limitation of using Viewstate for state management?

0 Answers   QuestPond,


WHAT ARE DEFFERENCE BETWEEN DATALIST AND DATAGRID

1 Answers   Seion Infotech,


How do you use a custom validator? When might you want to use one?

3 Answers   Infosys,


What is the difference between appsetting and connectionstring tags in web.config file

2 Answers   HCL, TCS,


Can we use the java script code in .Net Code behind?

5 Answers   eXensys,


How do I use response redirect?

0 Answers  


Can we have multiple web config files for an asp.net application?

0 Answers  


What is the difference between the response.write() and response.output.write() methods?

0 Answers  


How do you deploy your asp.net application?

0 Answers  


What is deference between asp.net, vb.net, c# & j#

2 Answers  


Explain the role of global.asax?

0 Answers  


List the types of authentication supported by asp.net?

0 Answers  


Categories