在 GoDaddy 中未检测到某些按钮单击事件。
这是代码
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditUserprofile.aspx.cs" Inherits="RechargeProfits.EditUserprofile" MasterPageFile="Recharge_profts.master" %>
<asp:Content ID="home_page" ContentPlaceHolderId="inner_page_data_single_column" runat="server">
<form id="form1" runat="server">
<div class="usual row">
<asp:Button ID="Button1" class="button small" runat="server"
Text="Logout" onclick="Button1_Click" ></asp:Button>
</div>
这是我的后端代码
namespace RechargeProfits
{
public partial class EditUserprofile : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
LogOut();
}