473,800 Members | 2,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Login control second button issue

Hi

I am using a login in template mode as I have customised it. I have added an
image as a 'New User' button using the following code;

<a class="button" href="Default2. aspx">
<asp:Image ID="Image1" runat="server" AlternateText=" create a new
account" ImageUrl="~/images/box/bu_newuser.gif" SkinID="create"
ImageAlign="Mid dle" />
</a>

The problem is that when I click on this image button, the webform
Default2.aspx and only the current page (login.aspx) is refreshed. What is
the problem and how can I fix it?

The full customised login control code is below .

Thanks

Regards
<asp:Login ID="Login" runat="server"
Width="304px" Height="154px">
<LayoutTemplate >
<table>
<tr>
<td>
<asp:Label
ID="UserNameLab el" runat="server" AssociatedContr olID="UserName"
CssClass="label ">User Name</asp:Label>
<br />
<asp:TextBox
ID="UserName" runat="server" AccessKey="u" CssClass="textb ox"
Height="16px"></asp:TextBox>
<asp:RequiredFi eldValidator
ID="UserNameReq uired" runat="server" ControlToValida te="UserName"
ErrorMessage="U ser
Name is required." ToolTip="User Name is
required.">*</asp:RequiredFie ldValidator>
<br />
<br />
<asp:Label
ID="PasswordLab el" runat="server" AssociatedContr olID="Password"
CssClass="label "
Height="16px">P assword</asp:Label>
<br />
<asp:TextBox
ID="Password" runat="server" AccessKey="p" CssClass="textb ox"
TextMode="Passw ord"
Height="16px"></asp:TextBox>
<asp:RequiredFi eldValidator
ID="PasswordReq uired" runat="server" ControlToValida te="Password"
ToolTip="Passwo rd
is required.">*</asp:RequiredFie ldValidator>
<br />
<br />
<div>
<asp:CheckBox
ID="RememberMe " runat="server" Height="7px" Text=" Remember me next time"
Width="227px"
Checked="True" />
</div>
<br />
</td>
</tr>
<tr>
<td align="left"
valign="middle" >
<asp:ImageButto n
ID="LoginButton " runat="server" AlternateText=" login" CommandName="Lo gin"
CssClass="nobor der"
Height="31px" ImageUrl="~/images/box/bu_login_sm.gif " SkinID="login"
Width="110px"
ImageAlign="Mid dle" />
<a
class="button" href="Default2. aspx">
<asp:Image
ID="Image1" runat="server" AlternateText=" create a new account"
ImageUrl="~/images/box/bu_newuser.gif"
SkinID="create"
ImageAlign="Mid dle" />
</a>
</td>
</tr>
<tr>
<td align="center"
style="color: red; width: 299px;">
<asp:Literal
ID="FailureText " runat="server" EnableViewState ="False"></asp:Literal>
</td>
</tr>
</table>
</LayoutTemplate>
</asp:Login>
Dec 11 '05 #1
0 1067

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

Similar topics

10
2402
by: amit.purohit | last post by:
hi, I have a very strange problem on my login Page. the Page was working fine a few days back, but now does not generate post back events for controls. this login page uses form based authentication. Whenever the button is clicked, no event is raised, infact it doesnt even go to the page_load as well. Events are registered and there is no problem with the code because the same code is working fine on Windows XP machine. The machine...
7
1317
by: Michael Groeger | last post by:
Hi all, I have designed user controls. One search control where I can search for items in the database and show them in a grid. This control also has a button which simply exposes it's click event. When clicking on the button in this control i want to add the selected rows in the grid to another grid, which is on my second control. I do this by handling the Click event of the button in my page and add the values to arraylist in the...
14
2634
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 template which is not such a bad thing in itself but it means all other controls in the application must also be converted to templates to maintain a consistent UI. So much for writing 70% less code when foolish morons release a control with no cancel...
5
1595
by: Glen | last post by:
Does anybody know a way to make the button on the Login control be the default button on the page? I have a master page with an ImageButton and a content page with a Login control. When I enter the id and password and press the Enter key, the ImageButton (on the master page) fires instead of the Login button of the Login control on the content page. The Login composite control does not appear to expose a reference to its button. ...
1
6987
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? LoginButton.Attributes.Add("onmouseover", "this.className = 'buttonsmallover'"); LoginButton.Attributes.Add("onmouseout", "this.className = 'buttonsmall'"); -- Jeff Lynch
6
3364
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in the past in other places, and while the help was much appreciated, it seemed everyone just wanted to 'theoretically' explain how to do it, but when I tried to do it myself, I couldn't login. I want to simply pass the email address and password to...
9
2434
by: timnels | last post by:
I have an issue where I have a user control that is launched into a floating form. At some point later, I allow the user to "unfloat" the user control by reparenting it on a split container in another form. Problem is if I wake a tooltip when the window is floated, and then try the same thing when it is reparented, the app crashes with " Cannot access a disposed object.Object name: 'Form'. Presumably, this is a result of the tooltips...
0
1066
by: xke | last post by:
Having a Login Control on my page caused an issue when press enter (after filling out username and pwd fields). I manage to get through by setting the default button for the page form: mainForm.DefaultButton = loginbtn.UniqueID. My problem is now with Password Recovery. Password Recovery is a bit complicated because it's two parts process. I want to have the same behaviour, press enter same as click on the button.
0
9690
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10274
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10251
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10033
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9085
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7576
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.