内部邮件,当别人给你发邮件时,系统在a.aspx页面上应该给你一个提示:你有新邮件.也就是将下面这个table Visible="true"
<asp:table id="tabclew" runat="server"  Visible="False" HorizontalAlign="Center" width="100%" CellPadding="0" cellSpacing="0">
<asp:TableRow Runat="server" Height="20" ID="Tablerow1">
<asp:TableCell ColumnSpan="3" HorizontalAlign="center" Runat="server" ID="Tablecell3">你有新邮件</asp:TableCell>
</asp:TableRow>
测查是否有新邮件的代码写在a.aspx.cs上的,(因为用ajax,所以下面的page_Load中的代码会不断的被执行)
private void Page_Load(object sender, System.EventArgs e)
{
this.PageBegin("项目管理",true);

_user = new PMUser(Convert.ToInt16(this.Empid));
MyEmail();
this.cellclew2.Text="  新邮件:";


if(iNewMail > 0)
{//新邮件
this.cellclew2.Text += "<a href=\"Email\\ReadEmail.aspx?msgid="+iNewMail.ToString()+"\" target=\"main\">"+strEmailtitle+"</a>&nbsp;&nbsp;<br>";
}
if(iNewInform > 0 || iNewMail > 0 || iNewDoc > 0 || iSchedule > 0 || iScheduleing > 0)
{
this.tabclew.Visible = true;
}
}
private void MyEmail()
{//检查是否有新邮件
OA.DA.Email e = new OA.DA.Email();
DataTable dt = e.GetNoClewEmail(this.Empid);
if( dt.Rows.Count > 0 )
{
iNewMail = Convert.ToInt32(dt.Rows[0][0].ToString());
strEmailtitle = dt.Rows[0]["title"].ToString();
e.SetEmailClewed(iNewMail.ToString());
}
else
{
iNewMail = 0;
}

}