Click here to Skip to main content
15,917,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everybody,

I couldn't fix a problem which has been raising since I change the architecture of the project I am working on.

Upon a successful login a user is redirected to another page. There is a master page, and there are child asp pages.
I want to reload and unload part of a page, only, and this works fine. But when I try to load a page containing AJAX control it makes an error.

The work is a combination of asp, and jquery technologies.
By the way, the page which contains the AJAX control works if I browse it independently.
(FYI: when I remove the scriptmanager tag the error is not coming, but then everything is also not coming.)

Thank you for your help,

Here it is how I tried to load the page,
sample code:
JavaScript
$(document).ready(function () {
            $("[id$='hl_home']").click(function () {
                $("[id$='container']").load("_HomeLogon.aspx");
                               return false;
            });
});

The page (_HomeLogon.aspx) I wish to load whenever the above jquery syntax is executes.
sample code:
XML
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="_HomeLogon.aspx.cs" Inherits="FL._HomeLogon" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="~/Styles/mtLite_main.css" rel="stylesheet" type="text/css" />
    <script language="javascript">
        javascript: window.history.forward(1);
    </script>
</head>
<body>
    <form id="formM" runat="server">
     <div class="divMainCont" atomicselection="False" contenteditable="inherit" dir="ltr"
        unselectable="off" align="center">
        <asp:ScriptManager runat="server" EnablePartialRendering="true">            
            </asp:ScriptManager>         
        <asp:TabContainer ID="mainTabContainer" runat="server" ActiveTabIndex="0" Height="294px"
            Width="598px" BorderStyle="None" Style="text-align: left" TabIndex="1">
            <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="SM">
                <ContentTemplate>
                    Something Nice Here.
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="RM">
		<ContentTemplate>
		                    Another Something Nice Here too.
		                </ContentTemplate>
            </asp:TabPanel>
        </asp:TabContainer>
    </div>
    </form>
</body>
</html>
Posted
Updated 27-Mar-11 21:06pm
v2
Comments
Sandeep Mewara 28-Mar-11 3:07am    
Sharing the error would help.
Yonathan1111 28-Mar-11 3:23am    
Hallo everybody,

It appears to be working. I don't know how, but I will figure out and try to post what was the problem.
Thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900