Showing posts with label header. Show all posts
Showing posts with label header. Show all posts

Monday, March 26, 2012

Atlas UpdatePanel in MasterPage but the page refreshes completely.

I have used atlas script manager and atlas update panel in Master Page.

My scenario is not to refresh my header,the content place holder will have the dynamic content.This operation works well in Mozilla browser.

But when i select a menu in header the page get refreshed in IE browser,but this is not happening in Mozilla browser.

May i know what is the problem getting refreshed with IE.

Have a look at this tutorial about Using UpdatePanels in Master Pages:http://asp.net/AJAX/Documentation/Live/tutorials/UsingUpdatePanelMasterPages.aspx

Without seeing your code, it's tough to know what's going on...

-Damien


I have used AtlasControlToolKit.DLL and its corresponding Dlls

<atlas:ScriptManagerID="ScriptManager1"EnablePartialRendering="true"runat="server">

</atlas:ScriptManager>

<atlas:UpdatePanelID="upPortal"runat="server"RenderMode="Inline"Mode="Conditional">

<ContentTemplate>

<CustomWebPart:PortalWebPartManagerID="HomeWebPartManager"runat="server">

</CustomWebPart:PortalWebPartManager>

<asp:ContentPlaceHolderID="ContentPlaceHolder1"runat="server">

</asp:ContentPlaceHolder>

</ContentTemplate>

</atlas:UpdatePanel>

My Page gets refreshed even after having update panel in MasterPage.

The Page refresh only for IE browsers and in Mozilla the page is not refreshed and please guide me what is the problem how to resolve this.

I have added the page in my Testing Server . please view the output and get me out of this issue resolved

http://221.134.108.199/Theforum/authentication/userlogin.aspx

Thanks

Navya Jeevan


You are saying you used atlas Update Panel

I think it is older version of AJAX, use latest version

http://asp.net/ajax/documentation/live/tutorials/UsingUpdatePanelMasterPages.aspx


You can get the latest release here:http://www.asp.net/ajax/default.aspx

-Damien

Saturday, March 24, 2012

ATLAS template install error

Hi,
I am trying to install the ATLAS template provided by microsoft..
but when i double click the file, an error comes saying "unknown stream header byte sequence"...
Can anyone help me in installing this template??
I have MSVS 2005 BETA2 installed..
Thanks..

Atlas is not supported on Beta 2. See similarthread.

David

Atlas stopped working when I added a javascript function.

Everything was working perfectly until I added a <script type="text/javascript"> section in the header and added a function. Now Atlas doesn't work any more. The page I created is simply a listbox, button and a label. When the button is pushed items are added to the list box and the label text is changed. With the javascript function in the code, nothing happens when I click the button. It works if the "hasOptions" function is removed. Is this a bug, or am I just doing something wrong?

Here is the aspx code:

<%@dotnet.itags.org. Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Untitled Page</title> <script type="text/javascript"> function hasOptions(obj) { if (obj != null && obj.options != null) { return true; } return false; } </script></head><body><form id="form1" runat="server"> <atlas:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" /> <br /> <atlas:UpdatePanel ID="TableUpdatePanel" runat="server" Mode="Conditional"> <ContentTemplate> <asp:ListBox ID="listbox" runat="server"> <asp:ListItem Text="Hello"></asp:ListItem> </asp:ListBox> <asp:Button ID="button" runat="server" OnClick="button_Click" Text="Push Me!" /><br /> <asp:Label ID="label" runat="server"></asp:Label> </ContentTemplate> </atlas:UpdatePanel> </form></body></html>

And here is the Code Behind:

using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;public partialclass _Default : System.Web.UI.Page {protected void Page_Load(object sender, EventArgs e) { }protected void button_Click(object sender, EventArgs e) { listbox.Items.Add("Test"); listbox.Items.Add("Test"); listbox.Items.Add("Test"); listbox.Items.Add("Test"); listbox.Items.Add("Test"); label.Text ="This worked!"; }}

Hi,
I recently posted a message regarding your problem.
Try commenting out the IF statement with the && logical and operator,
that should fix your problem, seriously :)

I assume this is caused by a bug in the Atlas framework.
Every response returned from a partial update is treated as an XML document (you can use WebDevHelper to monitor the HTTP traffic and see this) and because '&' is a special xml charachter it confuses the Xml Parser and causes the Partial Rendering to fail.

I'm still waiting for a reply from for my post regarding this issue.

My Post:
http://forums.asp.net/thread/1267658.aspx

Have fun,
Lidor Pergament.

Wednesday, March 21, 2012

Atlas request discovery

I have a BasePage class that is the base class for all my pages.
This page does a lot of the rendering of the page, the header, footer etc.
This should of course not be done when the request is an atlas request, so in these cases I need to just call base.Render.

The problem is that I can't see any way of discovering that the current request is an Atlas request, it looks exactly the same as a regular request.

Any ideas?

PS: Rewriting to use master pages etc instead is not an option, would take way to much time as this is an enterprise application with several hundreds of pages inheriting the BasePage class.

Thanks,
Einar

ok may b move ur atlas functionality to a webservice
One Way to find out whether a request is an Atlas Request is to use the following piece of code. It is based on my research using Reflector.

bool isAtlasRequest = ScriptManager.GetCurrent(this).IsInPartialRenderingMode;

Works, thanks!

Einar