Solved

Display data from SQL to Flash via ASP.NET2.0(C#)

Posted on 2008-10-28
3
612 Views
Last Modified: 2013-11-11
Hi All
I i know how to insert data into MSSQL from Flash via ASP.NET but I don't have the same luck in selecting data from SQL and displaying it in Flash via ASP.NET. I don't want to first make the data from SQL -->ASP.NET-->XML(dataset or anything else XML)-->Flashwould like it form SQL-->ASP.NET -->XML. I have searched the web entirely but can't find a simple example although with old ASP there are. So basically if anyone could just provide a simple exaple that a selects data from SQL and displays it in Flash via ASP.NET.(without any XML workaround)
0
Comment
Question by:lastos
  • 2
3 Comments
 
LVL 39

Expert Comment

by:blue-genie
ID: 22844007
i don't know .net and stuff so pardon my ignorance. is this a desktop app or a browser page?
ps where in SA are u?
0
 

Author Comment

by:lastos
ID: 22851844
I am currently based in Johannesburg. This is frustating. I once converted an ASP tutorial(from www.Flash-db.com to it's .NET equivlent and it ouputs all the info fine when testing in a browser page but the when trying to pull it via flash nothing appears. I'm really desperate here?
0
 
LVL 39

Accepted Solution

by:
blue-genie earned 500 total points
ID: 22865175
you're using LoadVars.sendAndLoad()?

if you look at the snippet from the help file. you should be able to get your values back into the loadVars objet specified as the target from your asp / aspx page.
var submitListener:Object = new Object();
submitListener.click = function(evt:Object) {
    var result_lv:LoadVars = new LoadVars();
    result_lv.onLoad = function(success:Boolean) {
        if (success) {
            result_ta.text = result_lv.welcomeMessage;
        } else {
            result_ta.text = "Error connecting to server.";
        }
    };
    var send_lv:LoadVars = new LoadVars();
    send_lv.name = name_ti.text;
    send_lv.sendAndLoad("http://www.flash-mx.com/mm/greeting.cfm", result_lv, "POST");
};
submit_button.addEventListener("click", submitListener);

Open in new window

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

823 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question