
March 4th, 2003, 09:28 PM
|
|
Registered User
|
|
Join Date: Mar 2003
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Problem passing a value to an asp.net page
Hello Guys, I'm in deep trouble, I need to finish this by tomorrow and I just crashed into a big wall.<br><br>Recently I've been assigned the task of developing an asp.net page that the users of another web aplication (running on a different server that can't execute asp.net pages) will open as a floating window and that will let them choose two options from two dropdownlist boxes which are populated from a SQL Server 2000 database, using the value of a field that's in the parent non-asp web application as the key for the SELECT statement. When the user picks their desired options they must press a button that will assign those two values to two fields back in the parent web application and then close the floating asp.net page window. I must mention that the parent web application is on a Domino/Notes server, that's why I'm developing this page to avoid the burden of accessing the SQL Server database directly from the Notes Web application.<br><br>My first idea seemed simple, use a "window.open" javascript instruction in the Parent web application to open the Asp.net page, then in the asp.net page use a "window.opener.document ..." to retrieve the value of the key field from the parent web aplication, proceed to populate the drowdownlist boxes from the SQL server database (using the key field in the SELECT statement), and then when the user clicks a button use a "window.opener.document ..." again to send back the picked options to the parent web application, close the asp.net floating window and that's it.<br><br>I've already programed the Asp.net page, it access the database with no trouble and let's you pick the values from the dropdownlist boxes. Currently I'm assiging the value of the key field directly (for developing purposes).<br><br>The problem now is that I'm having problems passing the key value from the parent web app page to the asp.net page (and of course passing the choosen values back to the R5 page).<br><br>For testing purposes I made two simple .htm pages (one represents the parent page, the other one the floating window), those pages have some fields and the javascript code that makes the transfer and it works with no trouble.<br><br>I've tried to insert the Javascript code into the asp.net page and when it loads I get "window.document.forms.0.Cedula.value is null or not an object" (don't know why it reports the "0" without the brackets [] 'cause they are in the code)<br><br>Also I must mention that the parent web app and the Asp.net page are on different servers( the first one in a Lotus/Domino server the latter on a IIS Win2k server).<br><br>Any lights that you can give me will be very welcomed, if you think I should do this in other way let me know, from what I now since the parent web app is a Domino/Notes application I must use javascript to transfer the values between it and the Asp.net floating page, I don't know if it's possible to pass the value in the URL that calls the floating asp.net page, and if that's possible I don't know how I would handle that in the asp.net page.<br>Thanks in advance<br><br>PalmDrac<!-- Edit --><p><i>Last Edited : 3/4/2003 7:39:00 PM GMT</i></p>
|