473,484 Members | 1,635 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ASP.NET 2.0 <base target=_self />

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 <headtags 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?
Apr 16 '07 #1
1 3605
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.

"mgdev" wrote:
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 <headtags 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?
Apr 17 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
9180
by: Weston C | last post by:
I'm trying to get the href attribute from the base tag in the document head. The following does not seem to work... any ideas what I'm doing wrong? if(!(document.getElementsByTagName) ||...
2
1922
by: CD | last post by:
Is this possible: class base; class derived; //:public base vector <base*> bList; vector<derived*> dList; //add some derived class pointer entries to dList;
2
2087
by: Siemel Naran | last post by:
This code fails compile std::auto_ptr<Base> f() { std::auto_ptr<Derived> out(new Derived()); return out; } There is ambiguity between a templated constructor and templated operator...
3
1606
by: Gilbert Saint-Flour | last post by:
Hello: I have this one line of PHP code which I'd like to convert to Javascript. The PHP code conditionally issues a BASE statement when the html page is called with a frame name, e.g....
1
2713
by: Chris Sharman | last post by:
I'm seeing quite a few 404 errors, all from an agent/browser which calls itself "Mozilla/4.0 (compatible; BorderManager 3.0)". They appear to be from a built page like...
3
4562
by: SJ | last post by:
Hi, I have a problem with the HTML <base> element, URL re-writing and Postback. We are using URL re-writing on the server, and I'd like to use the base element to make the URLs in the ASPX pages...
0
1474
by: emma_middlebrook | last post by:
Hi Hopefully the title is quite accurate but here's some more information. I have a load of ICollection<references hanging off a class e.g. ICollection<X>, ICollection<Yetc etc. Each of the...
3
12835
by: yan | last post by:
Hello everybody, I am new so this is the occasion to say hello to everybody. I have a problem with absolute/relative paths. I have to create a static documentation in html for a project and I have...
16
2364
by: call_me_anything | last post by:
why is the following not allowed : vector <Base *vec_of_base; vector <Derived *vec_of_derived; vec_of_base = vec_of_derived; Note : The following is allowed :
0
7082
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7105
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6813
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7214
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4845
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4529
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3046
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3041
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
592
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.