I have a ListBox with AutoPostBack='T rue'. The corresponsing form is
set as follows:
<form runat='server' method='POST' action='results .asp'
name='mbrlst_se arch' ID='search_form '>
When javascript is enabled, I auto-post the form at the bottom of
the .aspx page. It works fine.
With javascript disabled, however, the action of the form, when the
submit button is clicked, does not work. The form continues to post
to the originating page. I need the page to post to the action
attribute (as written) when Javascript is off. However, the form keeps
posting back to itself.
I thought maybe the AutoPostBack='T rue' setting was causing this,
which wouldn't make sense since the problem occurs when javascript is
disabled, but I thought if I reset this attribute in these instances,
the form would post as written.
Does anyone know what the problem is here?
Thanks,
Scott 2 2044
Does anyone know what the problem is here?
Auto post back needs javascript enabled to work.
when you put a runat=server on a form, it always renders the action as
the rendering page (do a view source). asp.net counts on javascript to
support cross posting to another page.
-- bruce (sqlwork.com)
scotty wrote:
I have a ListBox with AutoPostBack='T rue'. The corresponsing form is
set as follows:
<form runat='server' method='POST' action='results .asp'
name='mbrlst_se arch' ID='search_form '>
When javascript is enabled, I auto-post the form at the bottom of
the .aspx page. It works fine.
With javascript disabled, however, the action of the form, when the
submit button is clicked, does not work. The form continues to post
to the originating page. I need the page to post to the action
attribute (as written) when Javascript is off. However, the form keeps
posting back to itself.
I thought maybe the AutoPostBack='T rue' setting was causing this,
which wouldn't make sense since the problem occurs when javascript is
disabled, but I thought if I reset this attribute in these instances,
the form would post as written.
Does anyone know what the problem is here?
Thanks,
Scott This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: VB Programmer |
last post by:
I created a page which I am using to prevent the user from hitting the BACK
button. I'll call it my "Auto Jump" page. When it is called it basically
auto-redirects to a page specified in the QueryString. (We'll call the page
it goes to the "destination page".) If the user hits BACK on the
destination page it should goto the "Auto Jump" page which should put you
right back to where you hit the button.
In Page_Load of this "Auto Jump"...
|
by: junlia |
last post by:
Does anyone how how can we disable the auto-postback feature in asp.net page?
I have to use a server side control in the page, but the auto post back
feature in it causes problems for me. Please help!
Thanks much,
Junlia
|
by: Brian |
last post by:
hello,
I am looking for a way to auto refresh a web page that I created, but
also let the user choose to stop the auto refresh. I can not figure out how
to stop the auto refresh. Any help would be appreciated.
Thanks,
Brian
|
by: Peter |
last post by:
I have a APS.NET 3.5 webpage which calls a web service.
What I need is to update this page automatically when a value changes in the
webservice, does anyone have an example?
Thank You
Peter
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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...
|
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,...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |