Navigation of asp pages

Discussion in 'C#' started by prasath_s01, Aug 8, 2008.

  1. #1
    In my case i have two asp pages pge1 and pge2.
    In asp page 1 i m having a javascript which executes on button click .In that javascript i have a for loop .
    When the loop starts i need to show the pge2 till the loop end and i have to close the pge2 after the loop ends.

    can any one help in this pls
     
    prasath_s01, Aug 8, 2008 IP
  2. dylanj

    dylanj Peon

    Messages:
    173
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #2
    I think this might be a Javascript issue, as it sounds like ASP won't be able to do this.
     
    dylanj, Aug 8, 2008 IP
  3. Social.Network

    Social.Network Member

    Messages:
    517
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    35
    #3
    This is not a navigation issue, instead you are using JavaScript to open another window and want to close it once the timer event is triggered in the parent page. The problem is that you cannot call a close method from the 1st page, correct? If so, and this is a stretch here because I do not know your requirements. The button on the 1st page would open the 2nd window. The 2nd page would have the timer and once the timer event fires, call the window.close method to close the 2nd window. Just a thought.

    page #1
    --------
    button click
    window.open() -> open page #2

    page #2
    --------
    timer object
    window.close() -> close page #2
     
    Social.Network, Aug 8, 2008 IP
  4. engager

    engager Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you can also invent something with javascript document.location = 'doc2.asp';
     
    engager, Aug 14, 2008 IP