Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 18:09
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flash and AS 3 (Moderators: papachan, kofi addaquay)
| | |-+  AS3 + asp.NET web page.
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: AS3 + asp.NET web page.  (Read 724 times)
kartikvbn
Server what's that
*
Posts: 1


View Profile Email
« on: 12/29/10, 05:35 »

Please help || Urgent || AS3 + aspx PageHi all i am try to send some URLVariables and get return string from aspx page.

I am getting common error.
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
   at Error$/throwError()
   at flash.net::URLVariables/decode()
   at flash.net::URLVariables$iinit()
   at flash.net::URLLoader/flash.net:URLLoader::onComplete()


<code is>

var variables:URLVariables = new URLVariables("name=Franklin");
var request:URLRequest = new URLRequest();
request.url = "http://192.168.106.142/default.aspx";
request.method = URLRequestMethod.POST;
request.data = variables;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
try
{

loader.addEventListener(Event.COMPLETE, completeHandler);
}
catch (error:Error)
{
    trace("Unable to load URL");
}

try
{
    loader.load(request);
}
catch (error:Error)
{
    trace("Unable to load URL");
}
 
function completeHandler(event:Event):void
{
    //trace(event.target.data);
}


Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #1 on: 12/30/10, 08:47 »

That means that the output of your aspx page is not correctly formated, should be name/value pairs

Jorge
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!