473,394 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Button causing page load

I have an asp.net project with several pages.
On most pages, clicking a button fire's the button's click event, and the
page does not get reloaded unless something triggers a postback.

But on one page, when I click the button, the click event does not fire, and
the page gets reloaded (IsPostback is false). When I view the call stack,
there isn't any vb code, just a fresh page load starting with
IsapiRuntime.ProcessingRequest.

What could be causing this behavior? It's stumping me!

---Selden
Nov 19 '05 #1
2 2166
Never mind... I figured it out.

If anyone has the same trouble, it was because I had copied/pasted some html
from an HTML page into my aspx... and some of this html containd <Form tags
with action=post. Once I removed those, it worked normally.

"Selden McCabe" <se*****@msn.com> wrote in message
news:eP***************@TK2MSFTNGP15.phx.gbl...
I have an asp.net project with several pages.
On most pages, clicking a button fire's the button's click event, and the
page does not get reloaded unless something triggers a postback.

But on one page, when I click the button, the click event does not fire,
and the page gets reloaded (IsPostback is false). When I view the call
stack, there isn't any vb code, just a fresh page load starting with
IsapiRuntime.ProcessingRequest.

What could be causing this behavior? It's stumping me!

---Selden

Nov 19 '05 #2
Never mind... I figured it out.

If anyone has the same trouble, it was because I had copied/pasted some html
from an HTML page into my aspx... and some of this html containd <Form tags
with action=post. Once I removed those, it worked normally.

"Selden McCabe" <se*****@msn.com> wrote in message
news:eP***************@TK2MSFTNGP15.phx.gbl...
I have an asp.net project with several pages.
On most pages, clicking a button fire's the button's click event, and the
page does not get reloaded unless something triggers a postback.

But on one page, when I click the button, the click event does not fire,
and the page gets reloaded (IsPostback is false). When I view the call
stack, there isn't any vb code, just a fresh page load starting with
IsapiRuntime.ProcessingRequest.

What could be causing this behavior? It's stumping me!

---Selden

Nov 19 '05 #3

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

Similar topics

2
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...
3
by: Brian Shannon | last post by:
How can I tell the name of the button causing the post. I have some code in page prerender and I don't want the code to execute if a certain button causes the post since it would be an unnecessary...
0
by: Selden McCabe | last post by:
I have an asp.net project with several pages. On most pages, clicking a button fire's the button's click event, and the page does not get reloaded unless something triggers a postback. But on...
2
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...
0
by: Darril Gibson | last post by:
I'm porting over an ASP .NET application from ASP .Net 1.0 to 2.0. I've had a variety of issues that I've been able to solve, but this one has me stumped. I have a data set with three data...
0
by: manywolf | last post by:
I have an aspx page that fires the page load event twice for every load. I tried every fix that was suggested in all the posts on this and other forums. None changed the behavior. After one post that...
3
by: GauravGupta | last post by:
i want to know that is it posible to call button click event before page load event on post back.... please help me....
2
by: GauravGupta | last post by:
i am displaying a table in page load whose data is fetched from database . it also check what data is to be displayed from data base by a session variable. and i have few button which change the...
1
by: deepakbarolia | last post by:
hi, i am working on dotnet. I have a pop up window opening from the basepage. The pop up window contains only datagrids and a button. On page load i need to point to the top of the page. The...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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,...
0
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
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...

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.