473,473 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem adding button to login control

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
Sep 10 '06 #1
1 2091
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]

"John" <Jo**@nospam.infovis.co.ukwrote in message
news:ec**************@TK2MSFTNGP05.phx.gbl...
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


Sep 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Zelin Lu | last post by:
Hello, All I am building two user controls and dynamicly load one them into a PlaceHolder. But the button on the user control doesn't work fine. I need to click twice to fire the event? ...
2
by: bill yeager | last post by:
When trying to run my web project, I get the following error: Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the...
2
by: TIBM | last post by:
Hi. I've posted this question on another newsgroup, but I haven't received any answers.. I have a login page where users input userID and password and click a Login button. Before calling the ...
14
by: clintonG | last post by:
This is an appeal for peer support sent to Microsoft as will be noted in closing. The Login control does not include a Cancel button. The only option is to convert the Login control to a...
3
by: Ankit Aneja | last post by:
I have a strange situation and I have no idea how to solve this. Its a Recruitment Search Page,in the Admin Page, for every button click event the Admin Person has to create a checkbox on the users...
1
by: Jeff Lynch | last post by:
I'd like to add the following attributes to the Login control's Login Button to create a CSS rollover effect. How can I access the control's login button from the page's code-behind? ...
1
by: c83 | last post by:
after a user makes FormsAuthentication.SignOut(); Response.Redirect('login.aspx'); it is redirected to the login page. But if in the browser it pushes the Back button the last visited page...
0
by: Kristian Reukauff | last post by:
Hi I have a problem with the .Net-Securty-Functions. I've got a client and a server. When I try to register a channel at the server with this line: ChannelServices.RegisterChannel(chan, false);...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.