Showing posts with label regular. Show all posts
Showing posts with label regular. Show all posts

Wednesday, March 21, 2012

Is Atlas a Regular ASP.NET Page?

I created a website and selected the Atlas Website template. I don't know if I will use Atlas, but thought I might. Is it still a regular ASP.NET website? Or should I have selected ASP.NET website and added Atlas later. It might be out of beta before I use it. How hard it is to add Atlas later?

Thank you for any help.

When you use the atlas template, all your doing is setting up a solution with the atlas dll already included in your bin folder, all the proper declarations already setup in your web.config, and a script manager registered on your default.aspx page for you. Nothing says you have to use atlas, in fact, untill you add some atlas components, your not. It's for all intents and purposes a standard asp.net page.
Does anyone know when Atlas goes into production?

hello.

yes, this is true. however, if you're not using atlas, then you'd probably be better to use a normal web site (the altas dll + web.config entries introduce some handlers that will intercept some requests unnecessarily).

one more thing: there's already a go live licence for atlas so you can use it in production.

Is it possible to cancel update of an UpdatePanel?

Hi there,

I have an UpdatePanel in my .aspx page. I have a timer control which "ticks" on regular intervals (say, every minute or every 20 seconds) and causes the panel to update (which is specified via the UpdatePanel's Triggers collection).

On the server side, I check whether there have been any changes since last update and whether I need to actually update the panel. If no changes, I don't want the UpdatePanel to flush the same contents to the client browser as it already has. So what I want is kinda "cancel" the UpdatePanel under certain circumstances.

How can I achieve that? Thanks in advance.

Hi,

You should set UpdatePanel.Mode = Conditional, remove all triggers from your UpdatePanel and update your panel programmatically in the tick event.

 <atlas:UpdatePanel ID="udp1" runat="server" Mode="Conditional"> <ContentTemplate><%-- Put your content here--%>
 </ContentTemplate> </atlas:UpdatePanel> <atlas:TimerControl ID="tc1" runat="server" Interval="60000" OnTick="tc1_Tick" />
protected void tc1_Tick(object sender, EventArgs e){if (ThePanelMustBeUpdated())this.udp1.Update();}

Oh.. right... it's so simple..

Thank you very much