Solved

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

Posted on 2008-10-28
3
616 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

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
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.

631 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