u can use httphandler like this
sample:
<mx:HTTPService url="http://199.0.171.158/FLEXLoginPage/Default.aspx"
id="login_user" method="POST"
result="checkLogin(event)"
useProxy="false"
fault="faultHandler(event)">
<mx:request xmlns="">
<username>
{username1.text}
</username>
<password>
{password1.text}
</password>
</mx:request>
</mx:HTTPService>
asp.net page:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page
{
public string username1, password1;
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Params["username"] != null)
{
username1 = Request.Params["username"].ToString();
}
if (Request.Params["password"] != null)
{
password1 = Request.Params["password"].ToString();
}
if (((username1 == ("admin")) && (password1 == ("admin"))) ||
((username1 == ("mit")) && (password1 == ("mit"))) || ((username1 ==
("test")) && (password1 == ("test"))))
{
Response.Write("<Loginsuccess>yes</Loginsuccess>");
}
else
{
Response.Write("<Loginsuccess>no</Loginsuccess>");
}
}
}
On Apr 7, 2:37 pm, kali matha <[email protected]> wrote:
> Hi
> Please say me how to pass values from flex page to asp page..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---