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 9 24119
=?Utf-8?B?anVubGlh?= <ju****@discussions.microsoft.com> wrote in
news:82**********************************@microsof t.com: 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!
You disable autopostback in the control itself... like a dropdown box or
such.
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
But my problems stems from the autopostback feature of asp.net page. I can
disable the autopostback feature on a control, but that does no good to my
problem.
"Lucas Tam" wrote: =?Utf-8?B?anVubGlh?= <ju****@discussions.microsoft.com> wrote in news:82**********************************@microsof t.com:
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!
You disable autopostback in the control itself... like a dropdown box or such. -- Lucas Tam (RE********@rogers.com) Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
=?Utf-8?B?anVubGlh?= <ju****@discussions.microsoft.com> wrote in
news:A6**********************************@microsof t.com: But my problems stems from the autopostback feature of asp.net page. I can disable the autopostback feature on a control, but that does no good to my problem.
ASP.NET do not have autopostback - autopostbacks are caused by a specific
control on the page.
Perhaps you did not disable autopostback on all the controls?
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
Since I have to use a server side control, I have to use a form. The form
autopostback to itself as defualt.
And yes, I did set EnableViewState="False" for the control, which should
disable the autopostback feature for the control.
So more precisely, I need to disable the form's autopostback feature.
Thanks,
Junlia
"Lucas Tam" wrote: =?Utf-8?B?anVubGlh?= <ju****@discussions.microsoft.com> wrote in news:A6**********************************@microsof t.com:
But my problems stems from the autopostback feature of asp.net page. I can disable the autopostback feature on a control, but that does no good to my problem.
ASP.NET do not have autopostback - autopostbacks are caused by a specific control on the page.
Perhaps you did not disable autopostback on all the controls?
-- Lucas Tam (RE********@rogers.com) Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
Can you explain what your problems actually are? This will help in coming
up with a solution for you.
-Brock
DevelopMentor http://staff.develop.com/ballen 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
=?Utf-8?B?anVubGlh?= <ju****@discussions.microsoft.com> wrote in
news:23**********************************@microsof t.com: Since I have to use a server side control, I have to use a form. The form autopostback to itself as defualt.
And yes, I did set EnableViewState="False" for the control, which should disable the autopostback feature for the control.
So more precisely, I need to disable the form's autopostback feature.
It's a control on your form that is doing the postback, not the form
itself.
Maybe could you post the HTML output of the form?
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
I'm also facing this problem.
I have a form which has some text boxes and drop downs. I want to disable
the view state of all the controls on the form. When a user clicks an image
button, all I want is grab the values of all the controls and pass them to a
new window through query string ( I do not want to post the form and I use
window.open in javascript). But for some reasons the form does post itself to
the server. How can I disable this form from being posting itself to the
server.
Thanks for your response in advance.
"Brock Allen" wrote: Can you explain what your problems actually are? This will help in coming up with a solution for you.
-Brock DevelopMentor http://staff.develop.com/ballen 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
If you want some javascript to open a new window for a new URL then you'll
have to write that all yourself. To get the javascript to execute you can
simply call on your ImageButton.Attributes.Add("onclick", "YourJSFunction();
return false;"). The return false will prevent the normal postback.
-Brock
DevelopMentor http://staff.develop.com/ballen I'm also facing this problem.
I have a form which has some text boxes and drop downs. I want to disable the view state of all the controls on the form. When a user clicks an image button, all I want is grab the values of all the controls and pass them to a new window through query string ( I do not want to post the form and I use window.open in javascript). But for some reasons the form does post itself to the server. How can I disable this form from being posting itself to the server.
Thanks for your response in advance.
"Brock Allen" wrote:
Can you explain what your problems actually are? This will help in coming up with a solution for you.
-Brock DevelopMentor http://staff.develop.com/ballen 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
Hi,
Thanks for your response.
An image is used as button, so its not ImageButton, just and HTML <IMG> TAG.
I tried to return false , but still the form posts itself.
<IMG SRC="image/imagefile.jpg" onclick="return openthis('sometext');">
....
<SCRIPT language=javascript>
function openthis(sometextvar)
{
window.open (someurl,'','');
return false;
}
</SCRIPT>
and it didn't work. The form still posts itself.
"Brock Allen" wrote: If you want some javascript to open a new window for a new URL then you'll have to write that all yourself. To get the javascript to execute you can simply call on your ImageButton.Attributes.Add("onclick", "YourJSFunction(); return false;"). The return false will prevent the normal postback.
-Brock DevelopMentor http://staff.develop.com/ballen I'm also facing this problem.
I have a form which has some text boxes and drop downs. I want to disable the view state of all the controls on the form. When a user clicks an image button, all I want is grab the values of all the controls and pass them to a new window through query string ( I do not want to post the form and I use window.open in javascript). But for some reasons the form does post itself to the server. How can I disable this form from being posting itself to the server.
Thanks for your response in advance.
"Brock Allen" wrote:
Can you explain what your problems actually are? This will help in coming up with a solution for you.
-Brock DevelopMentor http://staff.develop.com/ballen 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Rob Meade |
last post by:
Hi all,
I need to know how to determine if I arrived at my postback because of the
dropdownmenu or whether because of a form button being clicked.
How can I achieve this?
Any information...
|
by: rjl |
last post by:
I have a routine when a page loads it runs through a bunch of stuff
then I have a method to check something. if this thig I am checking is
false, I want to reload the same page, if it is true,...
|
by: McGeeky |
last post by:
On a post back, Internet Explorer flicks the page to the top. E.g. when
scrolling down the page to edit a text box the user clicks a button to
validate the value. This causes a post back. IE then...
|
by: C10B |
last post by:
hi all,
I have 3 drop down lists.
When any of them changes there is an auto postback to do some server
stuff.
It is not always obvious (as a user) that a page reload has been
started, and you...
|
by: toan79 |
last post by:
I am having this problem:
on page2.aspx.
Thank you for you time,
Toan.
|
by: scotty |
last post by:
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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: 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: 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...
| |