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