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
Can you use c# without .net?
I want to connect a system in LAN and I want to access that. Whenever I am moving a mouse in my desktop, the similar thing has to happen in another system in which I have connected. I need coding for this in C# and ASP.NET Can anyone please help me. It is very urgent. Thanks in advance. My email id is manojkumarchallagundla@gmail.com Will you please?
How does u get record no from 5 to 15 from a dataset of 100 records?
In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?
What do you mean by role-based security?
If you want to write your own dot net language, what steps you will you take care?
What are the asp.net security controls?
What is cache in asp net?
Explain server side state management system.
Why is mvc better than asp.net?
what are the events raised in asp.net page life cycle?in which stage view state can be loaded?
How does asp.net page work?
To display data in a Repeater control which template you provide?
Is it possible to write code in many languages in one asp.net project?
Explain some of the major built-in objects in asp.net