버튼이있는 Main.Master
페이지가 있습니다.
디자인보기에서이 버튼을 두 번 클릭하면 아래와 같은 Main.Master
페이지에 클릭 이벤트가 생성됩니다.ASP.NET 버튼 클릭 이벤트 오류
<script runat="server">
protected void btnKayit_Click(object sender, EventArgs e)
{
}
</script>
나는 그것이 내가이 작업을 수행 할 때 maually 그것은 나에게 오류를 제공, Main.Master.cs
페이지를 만들;
CS1061: 'ASP.main_master' does not contain a definition for 'btnKayit_Click' and no extension method 'btnKayit_Click' accepting a first argument of type 'ASP.main_master' could be found (are you missing a using directive or an assembly reference?)
이 문제를 어떻게 해결할 수 있습니까?
EDIT : aspx 코드;
<asp:Button CssClass="arama" ID="btnKayit" runat="server" Text="Kayıt Ol" Height="30px"
Width="75px" Style="margin: 0px; float: left; width: 75px; padding: 0px; margin-bottom: 0px;
color: #d55355; font-size: 12px" onclick="btnKayit_Click" />
네임 스페이스 문제처럼 소리. ASP.net 웹 양식이 아닌 asp.net 웹 사이트입니까? – DaveHogan
ur urpx 페이지 코드를 보여줍니다. 또한 aspx.designer.cs 페이지에서 제대로 초기화 된 버튼 컨트롤을 확인하십시오. – watraplion
@DaveHogan 이것은 웹 응용 프로그램 프로젝트입니다. – ali