How To Generate ConnectionString By Using Notepad??
Answers were Sorted based on User's Feedback
Answer / kesavan
string connString = System.IO.File.ReadAllText(filePath);
| Is This Answer Correct ? | 2 Yes | 0 No |
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 |
How can u deifne the benefits and limitation of using Viewstate for state management?
WHAT ARE DEFFERENCE BETWEEN DATALIST AND DATAGRID
How do you use a custom validator? When might you want to use one?
What is the difference between appsetting and connectionstring tags in web.config file
Can we use the java script code in .Net Code behind?
How do I use response redirect?
Can we have multiple web config files for an asp.net application?
What is the difference between the response.write() and response.output.write() methods?
How do you deploy your asp.net application?
What is deference between asp.net, vb.net, c# & j#
Explain the role of global.asax?
List the types of authentication supported by asp.net?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)