Async = "true"

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
1/28/2008 9:55:54 AM
Gravatar
Total Posts 26

Async = "true"

The content that belongs here is too complex to display securely.
1/28/2008 10:03:23 AM
Gravatar
Total Posts 18409

Re: Async = "true"

Hi,

There is no Async property on page or masterpage, where are you getting the idea this property exists?

If you want to make an async call to a web service to populate something in the page that is usually done client side from javascript.

I would not make an async call with server side code if the result is needed to render the page server side. You can do asynchronous tasks from the server code if its result is not required to render the page by queueing the taks on a new thread. This prevents the task form making it slow to render the page.

Hope it helps,

Joe

3/10/2011 10:19:42 AM
Gravatar
Total Posts 1

Re: Async = "true"

Hi

We would like to use Async web services in Mojo controls

However, for that Async = true attribute needs to be set at page level before render.

<%@ Page Async="true" ... %>.

Refer http://msdn.microsoft.com/en-us/magazine/cc163725.aspx

How to enable it in mojo?

Ajay

 

 

 

3/10/2011 12:21:32 PM
Gravatar
Total Posts 18409

Re: Async = "true"

Well the problem is it is an all or nothing thing to change it and I don't think we should have that for every page in the menu.

If it were possible to set that from code then I would add a web.config setting and code it up to accommodate you but it is not possible to do that it can only be set in the page directive.

So if you need that you'll have to edit the Default.aspx file in your copy and add that, and you will have to maintain that modification whenever you upgrade.

For supporting pages in custom features you have control over that, but in the main cms page which all are served from Default.aspx you would have to edit the file as mentioned above. And I have no idea what if any side effects that will create in mojoPortal existing features if you do that.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.