ASP.NET 2.0 <base target=_self />

G

Guest

I've got a lot of modal dialog boxes in my web application that do postbacks.
Originally my application was developed in VS 2003 and everything worked
fine.

Now I'm upgrading to VS 2005 and all of the pages that were upgraded by VS
appear to be working fine. But any new pages I create to work as a modal
dialog box don't work properly during the postback. When any event causes a
postback in my new modal dialog boxes the client will open a new form which
generally causes chaos in my application. On all of my old pages I use <base
targed=_self /> between the <head> tags to solve this problem. But I can't
get this to work with new pages I'm creating.

I did notice that my new pages show <head runat="server"> while my old pages
don't have the runat element. I've tried removing this but with no success.

Is this a change between ASP.NET 1.x and 2.0? And what can I do to get this
to work on my new pages?
 
G

Guest

I found it. It was part of my testing that was causing the problem.

I guess if you do a response.write as part of the page load event it cancels
out the <base target=_self />. When I got rid of the one line the problem
went away.

I don't need the response.write anyway so the problem is gone.
 

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,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top