Interesting approach, Ryan. So, the big advantage here is cost (free!) with
the big disadvantage being that we're limited to string data types on the
return. Thanks for sharing.

Kevin

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of ryanm
> Sent: Monday, December 12, 2005 6:41 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] flash and ASP.NET (ryanm)
> 
> > Ryan, how would this work?
> >
> 
> ------------------------------------------------------------
> //  Actionscript
> 
> var IncomingData:LoadVars = new LoadVars(); 
> IncomingData.onLoad = function(success:Boolean){
>     if(success){
>         // Do stuff when data is loaded
>     }else{
>         trace("Load Failed!");
>     }
> };
> 
> var OutgoingData:LoadVars = new LoadVars(); 
> OutgoingData.first_name = "Bob"; OutgoingData.address = "1234 
> Main"; OutgoingData.zipcode = "75240"; 
> OutgoingData.sendAndLoad("http://server.com/script.aspx",Incom
> ingData,"POST");
> 
> ------------------------------------------------------------
> '    VB.NET Code Behind in the page load event
> 
> first_name = Request("first_name")
> address = Request("address")
> zipcode = Request("zipcode")
> 
> '    Do SQL query using posted data
> '    Munge data as necessary
> '    Write return data into a string called "output"
> 
> response.write output
> ------------------------------------------------------------
> 
>     That's about it.
> 
> ryanm 
> 
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to