Click here to Skip to main content
15,917,709 members
Home / Discussions / C#
   

C#

 
GeneralRe: TextBox Pin
Rahul Walavalkar3-Nov-03 1:56
Rahul Walavalkar3-Nov-03 1:56 
GeneralRe: TextBox Pin
Alvaro Mendez3-Nov-03 8:42
Alvaro Mendez3-Nov-03 8:42 
GeneralWeakHashMap equivalent Pin
peter27132-Nov-03 21:43
peter27132-Nov-03 21:43 
Questionhow to login by C# Pin
martiwy2-Nov-03 17:35
martiwy2-Nov-03 17:35 
AnswerRe: how to login by C# Pin
leppie2-Nov-03 20:30
leppie2-Nov-03 20:30 
AnswerRe: how to login by C# Pin
Steve S3-Nov-03 2:59
Steve S3-Nov-03 2:59 
AnswerRe: how to login by C# Pin
perlmunger3-Nov-03 12:18
perlmunger3-Nov-03 12:18 
AnswerIt doesn't work. please check my code. Pin
martiwy4-Nov-03 20:46
martiwy4-Nov-03 20:46 
I don't have that feature in my linksys.
What I am trying to do is my program will periodcially check my wan IP and email to my cell phone if the new IP is detected. here is what i did

<code>private void button1_Click(object sender, System.EventArgs e)
		{
			StreamReader rd = null;
			Regex regexp = new Regex("IP=[0-9]+.[0-9]+.[0-9]+.[0-9]+");
			try
			{
				WebRequest request = WebRequest.Create("http://www.adsforyourbusiness.com/Thang/ip.php");
				WebResponse response = request.GetResponse();
				rd = new StreamReader(response.GetResponseStream());
				string content = rd.ReadToEnd();
				string myip = regexp.Match(content).ToString();
				textBox1.Text = myip.Substring(3,myip.Length-3);
	                 catch(System.Exception r)
			{
				textBox1.Text= r.ToString();
			}		
		}

http://www.adsforyourbusiness.com/Thang/ip.php is the page with script to record client ip.

now I used the same code but change to
WebRequest request = WebRequest.Create("http://username:password@192.168.1.1");<br />
WebResponse response = request.GetResponse();

I think I got the exception "the remote server returned an error:(401) Unauthorized.
GeneralWeb Browser in .NET Pin
Muhammad Nauman Khan2-Nov-03 16:56
Muhammad Nauman Khan2-Nov-03 16:56 
GeneralRe: Web Browser in .NET Pin
bjoernen2-Nov-03 21:48
bjoernen2-Nov-03 21:48 
GeneralRe: Web Browser in .NET Pin
Muhammad Nauman Khan2-Nov-03 22:35
Muhammad Nauman Khan2-Nov-03 22:35 
GeneralRe: Web Browser in .NET Pin
bjoernen2-Nov-03 22:50
bjoernen2-Nov-03 22:50 
GeneralRe: Web Browser in .NET Pin
Muhammad Nauman Khan2-Nov-03 22:36
Muhammad Nauman Khan2-Nov-03 22:36 
GeneralRe: Web Browser in .NET Pin
Paul Evans3-Nov-03 3:46
Paul Evans3-Nov-03 3:46 
QuestionEvent marshalling across thread boundaries? Pin
Jörgen Sigvardsson2-Nov-03 10:13
Jörgen Sigvardsson2-Nov-03 10:13 
AnswerRe: Event marshalling across thread boundaries? Pin
Nick Parker2-Nov-03 10:40
protectorNick Parker2-Nov-03 10:40 
GeneralRe: Event marshalling across thread boundaries? Pin
Jörgen Sigvardsson2-Nov-03 10:49
Jörgen Sigvardsson2-Nov-03 10:49 
GeneralRe: Event marshalling across thread boundaries? Pin
Nick Parker2-Nov-03 10:55
protectorNick Parker2-Nov-03 10:55 
GeneralRe: Event marshalling across thread boundaries? Pin
Heath Stewart2-Nov-03 10:58
protectorHeath Stewart2-Nov-03 10:58 
GeneralHtml Control Development in C# Pin
Inam2-Nov-03 7:55
Inam2-Nov-03 7:55 
GeneralRe: Html Control Development in C# Pin
Nick Parker2-Nov-03 8:14
protectorNick Parker2-Nov-03 8:14 
GeneralRe: Html Control Development in C# Pin
Inam2-Nov-03 8:27
Inam2-Nov-03 8:27 
GeneralRe: Html Control Development in C# Pin
J. Dunlap2-Nov-03 8:34
J. Dunlap2-Nov-03 8:34 
GeneralRe: Html Control Development in C# Pin
J. Dunlap2-Nov-03 8:17
J. Dunlap2-Nov-03 8:17 
GeneralCombo box binding bugs Pin
Wjousts2-Nov-03 6:07
Wjousts2-Nov-03 6:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.