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

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 2183
Hi Oriane,
I cannot reproduce this problem. Following is my test code:

Aspx:

<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<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:SliderExtender
ID="SliderExtender1"
BoundControlID="slider1_display"
Decimals="0"
Minimum="0"
Maximum="255"
runat="server"
TargetControlID="slider1"
EnableHandleAnimation="true"
TooltipText="{0}">
</cc1:SliderExtender>

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

</div>
</form>

Aspx.cs:
protected void Page_Load(object sender, EventArgs e)
{
this.Timer1.Tick += new EventHandler<EventArgs>(Timer1_Tick);
}

void Timer1_Tick(object sender, EventArgs e)
{
this.Label1.Text = DateTime.Now.ToString();
}
}

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****@microsoft.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.public.dotnet.framework.aspnet
| NNTP-Posting-Host: net1.yris-technologie.com 213.41.243.88
| Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSF TNGP06.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:77935
| X-Tomcat-NG: microsoft.public.dotnet.framework.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.microsoft.coma écrit dans le message
de news:5h**************@TK2MSFTNGHUB02.phx.gbl...
Hi Oriane,
I cannot reproduce this problem. Following is my test code:

Aspx:

<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<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:SliderExtender
ID="SliderExtender1"
[...]
TooltipText="{0}">
</cc1:SliderExtender>

<asp:TextBox ID="slider1" runat="server"
style="display:none"></asp:TextBox>
<asp:Label ID="slider1_display"
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
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....
2
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...
3
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...
3
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...
42
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...
6
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...
2
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
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 ...
1
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.