postback button opens a new window

  • Thread starter Thread starter ton
  • Start date Start date
T

ton

Hi,

I have a website with 2 forms. Form 1 is opened, a button opens a second
form
as a modal form:
window.showModalDialog('Filter.aspx?Filter=14',
null,'status:no;dialogWidth:800px;dialogHeight:450px;dialogHide:true;help:no;');

this form is opened in a modal way. Great !

On the filter.aspx I have a button which brings a postback. In stead of
reloading this form, it brings a new filter.aspx form

I've had this error earlier (several months ago), but forgot how to avoid
this behavior.

the heading of my file is:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Filter.aspx.vb"
enableEventValidation="false" EnableViewState="True" Inherits="Filter" %>

thanks


ton
 
i ve found the solution:

<title>Filters</title> <base target=_self> </base>
I've added <base target=_self> </base> in the head section
 
Hi Ton -

Make sure that you do not have the target attribute set in your form tag.

Regards,

-Mark
 
Back
Top