Click here to Skip to main content
15,910,787 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have a website URL. When i go to this URL using Internet explore(Browser) or opera then it show only a number in Internet explorer page.
I want to use this number in window application Form in Label text
Please Help Me
URL is this this is show -10 i want to use this in window application form
can anybody help me
url :
http://203.122.58.168:8000/servlet/com.aclwireless.enterprise.prepaidcbs.listeners.GetCredits?userid=kuldeep&pwd=hisarama
Posted
Updated 30-Jul-12 20:12pm
v4
Comments
Sergey Alexandrovich Kryukov 31-Jul-12 0:15am    
What is "weburl"? What is "internetexplore"? what is "go to url"? :-)
What is the number and how do you want to use it? why?
Help with what?
--SA
kuldeepkumartak 31-Jul-12 1:13am    
internet explorer is browser and url is uniform resource locatior(means website address)
and number is when we go to website address the browser show number in browser page i want to use this number in window application form for label text

1 solution

Try:

C#
string Url = @"http://203.122.58.168:8000/servlet/com.aclwireless.enterprise.prepaidcbs.listeners.GetCredits?userid=kuldeep&pwd=hisarama";
string result;
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(Url);
myRequest.Method = "GET";
using (WebResponse myResponse = myRequest.GetResponse())
    {
    using (StreamReader sr = new StreamReader(myResponse.GetResponseStream(), System.Text.Encoding.UTF8))
        {
        result = sr.ReadToEnd();
        sr.Close();
        myResponse.Close();
        }
    }
 
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