Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI friends,

i have a probleme and i need your help ...

i have created a very simple "web browser" and i need something to automatically enter to my router "192.168.1.1" the password is admin and my user name is admin too
Whenever I connect to my router I must enter the password and user name ...

see the pecture HERE[^]

waiting for your helps
think you so much ...
Posted

You can write an application configuration file for your simple web browser, in which you can store these credentials in XML format

HTML
<defaultconnect>
   <user>admin</user>
   <password>admin</password>
   <address>192.168.1.1</address>
<defaultconnect>
</defaultconnect></defaultconnect>

On Application_Start method, you fetch these details using C# ConfigurationManager class
C#
foreach (string key in ConfigurationManager.AppSettings)
   string value = ConfigurationManager.AppSettings[key];


Then apply in the default connectivity code.
 
Share this answer
 
Comments
guendouz bachir 9-Sep-11 4:44am    
I never worked with XML, I'll try to learn XML ... there is not another solution?!
thank you so much GanesanSenthilvel
I have understand the XML File but the second code not ...give me some exemple !!

On Application_Start method, you fetch these details using C# ConfigurationManager class
 
Collapse | Copy Code
foreach (string key in ConfigurationManager.AppSettings)
   string value = ConfigurationManager.AppSettings[key];
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900