views:

49

answers:

1

I have a linkbutton in my masterpage:

<asp:LinkButton runat="server" OnClick="Transfer" Text="Transfer"></asp:LinkButton>

in my code behind

        protected void Transfer(object sender, EventArgs e)
        {
              // Codez
        }

Says that no such method Transfer exists.

Any idea why or how to fix it?

MasterPage has no <%@ Blah %> on the very first line unlike my other pages, could this be the cause? I tried putting one in and specifying the codebehind but still not working.

A: 

Your master page should have an <%@ Master .... %> tag at the top of the page.

<%@ Master Language="C#" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
Jason Berkan