Click here to Skip to main content
15,905,427 members
Home / Discussions / C#
   

C#

 
AnswerRe: WMI Pin
moein.serpico11-Sep-09 0:29
moein.serpico11-Sep-09 0:29 
GeneralRe: WMI Pin
Henry Minute11-Sep-09 0:34
Henry Minute11-Sep-09 0:34 
AnswerRe: WMI Pin
moein.serpico11-Sep-09 0:38
moein.serpico11-Sep-09 0:38 
GeneralRe: WMI Pin
Henry Minute11-Sep-09 0:47
Henry Minute11-Sep-09 0:47 
GeneralRe: WMI Pin
moein.serpico11-Sep-09 1:52
moein.serpico11-Sep-09 1:52 
GeneralRe: WMI Pin
stancrm11-Sep-09 0:36
stancrm11-Sep-09 0:36 
GeneralRe: WMI Pin
Dave Kreskowiak11-Sep-09 4:19
mveDave Kreskowiak11-Sep-09 4:19 
Questionproblems about how to cancel auto play from an application Pin
smilefishcc10-Sep-09 23:45
smilefishcc10-Sep-09 23:45 
AnswerRe: problems about how to cancel auto play from an application Pin
stancrm10-Sep-09 23:48
stancrm10-Sep-09 23:48 
QuestionRe: problems about how to cancel auto play from an application [modified] Pin
smilefishcc11-Sep-09 0:17
smilefishcc11-Sep-09 0:17 
QuestionNetwork speed limitation Pin
DeOiD10-Sep-09 23:43
DeOiD10-Sep-09 23:43 
QuestionCasting byte arrays to structures in C# [modified] Pin
User 571134810-Sep-09 23:29
User 571134810-Sep-09 23:29 
AnswerRe: Casting byte arrays to structures in C# Pin
Luc Pattyn10-Sep-09 23:38
sitebuilderLuc Pattyn10-Sep-09 23:38 
AnswerRe: Casting byte arrays to structures in C# Pin
PIEBALDconsult11-Sep-09 4:30
mvePIEBALDconsult11-Sep-09 4:30 
QuestionCrystal report subreport error... Pin
The_Collector10-Sep-09 23:21
The_Collector10-Sep-09 23:21 
AnswerRe: Crystal report subreport error... Pin
CoderForEver13-Sep-09 0:48
CoderForEver13-Sep-09 0:48 
GeneralRe: Crystal report subreport error... Pin
The_Collector13-Sep-09 16:46
The_Collector13-Sep-09 16:46 
Questionproblem in deployment Pin
gtag10-Sep-09 22:10
gtag10-Sep-09 22:10 
AnswerRe: problem in deployment Pin
minnie mouse11-Sep-09 16:59
minnie mouse11-Sep-09 16:59 
QuestionHow to connect to a website and retrieve the page in C#? Pin
sheateng10-Sep-09 22:00
sheateng10-Sep-09 22:00 
AnswerRe: How to connect to a website and retrieve the page in C#? Pin
Md. Marufuzzaman10-Sep-09 22:17
professionalMd. Marufuzzaman10-Sep-09 22:17 
AnswerRe: How to connect to a website and retrieve the page in C#? Pin
vivasaayi11-Sep-09 0:53
vivasaayi11-Sep-09 0:53 
Follow the Following code. Pass the number to Download function in string format. You ll get the answer. Worked for me.
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.IO;

namespace RequestURL
{
    class Program
    {
        static void Main(string[] args)
        {
            string response = Download("0");//Give the Number here
            Console.WriteLine(response);
            Console.ReadLine();
        }

        private static string Download(string number)
        {
            string text = "http://utptt-ex.petronas.com.my/Reporting/Individual?identifier=" + number + "&B1=View+Timetable&objectclass=students&idtype=id&width=100&periods=1-30";
            string responseFromServer = "";

            try
            {
                WebRequest request = WebRequest.Create(text);
                request.Credentials = CredentialCache.DefaultCredentials;

                HttpWebResponse response = (HttpWebResponse)request.GetResponse();

                Stream dataStream = response.GetResponseStream();
                StreamReader reader = new StreamReader(dataStream);

                responseFromServer = reader.ReadToEnd();

            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            return responseFromServer;

        }
    }
}

GeneralRe: How to connect to a website and retrieve the page in C#? Pin
sheateng27-Sep-09 21:43
sheateng27-Sep-09 21:43 
GeneralRe: How to connect to a website and retrieve the page in C#? Pin
vivasaayi28-Sep-09 3:52
vivasaayi28-Sep-09 3:52 
AnswerRe: How to connect to a website and retrieve the page in C#? [modified] Pin
April Fans21-Sep-09 17:09
April Fans21-Sep-09 17:09 

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.