Lost Password?

Go Back   CodeCall Programming Forum > Software Development > C# Programming

Vote on your favorite hash algorithm here!

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.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-17-2007, 08:57 PM
jackyjack jackyjack is offline
Newbie
 
Join Date: Feb 2007
Posts: 4
Credits: 0
Rep Power: 0
jackyjack is on a distinguished road
Default c# app login information (connecting to a site)

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.)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 02-19-2007, 08:20 AM
Void's Avatar   
Void Void is offline
Programming Expert
 
Join Date: Jun 2006
Posts: 410
Credits: 0
Rep Power: 11
Void is on a distinguished road
Default

You are writting Web code using C# or is this a document? The link above does not work.
__________________
Void
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2007, 05:18 PM
jackyjack jackyjack is offline
Newbie
 
Join Date: Feb 2007
Posts: 4
Credits: 0
Rep Power: 0
jackyjack is on a distinguished road
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2007, 08:15 AM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 7,397
Last Blog:
Tramp Variables
Credits: 1
Rep Power: 20
Jordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud of
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -5. The time now is 02:55 AM.

Contest Stats

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

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 83%

Ads