|
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
|
Tradução
Original
|
Classe FormParameter
Namespace: System.Web.UI.WebControls
Assembly: System.Web (em System.Web.dll)
O tipo FormParameter expõe os membros a seguir.
| Nome | Descrição | |
|---|---|---|
![]() | FormParameter() | |
![]() | FormParameter(FormParameter) | |
![]() | FormParameter(String, String) | |
![]() | FormParameter(String, DbType, String) | |
![]() | FormParameter(String, TypeCode, String) |
| Nome | Descrição | |
|---|---|---|
![]() | ConvertEmptyStringToNull | |
![]() | DbType | |
![]() | DefaultValue | |
![]() | Direction | |
![]() | FormField | |
![]() | IsTrackingViewState | |
![]() | Name | |
![]() | Size | |
![]() | Type | |
![]() | ValidateInput | |
![]() | ViewState |
| Nome | Descrição | |
|---|---|---|
![]() | Clone | |
![]() | Equals(Object) | |
![]() | Evaluate | |
![]() | Finalize | |
![]() | GetDatabaseType | |
![]() | GetHashCode | |
![]() | GetType | |
![]() | LoadViewState | |
![]() | MemberwiseClone | |
![]() | OnParameterChanged | |
![]() | SaveViewState | |
![]() | SetDirty | |
![]() | ToString | |
![]() | TrackViewState |
| Nome | Descrição | |
|---|---|---|
![]() ![]() | ICloneable.Clone | |
![]() ![]() | IStateManager.IsTrackingViewState | Infraestrutura. |
![]() ![]() | IStateManager.LoadViewState | Infraestrutura. |
![]() ![]() | IStateManager.SaveViewState | Infraestrutura. |
![]() ![]() | IStateManager.TrackViewState | Infraestrutura. |
Importante |
|---|
Observação de segurança |
|---|
<%@Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> private void InsertShipper (object source, EventArgs e) { SqlDataSource1.Insert(); } </script> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>ASP.NET Example</title> </head> <body> <form id="form1" runat="server"> <asp:dropdownlist id="DropDownList1" runat="server" datasourceid="SqlDataSource1" datatextfield="CompanyName" datavaluefield="ShipperID" /> <!-- Security Note: The SqlDataSource uses a FormParameter, Security Note: which does not perform validation of input from the client. Security Note: To validate the value of the FormParameter, handle the Inserting event. --> <asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="<%$ ConnectionStrings:MyNorthwind %>" selectcommand="SELECT CompanyName,ShipperID FROM Shippers" insertcommand="INSERT INTO Shippers (CompanyName,Phone) VALUES (@CoName,@Phone)"> <insertparameters> <asp:formparameter name="CoName" formfield="CompanyNameBox" /> <asp:formparameter name="Phone" formfield="PhoneBox" /> </insertparameters> </asp:sqldatasource> <br /><asp:textbox id="CompanyNameBox" runat="server" /> <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ControlToValidate="CompanyNameBox" Display="Static" ErrorMessage="Please enter a company name." /> <br /><asp:textbox id="PhoneBox" runat="server" /> <asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ControlToValidate="PhoneBox" Display="Static" ErrorMessage="Please enter a phone number." /> <br /><asp:button id="Button1" runat="server" text="Insert New Shipper" onclick="InsertShipper" /> </form> </body> </html>
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Função Server Core sem suporte), Windows Server 2008 R2 (Função Server Core com suporte com o SP1 ou posterior, Itanium sem suporte)
O .NET Framework não oferece suporte a todas as versões de cada plataforma. Para obter uma lista das versões com suporte, consulte .Requisitos de sistema do NET Framework.

