Solved

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

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

Title # Comments Views Activity
Jquey and footrable 2 35
VB.Net How to Exit Sub - Exit Form??? 5 51
Connection String 16 43
Error on link 14 37
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…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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…

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now