Showing posts with label build. Show all posts
Showing posts with label build. Show all posts

Wednesday, March 28, 2012

Ajax Update Panel question

Is it possible to place an update panel (or some other ajax control) on a non .aspx page? I am trying to build a poll application to use on our content pages. Unfortunately our content pages are just straight up html pages and do not run through the .net server. In fact asp.net isn't even installed on that server and likely can't be. Is it possible to have something on an html page redirect itself to the asp.net server?

I know this can't be done with regular asp.net controls but i thought perhaps the Ajax update panel would work?


If that wouldn't work is there another alternative, that still uses the .net framework?

I've seen other polling applications that let you copy and paste a simple line of javascript code onto their blogs or html pages,etc. And this piece of javascript communicates with the poll service. I was wondering if asp.net had a similar solution.

Jay

Hey,

Not on HTML pages no, only with ASPX pages. If you are using HTML, you could download the client solution they created off of the ajax.asp.net. It is the client-side libraries they used, which you can use that in HTML no problem.


Take a look at the Microsoft Ajax Library

http://ajax.asp.net/downloads/default.aspx

http://aspnetresources.com/blog/ms_ajax_cheat_sheets_batch1.aspx

ok thanks. I looked at these and its a start, although it looks pretty overwhelming for a newbie. I don't know where to begin.

I believe this is the online documentation for the client libraries correct?

http://ajax.asp.net/docs/ClientReference/default.aspx

Off-hand would you happen to know of any websites or tutorials or that would explain how to use the client libraries a little better?

Jay


This blog entry has an example and some links

http://blogs.msdn.com/brada/archive/2006/10/23/microsoft-ajax-library-at-the-ajax-experience.aspx

In fact asp.net isn't even installed on that server and likely can't be.

AJAX.net is based on theXMLHttpRequest, which works only for the same domain, AKA sandbox. Depending on your network anupdatepanel based on MicrosoftAjax.js may be very complex to implement. It is easier to haveHTML and.net on one server only.

Is it possible to have something on an html page redirect itself to the asp.net server?

Solution A: you can (re-)direct the user to your poll server in using a simplelink or the Javascriptlocation object.


B and C are likely the paths i will take i think. I've played around with the IFRAME and it seems to work well. I was trying to avoid it but i guess its not so bad. Thanks.

J

Wednesday, March 21, 2012

Ajax TabPanel Flickers in .NET 3.5

Hello everyone,

We recently started using VS2008 and the new Ajax Control Toolkit to build a prototype UI, and we have noticed that the TabPanel control flickers when there is a postback on the page. The TabPanel is within an UpdatePanel, and the flicker is occurring any time a postback occurs. Has anyone else seen or heard of this behavior? I know that this version is still in beta, and hopefully the release will resolve this. Any thoughts?

The tabs will "flicker" since they are being re-rendered after a postback, if you don't want this behavior add the UpdatePanel inside the TabPanel, then the tabs themselves won't be re-rendered, just the content.

-Damien


Hi Damien,

Thanks for the response. That's an interesting suggestion, and I will give it a try. However, the tabs did not flicker in the previous version of the toolkit, they only do it for the version released with .NET 3.5 Beta 2, so I'm wondering if this is the expected behavior...


Hello,

Putting the UpdatePanel inside each tab seems to work great, thanks!

AJAX tab control cant find properties

Hi All:

I've had an AJAX enabled web site running for approx. 1 month now. One of my tab controls now prevents me from getting a working build. In Visual Studio 2005 It displays "error creating control: unknown server tag AJAX toolkit.tabControl". My build attempt hilights several hundred errors in my source code where i try to reference any tab control property. Including this

<system.web.ui.control runat="server">

I've looked at my current web.config and system.web.ui.control is not in the assemblys section.

While trying to solve my problem i've uninsatlled, and then re-installed all my AJAX software.

How can I get my website to build again?

TIA

jhh

Hi,

It's likely to be caused by not configuring ajax correctly. Please refer to this document for how to configure ajax:

http://asp.net/ajax/documentation/live/ConfiguringASPNETAJAX.aspx

I'm not sure if it's your typo, the control's class name is TabContainer, rather than tabcontrol.