.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 4th, 2003, 09:28 PM
PalmDrac PalmDrac is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 3 PalmDrac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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>

Reply With Quote
  #2  
Old March 4th, 2003, 10:03 PM
Andrew Andrew is offline
dotNetBB Forums Developer
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 265 Andrew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Andrew Send a message via AIM to Andrew Send a message via Yahoo to Andrew
Are you trying to acess the values based on a form post?<p><hr size="1" width="50%" align="left" />dotNetBB Forum Developer<br><b><i>Building A Better Community, One Post At A Time</i></b><br><a href="http://www.dotnetbb.com" target="_blank">www.dotnetbb.com</a></p>

Reply With Quote
  #3  
Old March 4th, 2003, 10:37 PM
PalmDrac PalmDrac is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 3 PalmDrac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Actually no..... I'm using a window.open to open the floating asp.net window, and then in the asp.net page I was trying to use a "window.opener" to retrieve the value of the key field. I've rewritten my question to explain the issue better, I'll edit the post right now..... please let me know what do you think. Thanks!!!!

Reply With Quote
  #4  
Old March 4th, 2003, 10:42 PM
PalmDrac PalmDrac is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 3 PalmDrac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Someone just mentioned me that I could pass the value of the keyfield to the asp.net page and then send it back to the parent web application. How could I accomplish this?<br><br>BTW.... do not take very much into account that the parent web app is a Notes/Domino application, 'cause it behaves as any other .htm web page.<br><br>Thanks.....

Reply With Quote
  #5  
Old March 5th, 2003, 03:02 AM
Andrew Andrew is offline
dotNetBB Forums Developer
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 265 Andrew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Andrew Send a message via AIM to Andrew Send a message via Yahoo to Andrew
Can you pass a querystring between the 2?<p><hr size="1" width="50%" align="left" />dotNetBB Forum Developer<br><b><i>Building A Better Community, One Post At A Time</i></b><br><a href="http://www.dotnetbb.com" target="_blank">www.dotnetbb.com</a></p>

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Problem passing a value to an asp.net page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT