473,657 Members | 2,409 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with asynchronous postback...

Hello there,

I use an Ajax slider extender and I'm try to find a workaround to a known
(http://forums.asp.net/p/1092702/2681110.aspx) "bug" of the slider control
from the Ajax Control Toolkit. When the user is clicking the mouse on the
slider during a partial postback, an error occurs.

I have a Ajax Timer which causes a postback every ten seconds. So I would
like to disable the slider before the postback...

Any hint ?

Best regards

Oct 15 '08 #1
2 2202
Hi Oriane,
I cannot reproduce this problem. Following is my test code:

Aspx:

<form id="form1" runat="server">
<div>
<asp:ScriptMana ger ID="ScriptManag er1" runat="server">
</asp:ScriptManag er>
<asp:UpdatePane l ID="UpdatePanel 1" runat="server">
<ContentTemplat e>
<asp:Label ID="Label1" runat="server"
Text="Label"></asp:Label>
<asp:Timer ID="Timer1" runat="server" Interval="100"
Enabled="true" >

</asp:Timer>

</ContentTemplate >
</asp:UpdatePanel >

<cc1:SliderExte nder
ID="SliderExten der1"
BoundControlID= "slider1_displa y"
Decimals="0"
Minimum="0"
Maximum="255"
runat="server"
TargetControlID ="slider1"
EnableHandleAni mation="true"
TooltipText="{0 }">
</cc1:SliderExten der>

<asp:TextBox ID="slider1" runat="server"
style="display: none"></asp:TextBox>
<asp:Label ID="slider1_dis play"
runat="server"> </asp:Label>

</div>
</form>

Aspx.cs:
protected void Page_Load(objec t sender, EventArgs e)
{
this.Timer1.Tic k += new EventHandler<Ev entArgs>(Timer1 _Tick);
}

void Timer1_Tick(obj ect sender, EventArgs e)
{
this.Label1.Tex t = DateTime.Now.To String();
}
}

