المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Checking a webpage doesn't redirect [modified]



C# Programming
08-22-2009, 07:51 AM
I am making a program were you type in your Xbox LIVE gamertag and it retrieves the info about it. I have most of it set up, but one thing I would like is to check if it exists or not. If you go to "http://live.xbox.com/en-US/profile/profile.aspx?pp=0&GamerTag=???" and replace the ??? with the textBox1 input, then if it exists, it takes you to the info. But, if it doesn't exist, it will still load the page like it exists, but then it will redirect to "http://live.xbox.com/en-US/profile/invalid.aspx". Is there a way to detect this redirection?

Also, I would like to retrieve some text on a certain ******** of a web page, could someone show how that is done?

modified on Friday, August 21, 2009 11:42 PM