|
-
Mar 15th, 2005, 02:09 PM
#1
Password Textbox - Easy [Resolved]
I am just starting out with ASP.NET and I wanted to know what the difference is between
the Web Forms controls and the HTML controls (besides the Form part of it)? I am making a very simple login page
and I wanted a password textbox and I see this is only available when using an HTML textbox?
Last edited by RobDog888; Mar 15th, 2005 at 09:30 PM.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Mar 15th, 2005, 02:40 PM
#2
Re: Password Textbox - Easy
HTML Controls can not have server side events, and therefore you cannot write VB code behind say a click event.
Here is the code for 2 buttons. One a server side control, the other a HTML one.
Code:
<body>
<form id="Form1" method="post" runat="server">
<asp:Button id="btnServer" runat="server" Text="Button"></asp:Button>/asp:Button>
<INPUT type="button" value="Button">
</form>
</body>
So, with btnServer, the ASP.NET web control, you can do:
Code:
Private Sub btnServer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnServer.Click
'code here
End Sub
Does that help?
I am not that good at web, but I am sure you can put javascript code for a HTML button.
Woka
-
Mar 15th, 2005, 02:59 PM
#3
Re: Password Textbox - Easy
Umm, ok. With the thml button it submits and the form button is clicks. Which is the better of the two to use?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Mar 15th, 2005, 03:12 PM
#4
Re: Password Textbox - Easy
Well, since you are writting a .NET app, I would use .NET controls 
I write tables and stuff manually, in fact I write everything manually.
When writting tags etc you have intellisence. I canm't spell.
I only use the designer to drop in WebControls I have written.
To make the control a web control add the runat="Server" tag to it, that's if it supports it. Not all controls can have events etc.
Writting an example login page for you.
Woka
-
Mar 15th, 2005, 09:29 PM
#5
Re: Password Textbox - Easy
Thanks Woka!
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|