Click here to Skip to main content
15,921,062 members
Home / Discussions / C#
   

C#

 
GeneralRe: Combine 'open file' and 'open folder' dialog Pin
Stefan Troschuetz23-Mar-07 0:10
Stefan Troschuetz23-Mar-07 0:10 
AnswerRe: Combine 'open file' and 'open folder' dialog Pin
Keshav V. Kamat22-Mar-07 23:56
Keshav V. Kamat22-Mar-07 23:56 
AnswerRe: Combine 'open file' and 'open folder' dialog Pin
Stefan Troschuetz23-Mar-07 0:15
Stefan Troschuetz23-Mar-07 0:15 
AnswerRe: Combine 'open file' and 'open folder' dialog Pin
joon vh.23-Mar-07 0:59
joon vh.23-Mar-07 0:59 
AnswerRe: Combine 'open file' and 'open folder' dialog Pin
Vikram A Punathambekar23-Mar-07 2:33
Vikram A Punathambekar23-Mar-07 2:33 
QuestionWebBrowser Control --How to use this control Pin
pashitech22-Mar-07 23:31
pashitech22-Mar-07 23:31 
AnswerRe: WebBrowser Control --How to use this control Pin
Keshav V. Kamat23-Mar-07 0:14
Keshav V. Kamat23-Mar-07 0:14 
AnswerRe: WebBrowser Control --How to use this control Pin
joon vh.23-Mar-07 0:53
joon vh.23-Mar-07 0:53 
I understand you want to have certain data from a HTTP webpage?

I experimented with this recently, and here is some code.
This method just returns all of the HTTP code from a certain page. You could use basic string functions to parse it, and then give the user a link to the proper website to get an update.

<code>       public static string GetData()
       {
           string strResponse;
           WebRequest myWebRequest =
               WebRequest.Create("http://www.sybelles.com/frhiver/METEO/meteo/index.html/typeid-5");

           // Send the 'WebRequest' and wait for response.
           using (WebResponse myWebResponse = myWebRequest.GetResponse())
           {
               // Obtain a 'Stream' object associated with the response object.
               using (Stream ReceiveStream = myWebResponse.GetResponseStream())
               {
                   Encoding encode = Encoding.GetEncoding("utf-8");

                   // Pipe the stream to a higher level stream reader with the required encoding format.
                   StreamReader readStream = new StreamReader(ReceiveStream, encode);

                   strResponse = readStream.ReadToEnd();
               }
           }

           return strResponse;
       }</code>



Other options are
- making a special page that only has the version number
- making a simple web service (look here on CP for tutorial)





Visual Studio can't evaluate this, can you?
public object moo<br />
        {<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}

Questiongenerate xsd Pin
darkcalin22-Mar-07 23:26
darkcalin22-Mar-07 23:26 
AnswerRe: generate xsd Pin
Stefan Troschuetz22-Mar-07 23:33
Stefan Troschuetz22-Mar-07 23:33 
GeneralRe: generate xsd Pin
darkcalin22-Mar-07 23:47
darkcalin22-Mar-07 23:47 
GeneralRe: generate xsd Pin
Stefan Troschuetz23-Mar-07 1:20
Stefan Troschuetz23-Mar-07 1:20 
QuestionRoll back all the Data. Pin
Joshi Rahul22-Mar-07 23:08
Joshi Rahul22-Mar-07 23:08 
Questionhow to show (Application)Process in on Desktop [modified] Pin
Sanjib Raj22-Mar-07 23:05
Sanjib Raj22-Mar-07 23:05 
Questionis there any substitute for AxInterop.SHDocVw.dll and Interop.SHDocVw.dll Pin
Saira Tanwir22-Mar-07 23:04
Saira Tanwir22-Mar-07 23:04 
AnswerRe: is there any substitute for AxInterop.SHDocVw.dll and Interop.SHDocVw.dll Pin
Keshav V. Kamat23-Mar-07 0:06
Keshav V. Kamat23-Mar-07 0:06 
GeneralRe: is there any substitute for AxInterop.SHDocVw.dll and Interop.SHDocVw.dll Pin
Saira Tanwir23-Mar-07 0:38
Saira Tanwir23-Mar-07 0:38 
QuestionMaximizing/restoring a window [modified] Pin
triff22-Mar-07 23:02
triff22-Mar-07 23:02 
QuestionNo Subject Pin
Saira Tanwir22-Mar-07 23:00
Saira Tanwir22-Mar-07 23:00 
Questionhow to make buttons in cell not resize with column? Pin
nathan722-Mar-07 22:59
nathan722-Mar-07 22:59 
AnswerRe: how to make buttons in cell not resize with column? Pin
Stefan Troschuetz22-Mar-07 23:11
Stefan Troschuetz22-Mar-07 23:11 
GeneralRe: how to make buttons in cell not resize with column? Pin
nathan722-Mar-07 23:32
nathan722-Mar-07 23:32 
GeneralRe: how to make buttons in cell not resize with column? Pin
Stefan Troschuetz22-Mar-07 23:39
Stefan Troschuetz22-Mar-07 23:39 
QuestionStatic Variables Pin
Ruchi0322-Mar-07 22:48
Ruchi0322-Mar-07 22:48 
AnswerRe: Static Variables Pin
darkcalin22-Mar-07 22:51
darkcalin22-Mar-07 22:51 

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.