...not a member of... error

M

Mark

Hi - using VS2003 and VB.Net - in my code I have:

Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.UI.WebControls
..
..

Protected WithEvents Button2 As System.Web.UI.WebControls.Button

...further down...

Protected Sub clickEditCat(ByVal sender As Object, ByVal e As EventArgs)
..
..

...and in my aspx file:

<asp:Button id="Button2" onclick="clickEditCat" runat="server"
text="Edit"></asp:Button>


But I get the error:

'clickEditCat' is not a member of 'ASP.editpage_aspx'.

My page directive is:

<%@ Page Language="vb" Debug="true" CodeBehind="editpage.aspx.vb"
AutoEventsWireUp="false" Inherits="calltrack.editpage" %>

Thanks for any help,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top