Solved

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

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

758 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