|
||||||
| C# Programming C# (pronounced C-sharp) is a new object oriented language from Microsoft and is derived from C and C++. It also borrows a lot of concepts from Java too including garbage collection. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hello,
I'm trying to learn a Visual C# 2005 Express here (which in theory seems to be a easy anough app). But i need to one some things: How to write a login code to a Windows Application? The concept looks following: you insert a TextBox 1 - there you type your username you insert a TextBox 2 - you type your password you insert Button - it checks the validation -- basically the site works this way: http://www.somesite.com/login.php?us...hing&act=login -- also i would like to know what should i code to get an "interval" thing - what i mean by that is if the user validates personal information with the app then the app will browse the site user accounts itself during some time. Like in every 5 seconds it will refresh and go to another page of that site So you insert a TextBox and user writes down the number how often program should refresh the page or browse for another page on that site.... the thing i need is only a code for interval THANKS A LOT FOR HELPING ME OUT! (my english isn't the best.) |
| Sponsored Links |
|
|
|
|||
|
Hello,
Yes, that was just an example URL; but the original site's login authentication works the same way: login.php?username=youruser&password=yourpass&act= login I want to write a Windows Application in C# (with Visual 2005 Express) in where you put TextBox 1 for username, TextBox 2 for pass and button (Login) to authenticate in the website. So you login to the website through my written program, basically. The thing is i don't know how to write such a code - i've been researching for it pretty long, but haven't found any useful information. -- So, i'd like some help. Thank you very much, Hardi |
|
|||||
|
You will use the HttpWebRequest, you need to set the Method property to "POST" or "GET", which will indicate that you are posting data. Also, you will have to call GetRequestStream, and write to the stream the content of the forms data.
You will need to set the ContentType property to "application/x-www-form-urlencoded". Also, you will need to find the names of the variables (name1 and name2 below are the names): name1=value1&name2=value2
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog Don't hesitate to ask any questions that you have! Check out our ASCII Calculator! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Top 10 Ways To Promote Your Web Site | ravs2k6 | Marketing | 30 | 02-02-2008 04:20 AM |
| Get installed software information | IUnknown | Software Development Tools | 5 | 10-15-2007 06:29 PM |
| HELLP!!!! Site loading problem!!!!! | Immaculate Design | HTML Programming | 4 | 05-21-2007 02:02 PM |
| Please review this site - for upcoming wedding | TVDinner | Site Reviews | 6 | 04-01-2007 05:46 PM |
| Online RPG For Sale - Predicted PR 5 | phb50530 | Site Reviews | 10 | 01-10-2007 05:59 AM |
| Xav | ........ | 1357.94 |
| MeTh0Dz|Reb0rn | ........ | 1080.79 |
| WingedPanther | ........ | 919.18 |
| marwex89 | ........ | 906.86 |
| morefood2001 | ........ | 903.18 |
| John | ........ | 902.37 |
| Brandon W | ........ | 777.89 |
| chili5 | ........ | 312.39 |
| Steve.L | ........ | 264.99 |
| dcs | ........ | 240.34 |
Goal: 100,000 Posts
Complete: 83%