Welcome, Guest. Please login or register.
Did you miss your activation email?
31 Jul 2010, 11:28:36 UTC
Forum home
+  flexdeveloper.eu Forum
|-+  Other boards
| |-+  Other Programming Languages (Moderator: James)
| | |-+  Login in ASP using Flex
« previous next »
Pages: [1] Print
Author Topic: Login in ASP using Flex (Read 1268 times)
laserra
Newbie FD
*
Posts: 1


« on: 19 May 2009, 12:55:24 UTC »

Hi everybody,

I don't know if this is the correct section for this question, as this concerns the interaction between Flex and ASP.Net... if not, my apologies  Smiley

I'm trying to develop a small form in Flex (Flash is also valid, but I think the programming is more or less equal). This form is completly independent of the ASP.Net server I'm trying to call (because this form will be placed in other domains, that wich to make this service available).

I was asked to make this, in a way that I don't know if it's possible.

The destination server is a ASP.Net one, and the form can be placed on a Apache, ou other server type.

I want this form to act as a normal HTML form, that will send data to a webpage by POST method. Has to anyone that knows a bit os ASP.Net (I'm more of a PHP guy), this kind of operation makes ASP to generate a couple of variables, __VIEWSTATE and __EVENTVALIDATION. Well I have a HTML form with these in hidden fields, and the data and page are redirected fine, but when I try to do the same in Flex, no error is generated, but the login doesn't happen.

I'm using URLRequest instead of HTTPRequest, because the second needs to receive a response from the ASP, wich doesn't happen, and it's not me that programs this server, so the URLRequest is the method that most resembles the HTML Form kind of way.

I think there's a problem in ASP receiving these variables, mostly these late two. Have anyone tried some kind of solution for this, or tried something that would work in this case?

If anyone has an ideia I can post some code of what I did, but basicaly I did with the URLRequest class, the methos is POST and put the URLVariables.

Thanks for your time.

I've been searching for any kind of way to pass this, for several days  Undecided
Logged
Pages: [1] Print
« previous next »
Share this on: Twitter Twitter Del.icio.us del.icio.us Digg Digg
Jump to:

©2006-2010 Flexdeveloper.eu/Jodie O'Rourke. All rights reserved.
Adobe®, Adobe® Flash™, Adobe® AIR™ and Adobe® Flex™ are registered trademarks of Adobe Systems Incorporated in the United States and other countries. All rights reserved.

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC