PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

Ajax Refresh

 
 
Miro
Guest
Posts: n/a
 
      18th Nov 2009
Hi,

I am having a strange problem.

I have an option listbox and some text beside it ( some labels ).

When you select the option from the listbox, this triggers the ajax panel
where the labels are inside of to update the data on the labels.

However, if i click on the listbox and do not move my mouse, the ajax panel
does not refresh the screen until I move the mouse just a little bit.

Has anyone else had this happen and know of a workaround?
Seems to be I am having the same issue posted here:
http://forums.asp.net/t/1117431.aspx

Thanks...

 
Reply With Quote
 
 
 
 
Vijay
Guest
Posts: n/a
 
      18th Nov 2009
Use SelectedIndexChanged event. If the problem persist try to postback
using javascript (ie)__dopostback.
If you want to postback asynchronously. Please use this javascript code.

<script type="text/javascript" language="javascript">
function Postback() {
doPostBackAsync('txtNew', 'TextChanged');
}

function doPostBackAsync(eventName, eventArgs) {
var prm = Sys.WebForms.PageRequestManager.getInstance();
if (!Array.contains(prm._asyncPostBackControlIDs, eventName)) {
prm._asyncPostBackControlIDs.push(eventName);
}
if (!Array.contains(prm._asyncPostBackControlClientIDs,
eventName)) {
prm._asyncPostBackControlClientIDs.push(eventName);
}
__doPostBack(eventName, eventArgs);
}
</script>


I've used this coding to search items in a listbox asynchronously when it
enter the characters in a textbox.

Vijay chandar
ASP.NET developer and SQL Server Admin

"Miro" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I am having a strange problem.
>
> I have an option listbox and some text beside it ( some labels ).
>
> When you select the option from the listbox, this triggers the ajax panel
> where the labels are inside of to update the data on the labels.
>
> However, if i click on the listbox and do not move my mouse, the ajax
> panel does not refresh the screen until I move the mouse just a little
> bit.
>
> Has anyone else had this happen and know of a workaround?
> Seems to be I am having the same issue posted here:
> http://forums.asp.net/t/1117431.aspx
>
> Thanks...
>

 
Reply With Quote
 
Miro
Guest
Posts: n/a
 
      19th Nov 2009
Thanks Vijay,

I will have a look at it and give it a try.

Its wierd, exact same website viewd from the machine beside me does not have
that problem.

Miro

"Vijay" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Use SelectedIndexChanged event. If the problem persist try to postback
> using javascript (ie)__dopostback.
> If you want to postback asynchronously. Please use this javascript code.
>
> <script type="text/javascript" language="javascript">
> function Postback() {
> doPostBackAsync('txtNew', 'TextChanged');
> }
>
> function doPostBackAsync(eventName, eventArgs) {
> var prm = Sys.WebForms.PageRequestManager.getInstance();
> if (!Array.contains(prm._asyncPostBackControlIDs, eventName)) {
> prm._asyncPostBackControlIDs.push(eventName);
> }
> if (!Array.contains(prm._asyncPostBackControlClientIDs,
> eventName)) {
> prm._asyncPostBackControlClientIDs.push(eventName);
> }
> __doPostBack(eventName, eventArgs);
> }
> </script>
>
>
> I've used this coding to search items in a listbox asynchronously when it
> enter the characters in a textbox.
>
> Vijay chandar
> ASP.NET developer and SQL Server Admin
>
> "Miro" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi,
>>
>> I am having a strange problem.
>>
>> I have an option listbox and some text beside it ( some labels ).
>>
>> When you select the option from the listbox, this triggers the ajax panel
>> where the labels are inside of to update the data on the labels.
>>
>> However, if i click on the listbox and do not move my mouse, the ajax
>> panel does not refresh the screen until I move the mouse just a little
>> bit.
>>
>> Has anyone else had this happen and know of a workaround?
>> Seems to be I am having the same issue posted here:
>> http://forums.asp.net/t/1117431.aspx
>>
>> Thanks...
>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX UpdatePanel does not refresh after calling Update()-Method Michael Schöller Microsoft ASP .NET 1 23rd Nov 2009 03:33 PM
Ajax Asynchronous refresh. Is it possible ? Piotr Nowak Microsoft ASP .NET 10 23rd Aug 2007 04:38 PM
AJAX controls refresh whole page....... chrisexv6 Microsoft ASP .NET 0 26th Jul 2007 07:12 PM
AJAX + ObjectDataSource Refresh Issue Phillip Ian Microsoft ASP .NET 0 2nd May 2007 01:44 PM
Deploying ASP.NET AJAX-Enabled Web site to host without AJAX insta =?Utf-8?B?QnJpYW4gRWR3YXJkcw==?= Microsoft ASP .NET 2 21st Feb 2007 10:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:01 AM.