473,796 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP .NET page loads twice

I am using VS .net and when I have a page with smartnav = true, and
this page (that has smartnav on) does a response.redire ct to another
page, the page load event occurs twice for the page specified by the
response.redire ct. When I set smartnav = false, this does not occur
(page load occurs only once). Does .net 2003 fix this?
Nov 18 '05 #1
3 4532
Sue Rawlings wrote:
I am using VS .net and when I have a page with smartnav = true, and
this page (that has smartnav on) does a response.redire ct to another
page, the page load event occurs twice for the page specified by the
response.redire ct. When I set smartnav = false, this does not occur
(page load occurs only once). Does .net 2003 fix this?

You may want to check if Autowireup is set to false

--
Regards,
Dilip Krishnan
dilip removethis @ msn.com
Nov 18 '05 #2

AutoWire up is definitely set to false. The only thing I change is
smartnav = false in the calling page directives, and the problem goes
away. The only thing is, I really would like to have smartnav
activated....
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
have you tried server.transfer instead?

R
"Sue Rawlings" <SR*******@NewD ata.com> wrote in message
news:c7******** *************** ***@posting.goo gle.com...
I am using VS .net and when I have a page with smartnav = true, and
this page (that has smartnav on) does a response.redire ct to another
page, the page load event occurs twice for the page specified by the
response.redire ct. When I set smartnav = false, this does not occur
(page load occurs only once). Does .net 2003 fix this?

Nov 18 '05 #4

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

Similar topics

10
3182
by: Manny | last post by:
I have a web form "Page1.asp" and it reads data from a database, does some calculations, and displays the records in pages. Works fine. I have a button that displays on the page, defined as <input type="button" onClick="OutputData()"> The OutputData() function is a javascript function that simply does this: window.location = "Page1.asp?Flag=1";
12
6559
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the courses to pass the correct option value and then be displayed at the following URL: http://www.dslextreme.com/users/kevinlyons/selectResults.html I am passing countries, products, and courses. The first two display
0
1798
by: Nathon Dalton | last post by:
I need help! A page I'm working on builds an HTML string based on a bunch of data in different tables and databases. Then it does a response.write with a contenttype of application/msword. The result being an HTML page that's editable in word, inside of Internet Explorer. The problem I'm getting is that the page is loading twice. It's blowing out session information, so I can't keep track of how many times it has ran. Here's the code. ...
1
1800
by: Jarek | last post by:
Hi! I have a page containing datagrid. When datagrid is edited there is a calendar. When I change the date for the first time all page events are executed twice and: when they are executed for the first time they are executed in response to post back as it should be, but for the second time the page is reloaded again just like it would be called for the first time. Please Help Me!
2
1755
by: mart | last post by:
I am experiencing a weird problem with some buttons on my webpage. The page_load is executing twice when a button is clicked. If I replace the button for a Linkbutton the page_load only loads once. I've set the Autoeventwireup to false. Could it be a framework problem ? On other computers the
1
1900
by: spammy | last post by:
Hi all, Im having difficulty serving synamically generated PDFs to clients via asp.net. Im using crystal reports to generate them. In my page load I have the following: private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here try
2
3419
by: Samy | last post by:
Hi There, I have a user control with buttons on it which I use on a aspx page (parent page). On a button click, a modal dialog(aspx page) opens up and the user enters some info in the modal dialog and clicks the save button on it. The info is saved to the DB and the parent page is refreshed. Everything works fine but for some reason the page load is called twice. I have set the AutoEventWireUp = false on every page. Also I have load event...
8
3361
by: MaryA | last post by:
I have an aspx page that loads twice inspite of using the IsPostBack i removed all controls from the page and still the page_load event is called twice I appriciate any help coz i have lost several hours on this NB even i removed all events called on page load but still same problem Regards
3
2359
by: Chris Tomlinson | last post by:
Hi all, I hope someone is able to help me out with a small problem with this page: http://www.superhighstreet.com/George-Street-Richmond/index.shtml I have a small iframe (mid-right) with an embedded audio player. <embed src="slideshow/streetsound.mp3" width="75" height="25" autostart="true" loop="true">
0
9535
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10242
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10200
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7558
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5453
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4127
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3744
muto222
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.