我有两个用户控件,它们都在同一个母版页中,其中一个我有一个计数器,另一个有一些代码,如果我重新加载到整个页面,计数器会增加和减少计数器的工作原理好吧,得到正确的数字,但是如果我在第二个用户控件中进行了任何更改,直到下一页重新加载它才感觉到
我想要的是谁能让柜台立即感受到变化
提前致谢
那是代码
<%@ Master Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPages/Main.Master" CodeBehind="InboxMails.master.cs" Inherits="NAQQAB_Web.MasterPages.InboxMails" %>
<%@ Register Src="~/userControls/InboxMails.ascx" TagName="Mails" TagPrefix="InboxMailsUS" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<InboxMailsUS:Mails ID="InboxMailsLists" runat="server" />
</asp:Content>
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Main.master.cs" Inherits="NAQQAB_Web.MasterPages.Main" %>
<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">--%>
<%--<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">--%>
<%@ Register Src="~/userControls/SearchBar.ascx" TagName="SearchBar" TagPrefix="SearchBarUC" %>
<%@ Register Src="~/userControls/UserStatusBar.ascx" TagName="LogIn_LogOutBar" TagPrefix="Shura" %>
<html lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<body marginheight="0" marginwidth="0" style="margin-bottom:0; margin-left:0; margin-right:0; margin-top:0; ">
<form id="form1" runat="server" method="post" target="_parent">
<div>
<asp:ScriptManager runat="server" ID="ScriptManager1" ScriptMode="Release">
</asp:ScriptManager>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="height: 100%;">
<tbody>
<tr>
<td width="834" height="100%">
<table id="table2" border="0" cellpadding="0" cellspacing="0" width="100%" style="height: 100%;">
<tbody>
<tr>
<td valign="top" height="231">
<table id="table3" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td valign="top">
<table id="table8" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td style="background-image: url(images/topBG.jpg);" align="right" bgcolor="#1a1e1f"
valign="top">
<br>
<Shura:LogIn_LogOutBar ID="userStatus" runat="server" Visible="True" />
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</body>
</html>
当收件箱邮件页面后面的代码完成更改后,我想从用户状态栏中的代码后面调用函数