Showing posts with label running. Show all posts
Showing posts with label running. Show all posts

Monday, March 26, 2012

Proxy server problem

In my AJAX application ,My application is running fine, but when it is used through proxy server it hangs out.

Any suggestion is also welcome.

Thnx in advance.

Hi,rajkumarsharma

I am afraid we cannot find out the exact root cause without further information captured when the problem occurs.

To troubleshoot this issue, we really need the source code to reproduce the problem, so that we can investigate the issue in house. It is not necessary that you send out the complete source of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business logic from it.

Thank you.

published AJAX site running, but calendar control not showing up?!

I'm developing this site locally, and it works great during debug on my local machine.

However, when i publish the site up to the remote server, the calendar control that came in the ajax toolkit doesnt work. I click on the textboxes on the published site (which pops up a calendar extender control on my local version) and nothing happens, no errors even, just nothing.

here are the DLLs I have in my Bin folder :

AjaxControlToolkit.dll
AjaxControlToolkit.pdb
System.Web.Extensions.dll
System.Web.Extensions.Design.dll
--all the language folders that come in the toolkit

As long as I have all the dlls, I thought I should be good to go? Any ideas?

Is the Web.Config updated to handle ASP.NET AJAX Extensions & Control Toolkit?

You can find a sample ASP.NET AJAX 1.0 Web.config here - http://blogs.msdn.com/webdevtools/pages/asp-net-ajax-1-0-web-config.aspx


that worked! you da man, mvark!

Wednesday, March 21, 2012

question about timer

Hi there,

I made a ajax tabcontainer with updatepanel and timer. the timer is running for change activetabindex every 30 seconds.

Now i want to reset timer when user click tab from their explorer. otherwises if the timer running at 25 seconds and user click to another tab, they want to write down something, they only got 5 seconds to do that.

any idea i can do that?

thanks

You can use theOnClientActiveTabChanged event of the TabContainer to stop or reset your Timer when the tabs are changed manually.

Also, you might consider handling those tab changes on the client side, instead of using the Timer. Since all of the tabs are rendered and tab changes are just client side events, it's fairly inefficient to force partial postbacks every 30 seconds just to change the tab. You can use setInterval or setTimeout to achieve the same result, without requiring postbacks.


Hi gt1329a,

thanks replying my post. i will try onclientactivetabchanged event. but for your client side events i am not quite get your point.

could you pls give me some code example for client side event? thanks

best regards,

martin


Hi,

Do it like this:

<ajaxToolkit:TabContainer ID="TabContainer1" runat="server"OnClientActiveTabChanged="resetTimer()">

functionresetTimer(){
var b = $find(<%= Timer1.ClientID %>);
if(b){
b._stopTimer();
b._startTimer();
}
}

Best Regards,