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.aspxIn 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
No comments:
Post a Comment