How to Undo previous action in asp.net?

Web programming - Script for window control (Java? ASP?)

  • Scenario: I am upgrading an intranet app and need a chunk of code to handle a specific window action. The log-in page (index.htm) has one field and a submit button. The action= page is an ASP page that requires the info from the index.htm field. Currently, when SUBMIT is clicked, the window loads the ASP page. Need: To load the ASP page in the original (parent/focus) window, but limit the window controls to just scrollbars. I don't want a popup window. Summary: Please supply a code chunk that will allow me to load a new page in the open window while also limiting the window controls to just scrollbars. The page that will load is an ASP page. Misc: I will supply the code I am using if needed. Please advise.

  • Answer:

    Thanks krickles-ga. Here's just a repeat of what we discussed. target="_self" can be used to open a page in the same window. However, to faciliate scrollbar only flexibility, the client would like to have a popup and then close the parent window. Thus: <INPUT type="submit" value="LOG IN" id="login" name="login" style="WIDTH: 75px; HEIGHT: 24px" onClick="window.open('home.asp','PopupWindow','toolbar=no,scrollbars=yes');self.close()"> does the trick.

krickles-ga at Google Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.