Solved

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

Posted on 2008-10-28
3
615 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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 live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

710 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