Advertisement
peterleong

WEBA Practical 01 Exercise 01 aspx

Apr 23rd, 2014
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.45 KB | None | 0 0
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frmExperimentControls1.aspx.cs" Inherits="Weba1.frmExperimentControls1" %>
  2.  
  3. <!DOCTYPE html>
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head runat="server">
  7.     <link href="CSS/pure-skin-green.css" rel="stylesheet" />
  8.     <link href="CSS/pure-g-u.css" rel="stylesheet" />
  9.     <style>
  10.         #body {
  11.             font-family: Arial;
  12.             font-size: 1em;
  13.         }
  14.  
  15.         #divBox {
  16.             min-height: 10em;
  17.             max-width: 20em;
  18.             overflow-wrap: normal;
  19.             border: 2px solid #00ff21;
  20.             font-family: inherit;
  21.             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)));
  22.             background-image: -webkit-linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.15));
  23.             background-image: -moz-linear-gradient(top, rgba(0,0,0, 0.05) 0%, rgba(0,0,0, 0.05));
  24.             background-image: -ms-linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.15));
  25.         }
  26.  
  27.         .l-box {
  28.             padding: 1em;
  29.         }
  30.     </style>
  31.     <title></title>
  32. </head>
  33. <body>
  34.     <form id="form1" class="pure-form pure-form-stacked" runat="server">
  35.         <fieldset>
  36.             <legend>Experiment TextBox, DropDownList, Button and Div Server controls</legend>
  37.             <label for="txtNumber">Select a fruit</label>
  38.             <asp:TextBox Text="4" ID="txtNumber" runat="server" />
  39.             <label for="ddlNumber">Select a fruit</label>
  40.             <asp:DropDownList ID="ddlNumber" runat="server">
  41.                 <asp:ListItem Value="1">apple</asp:ListItem>
  42.                 <asp:ListItem Value="2">banana</asp:ListItem>
  43.                 <asp:ListItem Value="3">watermelon</asp:ListItem>
  44.                 <asp:ListItem Value="4">cherry</asp:ListItem>
  45.                 <asp:ListItem Value="5">grapes</asp:ListItem>
  46.                 <asp:ListItem Value="6">orange</asp:ListItem>
  47.                 <asp:ListItem Value="7">lemon</asp:ListItem>
  48.                 <asp:ListItem Value="8">strawberry</asp:ListItem>
  49.             </asp:DropDownList>
  50.             <p></p>
  51.             <asp:Button ID="btnSend" runat="server" Text="Send" class="pure-button pure-button-primary"
  52.                OnClick="btnSend_Click" />
  53.             <p></p>
  54.             <div id="divBox" runat="server">
  55.             </div>
  56.         </fieldset>
  57.  
  58.     </form>
  59. </body>
  60. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement