Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frmExperimentControls1.aspx.cs" Inherits="Weba1.frmExperimentControls1" %>
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <link href="CSS/pure-skin-green.css" rel="stylesheet" />
- <link href="CSS/pure-g-u.css" rel="stylesheet" />
- <style>
- #body {
- font-family: Arial;
- font-size: 1em;
- }
- #divBox {
- min-height: 10em;
- max-width: 20em;
- overflow-wrap: normal;
- border: 2px solid #00ff21;
- font-family: inherit;
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(40%, rgba(0,0,0, 0.05)), to(rgba(0,0,0, 0.05)));
- background-image: -webkit-linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.15));
- background-image: -moz-linear-gradient(top, rgba(0,0,0, 0.05) 0%, rgba(0,0,0, 0.05));
- background-image: -ms-linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.15));
- }
- .l-box {
- padding: 1em;
- }
- </style>
- <title></title>
- </head>
- <body>
- <form id="form1" class="pure-form pure-form-stacked" runat="server">
- <fieldset>
- <legend>Experiment TextBox, DropDownList, Button and Div Server controls</legend>
- <label for="txtNumber">Select a fruit</label>
- <asp:TextBox Text="4" ID="txtNumber" runat="server" />
- <label for="ddlNumber">Select a fruit</label>
- <asp:DropDownList ID="ddlNumber" runat="server">
- <asp:ListItem Value="1">apple</asp:ListItem>
- <asp:ListItem Value="2">banana</asp:ListItem>
- <asp:ListItem Value="3">watermelon</asp:ListItem>
- <asp:ListItem Value="4">cherry</asp:ListItem>
- <asp:ListItem Value="5">grapes</asp:ListItem>
- <asp:ListItem Value="6">orange</asp:ListItem>
- <asp:ListItem Value="7">lemon</asp:ListItem>
- <asp:ListItem Value="8">strawberry</asp:ListItem>
- </asp:DropDownList>
- <p></p>
- <asp:Button ID="btnSend" runat="server" Text="Send" class="pure-button pure-button-primary"
- OnClick="btnSend_Click" />
- <p></p>
- <div id="divBox" runat="server">
- </div>
- </fieldset>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement