473,396 Members | 1,913 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,396 software developers and data experts.

Auto Post Back

I have a ListBox with AutoPostBack='True'. The corresponsing form is
set as follows:

<form runat='server' method='POST' action='results.asp'
name='mbrlst_search' 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='True' 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

May 10 '07 #1
2 2022
Does anyone know what the problem is here?

Auto post back needs javascript enabled to work.
May 10 '07 #2
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='True'. The corresponsing form is
set as follows:

<form runat='server' method='POST' action='results.asp'
name='mbrlst_search' 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='True' 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
May 10 '07 #3

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

Similar topics

2
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...
9
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...
7
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...
6
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 ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
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
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...
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...
0
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,...

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.