# Passing variables from asp.net to flash

**URL:** <https://forum.kirupa.com/t/passing-variables-from-asp-net-to-flash/319297>\
**Category:** programming\
**Created:** [February 15, 2011, 6:16pm UTC](https://forum.kirupa.com/t/passing-variables-from-asp-net-to-flash/319297 "2011-02-15T18:16:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarinthemood](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jarinthemood](https://forum.kirupa.com/u/jarinthemood)\
**Post date:** [February 15, 2011, 6:16pm UTC](https://forum.kirupa.com/t/passing-variables-from-asp-net-to-flash/319297/1 "2011-02-15T18:16:36Z")

</div>

Hi, I am new to .net and I am trying to pass variables from an aspx page to flash but I have absolutely no idea how to do it. I have seen many post about this but I can’t figure out how to do it myself.  
I have a variable that was gathered from a database using C#, now I want to send that variable to my swf file. but I cant figure out how. so far I tried using \<object tags, something called flashcontrols and flashvars I have reached my limit on this and decided to seek some help here. Would someone please tell me how I can send a variable from C# to flash. For the sake of argument lets just say that I want to display that variable in a text box in flash. what would I need to do on the aspx and the .cs file and what would I have to do on the flash file? Thank you for any help you can provide.
