# Asp .net And Flash 2004 Forms

**URL:** <https://forum.kirupa.com/t/asp-net-and-flash-2004-forms/99837>\
**Category:** Uncategorized\
**Created:** [January 22, 2004, 7:52pm UTC](https://forum.kirupa.com/t/asp-net-and-flash-2004-forms/99837 "2004-01-22T19:52:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deemac304](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@deemac304](https://forum.kirupa.com/u/deemac304)\
**Post date:** [January 22, 2004, 7:52pm UTC](https://forum.kirupa.com/t/asp-net-and-flash-2004-forms/99837/1 "2004-01-22T19:52:05Z")

</div>

HELLO,

I am trying to create a flash form that would input data to a SQL database via an [ASP.NET](http://ASP.NET) action page. I would like for this page to return a success or failed message to the SWF.

Can anyone help with this? Or is this even possible ?  
My code for the aspx page is as follows;

\<%@ Page language=“c#” AutoEventWireup=“false” %\>  
\<% @Import Namespace=“System.Data.SqlClient” %\>

\<%

string connectionString;

string lst\_ID, lst\_email, news, billing;

lst\_ID = Request[“lst\_username”];

lst\_email = Request[“lst\_email”];

news = Request[“news”];

billing = Request[“billing”];

connectionString = “SERVER=blah;UID=;PWD=me;DATABASE=huh”;

SqlConnection sqlCon = new SqlConnection(connectionString);

//string query = “insert into newsAndBilling (list\_username, list\_email, news, billing) values (’”+lst\_username+"’, ‘"+lst\_email+"’, “+news+”, “+billing+”;";

string query = “insert into newsAndBilling (list\_username, list\_email, news, billing) values (‘me’, 'me@me.com, 0, 1);”;

SqlCommand sqlCom = new SqlCommand(query,sqlCon);  
sqlCon.Open();

SqlDataReader dr = sqlCom.ExecuteReader();

while (dr.Read())  
{  
Response.Write(“success”);  
}

dr.Close();  
sqlCon.Close();

%\>

Many Thanks in advance  
:}