I cannot see any JavaScript error when I move the thumb of the slider.
Could you test my code? Can it work? I look forward to your test result.

Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/...tance&ln=en-us.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Oriane" <or****@noemail .noemail>
| Subject: Problem with asynchronous postback...
| Date: Wed, 15 Oct 2008 18:38:14 +0200
| Lines: 14
| MIME-Version: 1.0
| Content-Type: text/plain;
| format=flowed;
| charset="iso-8859-1";
| reply-type=original
| Content-Transfer-Encoding: 7bit
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
| X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049
| Message-ID: <#t************ **@TK2MSFTNGP06 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: net1.yris-technologie.com 213.41.243.88
| Path: TK2MSFTNGHUB02. phx.gbl!TK2MSFT NGP01.phx.gbl!T K2MSFTNGP06.phx .gbl
| Xref: TK2MSFTNGHUB02. phx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:7793 5
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Hello there,
|
| I use an Ajax slider extender and I'm try to find a workaround to a known
| (http://forums.asp.net/p/1092702/2681110.aspx) "bug" of the slider
control
| from the Ajax Control Toolkit. When the user is clicking the mouse on the
| slider during a partial postback, an error occurs.
|
| I have a Ajax Timer which causes a postback every ten seconds. So I would
| like to disable the slider before the postback...
|
| Any hint ?
|
| Best regards
|
|

Oct 16 '08 #2
Hi Allen,
"Allen Chen [MSFT]" <v-******@online.m icrosoft.coma écrit dans le message
de news:5h******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi Oriane,
I cannot reproduce this problem. Following is my test code:

Aspx:

<form id="form1" runat="server">
<div>
<asp:ScriptMana ger ID="ScriptManag er1" runat="server">
</asp:ScriptManag er>
<asp:UpdatePane l ID="UpdatePanel 1" runat="server">
<ContentTemplat e>
<asp:Label ID="Label1" runat="server"
Text="Label"></asp:Label>
<asp:Timer ID="Timer1" runat="server" Interval="100"
Enabled="true" >

</asp:Timer>

</ContentTemplate >
</asp:UpdatePanel >

<cc1:SliderExte nder
ID="SliderExten der1"
[...]
TooltipText="{0 }">
</cc1:SliderExten der>

<asp:TextBox ID="slider1" runat="server"
style="display: none"></asp:TextBox>
<asp:Label ID="slider1_dis play"
runat="server"> </asp:Label>

</div>
</form>
Yes this code runs normally. The thing is that if you put the slider inside
the UpdatePanel, you will have the problem !
But as I realize that I don't need to have it inside the updatePanel, so you
sloved my problem.

Thanks a lot

Oct 16 '08 #3

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

Similar topics

3
5126
by: David | last post by:
Hi, Ive been trying to work this out for the past 2 days now and im not getting anywhere fast. The problem i have is that i am using Asynchronous sockets to create a Socket Client library. When i try to connect to a server that doesnt exist it raises a "Connection forcibly rejected by the resmote host" SocketException.
2
2333
by: Darryl A. J. Staflund | last post by:
Hi there, Can anyone tell me why invoking a single SQL insert statement (well, rather, a method that performs a SQL insert) using an asynchronous delegate should result in twice the number of records being inserted? Am I just making a mistake somewhere? (though I don't get double the records if I call the method synchronously.) Thanks, Darryl
3
2195
by: Grigs | last post by:
Hello, I have an ASP.Net webform that shows numerous attributes of parts we sell. There is one portion of the form that I have the user click a button to get the information for. I did this for two reasons: 1) not everyone wants to see it every time. 2) Depending on the complexity of the part, it can take a while. Everything works great. However, on complex parts (say that return 10,000 + lines) the browser says it is "Not...
3
3981
by: usenetaccount | last post by:
In a newly created test app, to maximize client performance I tried to make two SOAP method calls in tandem (the soap methods execute some specified query), as each call includes a large amount of idle time by the client as it waits for a query to execute and return a dataset. As a test, I initially wrote two versions: ' // Sequential & Synchronous Dim webobj As com.mycompany.webobject Dim ds1 As System.Data.DataSet Dim ds2 As...
42
34141
by: Greg | last post by:
Hi, I've designed a bookmark in Ajax / PHP that I will put soon on sourceforge.net. But I've got an very tricky bug. I try it on some computers with Internet Explorer/Windows, Firefox 1.07/Linux, Firefox 1.5/Linux, Firefox 1.5/Windows and Firefox 1.5/Mac, Safari/Mac. It works perfectly on a lot of configurations but, on some PC with Firefox 1.5/Windows (not all), the Javascript code with XmlHttpRequest
6
2851
by: hlubocky | last post by:
I thought I had a good grasp of the problem related to dynamically creating controls, but it appears that as my application grew in complexity, the problem has resurfaced. As I understand it, in order for a dynamically created control to persist its state, it needs to be created and loaded into the page control hierarchy before the viewstate is loaded. The proposed solution, and that which I have been using, has been to create all of...
2
553
by: Marco Assandri | last post by:
Hi, I saw some web sites where I can upload file asynchronously. May I do the same think with asp.net?
0
1750
by: Bishoy George | last post by:
Hi, I have a asp.net 2.0 web application. I want to implement the asynchronous model through http handler in web.config ------------------------------------------------------------------------------------------------------------------------- My web.config file: ---------------------
1
2256
by: Nathan Sokalski | last post by:
I have a Page that contains an UpdatePanel with a Button inside of it. The UpdatePanel has ChildrenAsTriggers="false" and UpdateMode="Conditional", and the Button is not one of the Triggers, so I would expect clicking this Button to do a normal postback. However, when I click it, the browser does not do a postback, although it does execute the eventhandler for the button. What could I be missing? Thanks. -- Nathan Sokalski...
0
8395
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, 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...
0
8826
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, 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...
1
8503
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
8605
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...
1
6166
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
5632
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();...
0
4155
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...
0
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1615
bsmnconsultancy
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...

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.