Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Login control second button issue

Reply
Thread Tools

Login control second button issue

 
 
John
Guest
Posts: n/a
 
      12-11-2005
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="Middle" />
</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="UserNameLabel" runat="server" AssociatedControlID="UserName"
CssClass="label">User Name</asp:Label>
<br />
<asp:TextBox
ID="UserName" runat="server" AccessKey="u" CssClass="textbox"
Height="16px"></asp:TextBox>
<asp:RequiredFieldValidator
ID="UserNameRequired" runat="server" ControlToValidate="UserName"
ErrorMessage="User
Name is required." ToolTip="User Name is
required.">*</asp:RequiredFieldValidator>
<br />
<br />
<asp:Label
ID="PasswordLabel" runat="server" AssociatedControlID="Password"
CssClass="label"
Height="16px">Password</asp:Label>
<br />
<asp:TextBox
ID="Password" runat="server" AccessKey="p" CssClass="textbox"
TextMode="Password"
Height="16px"></asp:TextBox>
<asp:RequiredFieldValidator
ID="PasswordRequired" runat="server" ControlToValidate="Password"
ToolTip="Password
is required.">*</asp:RequiredFieldValidator>
<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: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" />
<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="Middle" />
</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>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Watir is unable to click Facebook "Login" button after button.clickis executed Alex Lin Ruby 1 05-06-2011 11:30 AM
Login control second button issue John ASP .Net 0 12-11-2005 07:55 AM
How to center login button in Login control? ike2010 ASP .Net 0 11-15-2005 09:13 PM
Responding to Button control events when Button is added to a Table Control Jim Gilligan ASP .Net Web Controls 0 09-01-2005 06:29 PM
Adding a second button if the first button is clicked Dave Prout ASP .Net Building Controls 1 06-08-2004 09:15 PM



Advertisments