Problem adding button to login control

J

John

Hi

I have added an image button to the login control as below;

<asp:ImageButton ID="LoginButton" runat="server" AlternateText="login"
CommandName="Login"
CssClass="noborder" Height="31px" ImageUrl="~/images/box/bu_login_sm.gif"
SkinID="login"
Width="110px" ImageAlign="Middle" OnClick="LoginButton_Click" />

The problem is that it gives the error "'LoginButton_Click' is not a member
of 'ASP.events_login_aspx'.". What is the problem and how can I fix it?

Thanks

Regards
 
K

Ken Cox [Microsoft MVP]

Hi John,

It sounds like you've deleted the login handler routine. You can put it back
like this:

Protected Sub LoginButton_Click _
(ByVal sender As Object, _
ByVal e As System.Web.UI.ImageClickEventArgs)

End Sub

Ken
Microsoft MVP [ASP.NET]
 

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

Top