Click here to Skip to main content
16,008,183 members
Home / Discussions / Web Development
   

Web Development

 
GeneralCustom webcontrols and postback data Pin
Ludwig Stuyck20-May-02 21:33
Ludwig Stuyck20-May-02 21:33 
GeneralRe: Custom webcontrols and postback data Pin
MS le Roux22-May-02 0:51
MS le Roux22-May-02 0:51 
Generalvisiting other sites wothout logging out Pin
Ann20-May-02 20:20
Ann20-May-02 20:20 
GeneralValidator controls - Netscape browser Pin
20-May-02 5:33
suss20-May-02 5:33 
GeneralRe: Validator controls - Netscape browser Pin
Todd Smith21-May-02 5:58
Todd Smith21-May-02 5:58 
QuestionWHY??? Pin
Vlad Beu20-May-02 0:55
Vlad Beu20-May-02 0:55 
AnswerRe: WHY??? Pin
Philip Patrick20-May-02 9:32
professionalPhilip Patrick20-May-02 9:32 
GeneralPost a form to an asp.net page from a WinForm Pin
phalc18-May-02 5:52
phalc18-May-02 5:52 
Hi all,

I am having trouble posting a form from a WinForm client.

-----------------------------------------------------------

// Winform code
WebClient myWebClient = new WebClient();
NameValueCollection myNameValueCollection = new NameValueCollection();

myNameValueCollection.Add("user", username);
myNameValueCollection.Add("pass", password);

byte[] responseArray = myWebClient.UploadValues("http://localhost/cent/Login.aspx", myNameValueCollection);


// Login.aspx code
string username, password;

username = Request.QueryString.Get("user");
if (username != null) username.Trim().ToUpper();

password = Request.QueryString.Get("pass");
if (password != null) password.Trim();

-----------------------------------------------------------

When I run it, asp.net never gets the username and password. What am I doing wrong? Thanks Smile | :)
GeneralRe: Found the problem Pin
phalc18-May-02 6:12
phalc18-May-02 6:12 
GeneralP/Invoke dll from ASP.NET codes Pin
17-May-02 9:27
suss17-May-02 9:27 
GeneralWell, found it out at last... Pin
18-May-02 6:29
suss18-May-02 6:29 
GeneralSmart Navigation Pin
apeek17-May-02 2:05
apeek17-May-02 2:05 
GeneralRe: Smart Navigation Pin
Todd Smith17-May-02 14:36
Todd Smith17-May-02 14:36 
GeneralUsing ActiveX in ASP.NET Pin
yjchiam16-May-02 19:00
yjchiam16-May-02 19:00 
GeneralGeneral Site design (questions-thoughts) Pin
Kastellanos Nikos16-May-02 0:49
Kastellanos Nikos16-May-02 0:49 
GeneralDisappearing table rows Pin
jan larsen15-May-02 21:44
jan larsen15-May-02 21:44 
GeneralRe: Disappearing table rows Pin
Philip Patrick16-May-02 7:24
professionalPhilip Patrick16-May-02 7:24 
GeneralSLOW UPLOADS: HTMLINPUTFILE Pin
Jfalconsfan15-May-02 14:59
Jfalconsfan15-May-02 14:59 
GeneralRe: SLOW UPLOADS: HTMLINPUTFILE Pin
Todd Smith16-May-02 12:55
Todd Smith16-May-02 12:55 
GeneralRe: SLOW UPLOADS: HTMLINPUTFILE Pin
C. Mike Davis16-Aug-02 9:37
sussC. Mike Davis16-Aug-02 9:37 
GeneralRe: SLOW UPLOADS: HTMLINPUTFILE Pin
Todd Smith16-Aug-02 12:05
Todd Smith16-Aug-02 12:05 
GeneralRe: SLOW UPLOADS: HTMLINPUTFILE Pin
Jeff Moore16-Aug-02 17:27
Jeff Moore16-Aug-02 17:27 
QuestionSet up a Virtual Directory for PWS on 9x programatically? Pin
Matt Philmon15-May-02 11:40
Matt Philmon15-May-02 11:40 
QuestionMac Browser Oddities? Pin
Roger Wright15-May-02 10:32
professionalRoger Wright15-May-02 10:32 
AnswerRe: Mac Browser Oddities? Pin
Not Active15-May-02 13:36
mentorNot Active15-May-02 13:36 

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.