[英]asp.net link button doesn't work in web server
我的aspx頁面中有一個簡單的鏈接按鈕。 一切正常,但是一旦我將Web表單上傳到Web服務器,鏈接按鈕就會出現以下錯誤
CS1061: 'ASP.ourproducts_aspx' does not contain a definition for 'btnShowBrandsDiv_Click' and no extension method 'btnShowBrandsDiv_Click' accepting a first argument of type 'ASP.ourproducts_aspx' could be found (are you missing a using directive or an assembly reference?)
我在.CS和.designer頁面中都有我的按鈕的定義,否則在我的本地計算機上將不起作用,這是我的按鈕
<asp:LinkButton runat="server" ID="btnShowBrandsDiv" OnClick="btnShowBrandsDiv_Click">Show</asp:LinkButton>
這也許是一件非常簡單的事情,但我無法弄清楚。
謝謝
服務器沒有DLL的更新版本。 將您的bin目錄復制到服務器,.NET將能夠找到該定義。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.