Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p> Hardware Type :
- <asp:DropDownList ID="DropDownList1" runat="server" Height="17px" Width="128px">
- <asp:ListItem>Please Choose</asp:ListItem>
- <asp:ListItem Value="laptop">Laptop</asp:ListItem>
- <asp:ListItem Value="server">Server</asp:ListItem>
- <asp:ListItem Value="television">Television</asp:ListItem>
- <asp:ListItem Value="printer">Printer</asp:ListItem>
- </asp:DropDownList>
- comu.Parameters.Add("Hwtype", SqlDbType.VarChar, 50);
- comu.Parameters["Hwtype"].Value = DropDownList1;
- comu.Connection = con;
- comu.ExecuteNonQuery();
- con.Close();
- }
- }
- comu.Parameters["Hwtype"].Value = DropDownList1;
- comu.Parameters["Hwtype"].Value = DropDownList1.SelectedValue;
- comu.Parameters["Hwtype"].Value = DropDownList1.Items[DropDownList1.SelectedIndex];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement