RSS Forums RSS
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting

need some help with url qeury string with response.redirect

Join Date: Sep 2007
Posts: 81
Reputation: justapimp is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
justapimp justapimp is offline Offline
Junior Poster in Training

Help need some help with url qeury string with response.redirect

  #1  
Nov 12th, 2007
hello Members,

I have an ASP.NET website that uses an IFrame settings and I am using the response.redicret("...") to load a new page within the same IFrame. below is my
code snippet.
Response.Redirect ("../TrackApp/history2Display.aspx?deviceUID=" + DevUID + "&fromDate=" + startDate + "&endDate=" + endDate);

when the page redirects, I get a javascript error on the status bar stating that the fromDate is not define. However, when I look at the url posted to the page, the query string is attached correctly with the seclected values from the previous page posting the request.

Example error bellow.

Line: 161
Char: 2
Error: 'fromDate' is undefined
Code: 0;
URL: http://localhost:1651/TrackFusion/TrackApp/history2Display.aspx?deviceUID=227
&fromDate=9/10/2007%201:00:00%20AM&endDate=11/10/2007%201:00:00%20AM

As we can see, the values are posted to the url string. however, my javascript in the AJAX code cannot find the value for fromDate and presumably endDate.

I would appreciate any assistance I can get from anyone who understand what is going on.
Last edited by justapimp : Nov 12th, 2007 at 3:57 pm.
AddThis Social Bookmark Button
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:27 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC