postback button opens a new window

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
 
T

ton

i ve found the solution:

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

Mark S. Milley

Hi Ton -

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

Regards,

-Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top