Wednesday, March 28, 2012

Content Page Problem

Hi;

I have a masterpage with a script manager and a collapse panel.

It works fine but the Content page I created containing an update panel for a grid just ignores the atlas updatepanel.

If I remove the association with the master page and add a script manger the updatepanel works fine.

I can't seem to find the problem, can anyone give me some guidance on this problem?

Thanks

Without much to go on, I'd guess that you might need to use aScriptManagerProxy.


I tried a script manager proxy it didn't help, but I was unsure of what needed to be set also I am only using the basic implementation of the updatepanel and not using any additional scripts. It seems that the master isn't communicating properly with the content page.

Here is the part of the master with the scriptmanager:

<%@.MasterLanguage="VB"CodeFile="HypnosMasterPage.master.vb"Inherits="HypnosMasterPage" %>

<%@.RegisterAssembly="AtlasControlToolkit"Namespace="AtlasControlToolkit"TagPrefix="cc1" %>

<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<htmlxmlns="http://www.w3.org/1999/xhtml">

<headrunat="server">

<title>Untitled Page</title>

<atlas:ScriptManagerID="ScriptManager1"runat="server"></atlas:ScriptManager>

</head>

<body>

<formid="form1"runat="server">

Here is the pertinent part of contentpage: Also it is in a subfolder one level below the location of the master page

<%@.PageLanguage="VB"MasterPageFile="~/HypnosMasterPage.master"AutoEventWireup="false"CodeFile="UserLookup.aspx.cs"Inherits="UserLookup"Title="UserLookup" %>

<%@.RegisterAssembly="AtlasControlToolkit"Namespace="AtlasControlToolkit"TagPrefix="atlasToolkit" %>

<asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Server">

<atlas:UpdatePanelID="UpdatePanel1"runat="server"Mode="Conditional">

<ContentTemplate>

<asp:GridViewrunat="server"ID="grid"></asp:GridView>

</ContentTemplate>

<Triggers>

<atlas:ControlEventTriggerControlID="btnGo"EventName="Click"/>

<atlas:ControlEventTriggerControlID="txtPatientSearch"EventName="TextChanged"/>

</Triggers>

</atlas:UpdatePanel>

Any thoughts?

Len


When I looked at the html again I found my own problem missing enable attribute, sorry to take up your time thanks for the tips.

Len

No comments:

Post a Comment