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:
$(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:
<%@ 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>