NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HtmlInputButton Class

The HtmlInputButton class defines the methods, properties, and events for the HTML Input Button control. This class allows programmatic access to the HTML <input type= button>, <input type= submit>,and <input type= reset> elements on the server.

Object
   Control
      HtmlControl
         HtmlInputControl
            HtmlInputButton

[Visual Basic]
Public Class HtmlInputButton
   Inherits HtmlInputControl
   Implements IPostBackEventHandler, IPostBackDataHandler
[C#]
public class HtmlInputButton : HtmlInputControl,
   IPostBackEventHandler, IPostBackDataHandler
[C++]
public __gc class HtmlInputButton : public HtmlInputControl,
   IPostBackEventHandler, IPostBackDataHandler
[JScript]
public class HtmlInputButton extends HtmlInputControl,
   IPostBackEventHandler, IPostBackDataHandler

Remarks

[To be supplied.]

Requirements

Namespace: System.Web.UI.HtmlControls

Assembly: System.Web.dll

Example [Visual Basic]

This example demonstrates a simple user authentication scenario using OnServerClick.

[Visual Basic]

<html>
   <script runat=server>
 
      Sub SubmitBtn_Click(Source As Object, E as EventArgs)
         If (Name.Value = "JohnDoe") And (Password.Value = "GoldFish") Then
           Message.InnerHtml = "User was Authenticated"
         End If
      End Sub
 
      Sub ResetBtn_Click(Source As Object, E as EventArgs)
         Name.Value = ""
         Password.Value = ""
      End Sub
 
   </script>
 
   <body>
         <form method=post runat=server>
 
 Enter Name:      <input id="Name" type=text size=40 runat=server> 
 Enter Password: <input id="Password" type=password size=40 runat=server> 
 
 <input type=submit value='Enter" OnServerClick="SubmitBtn_Click" runat=server>
 <input type=reset OnServerClick="ResetBtn_Click" runat=server>
 
 <h1>
   <span id="Message" runat=server> </span> 
 </h1>
 
         </form>
      </body>
</html>

See Also

HtmlInputButton Members | System.Web.UI.HtmlControls Namespace | HtmlInputControl