我正在尝试解决死锁问题.当同时有超过10个用户时,我的应用程序会一直出现死锁.我尝试过使用SQL分析器,但无法弄明白.
问题是,在SQL Profiler中,我已经检查过使用死锁图事件.但是当我运行跟踪时,事件从未被记录.我可以看到有很多死锁和死锁链,但没有死锁图.请指教.感谢帮助
必须从母版页调用内容页面功能.如果需要更多数据,请告诉我.
MasterPage.master.cs看起来像
protected void Required_Function(object sender, EventArgs e)
{
// call Update_Content_Page() from content page
}
Run Code Online (Sandbox Code Playgroud)
Default.aspx看起来像
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
<asp:Label ID="Label1" runat="server" Text="Label">Hello people!</asp:Label>
</asp:Content>
Run Code Online (Sandbox Code Playgroud)
Default.aspx.cs看起来像
using…
public partial class _Default : System.Web.UI.Page
{
protected void Update_Content_Page()
{
Label1.Text=”Hello world”;
}
}
Run Code Online (Sandbox Code Playgroud)