Results 1 to 2 of 2

Thread: How to tell PageA.aspx to force a postback on PageB.aspx ?

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    45

    Smile How to tell PageA.aspx to force a postback on PageB.aspx ?

    Hi everyone,
    I have a query here.

    I have one form page (let me call it form.aspx). What is required is, one a button is clicked, a small window (i call it password.aspx) will appear requesting for password.

    What I need is right after the password has been entered and submitted, the data will be processed and then a postback will happen at form.aspx depending on whether the submitted password was successfull or not.

    What do i need to do to achieve this?

    Thanks in advance

    PS: Let me know if my explanation is not clear.

  2. #2
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    Re: How to tell PageA.aspx to force a postback on PageB.aspx ?

    As I understand, you want to redirect the user from the FORM.aspx to say a page ABC.aspx, once he enters the correct password in the small window.

    I guess, after validating the password, you can add the following javascript:

    Code:
    window.parent.href="ABC.aspx";
    //close the small window
    window.close();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width