PC Review


Reply
Thread Tools Rate Thread

C# windows application

 
 
=?Utf-8?B?ZGVlcGFr?=
Guest
Posts: n/a
 
      23rd Nov 2006
Hi All,

I developed a C# window application (not Web Application as I
need exe file) needs to handle the Proxy Script with URL

Form: 2 text Boxes (one for filling URL, one for filling Proxy
Script string)
One Button: To calculate the time differences between request and
response (i.e. when URL is requested by user
with proxy script
textbox filled)
One Label: To show the calculated time difference.

My Code is given below

private void Calc_Time_For_URL()
{
try
{ //Time of Request
DateTime dt4 = DateTime.Now;

System.Net.HttpWebRequest myReq = (HttpWebRequest)
WebRequest.Create(tbxURL.Text.ToString());

//Proxy Script
if (tbxProxyScript.Text.Length > 0)
{
//I NEED CODE FOR THIS SECTION MEANS HOW TO HANDLE PROXY
SCRIPT WITH URL
}

//GetResponse for this request.
HttpWebResponse response = (HttpWebResponse)myReq.GetResponse();

//Time of Response
DateTime dt5 = DateTime.Now;
lblTimeTaken.Text = Convert.ToString(dt5.Subtract(dt4));
}
catch(System.Exception ex)
{
string message = "Please Enter Url with http://www or https://www as
prefix
as per your need\nError returned is :\n " +
ex.Message;
string caption = "Error!!!";
DialogResult result;
MessageBoxButtons buttons = MessageBoxButtons.OK;
result = MessageBox.Show(message,caption,buttons);
}
}

Does any body have idea, Please mail me ASAP if possible, and this is very
urgent issue.

Thanks,
Deepak
(E-Mail Removed)
(E-Mail Removed)
(E-Mail Removed)
+919886735837


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running windows/web application inside another windows application Shiva Ramani Microsoft C# .NET 7 14th Sep 2008 07:03 PM
Windows Service application Occurs Application Error Event ID 1000 =?Utf-8?B?VGVkZHk=?= Microsoft Dot NET Framework 1 11th Dec 2006 01:14 PM
print image whit office application or windows application GhysBoy Microsoft Access 0 21st Jun 2006 01:22 PM
Fail in operating my hardware in web application , makes other windows application startup failure. Ryan.ZhYin Microsoft C# .NET 0 25th Jan 2005 08:34 AM
How to make javascript close to work in c# windows application (Custom IE Application) Ashok Microsoft C# .NET 0 4th Jun 2004 04:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:36 PM.