.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

cancel button in login control

Posted By: priya     Posted Date: February 23, 2009    Points:2   Category :ASP.Net
Hi Friends,
I need to have cancel button in login control in asp.net. By default Cancel button is not available. how to put cancel button inside Login control available in toolbox.

I am using c# as my code behind.

Thanks
Priya

Responses
Author: Athira Sreejith             
Posted Date: February 23, 2009     Points: 5   

Hi..

<asp:ImageButton ID="btnCancel" OnClientClick="javascript:return Clear()" runat="server" ImageUrl="~/Images/cancel_button.png" CausesValidation="False" alt="cancel" Width="77" Height="29" />

<script type="text/javascript">
function Clear()
{
document.getElementById('txtLoginId').value='';
document.getElementById('txtPassword').value='';
return false;
}
</script>

Author: Akhil Raj       [Moderator]      
Posted Date: February 23, 2009     Points: 5   

hi friend,
You can customize the login control. In the layout tag you can add the cancel button.



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend