all groups > macromedia flash flash remoting > august 2006 >
You're in the

macromedia flash flash remoting

group:

Problems Passing Paramaters at PageLoad


Problems Passing Paramaters at PageLoad SentientDesigns
8/14/2006 4:28:48 PM
macromedia flash flash remoting:
Alright I have a lot going on with this website I'm working on, and I'm not
sure if my problem is with Flash Remoting or asp.net, but I'm sure I'll find
out here.
I'm having a problem passing parameters into C# codebehind page using a
Flash remoting server control. There's a main page, where a user selects a
date and time in .net DropDownLists. The selected values are then passed to a
flash movie on the page via javascript. In the flash movie, a user then clicks
a computer name (the purpose of the site is for users to request data from
different computers on an assembly line). When pressed, the onRelease calls
this function, where ASPXService.DataGridLoad is the service call to the page
DataGridLoad.aspx:

function FlashRemotingService(computerName,startDate, endDate) {
ASPXService.DataGridLoad(ateName, sd, ed);
getURL("DataGridLoad.aspx", "dataDisplay");
}

DataGridLoad.aspx is then loaded an iframe ("dataDisplay") on the main page,
where DataGridLoad.aspx.cs parses the variables in Flash.Params (Flash is the
server control), and then uses them to connect to a database and fill a
datagrid. My problem is that when DataGridLoad.aspx is loaded, the datagrid
does not display (only the paging buttons are showing). When I press a paging
button, a postback is raised, and then the datagrid shows up. I was wondering
if this has to do with the fact that I'm passing my parameters at PageLoad,
because I call getURL("DataGridLoad.aspx", "dataDisplay") AFTER
ASPXService.DataGridLoad(ateName, sd, ed). Does it matter which function I
call first? Does anyone have a better way to get this to work ? Thanks in
advance for anyone who reads this -Mario



Re: Problems Passing Paramaters at PageLoad EdekitRex
8/16/2006 2:58:39 PM
I would take the dropdownlists out of .net and into flash. It also doesn't
sound like you are really using flash remoting the right way. You shouldn't
need iframes to load data and parse it. You should just set up a connection to
your asmx?wsdl and access your c# code directly from flash.
AddThis Social Bookmark Button