Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Godaddy未检测到按钮点击事件错误CS1601_C#_Asp.net_Events_Buttonclick - Fatal编程技术网

C# Godaddy未检测到按钮点击事件错误CS1601

C# Godaddy未检测到按钮点击事件错误CS1601,c#,asp.net,events,buttonclick,C#,Asp.net,Events,Buttonclick,GoDaddy中未检测到某些按钮单击事件 这是密码 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditUserprofile.aspx.cs" Inherits="RechargeProfits.EditUserprofile" MasterPageFile="Recharge_profts.master" %> <asp:Content ID="home_page" ContentPlaceHold

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>

您需要检查GoDaddy服务器上支持/安装的.NET framework版本,以及本地使用的版本


CS1601是一个编译器错误,与无效参数类型有关。如果您没有在本地获得该错误,并且是在托管服务器上获得该错误,则很可能他们正在运行不同版本的框架。

是什么让您认为这是godaddy问题?代码在本地工作吗?是否有任何错误抛出?你得到了什么结果?请修改你的问题以帮助我们回答我知道戈达迪有一个有趣的代表,但真的吗?问题几乎肯定是您编写的代码。
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();
    }