Here's the :
Master Page:
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="Fleet.SiteMaster" %>
<!DOCTYPE html>
<html lang="en">
<head runat="server">
<meta charset="utf-8" />
<title><%: Page.Title %> - My ASP.NET Application</title>
<asp:PlaceHolder runat="server">
<%: Scripts.Render("~/bundles/modernizr") %>
</asp:PlaceHolder>
<webopt:BundleReference runat="server" Path="~/Content/css" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta name="viewport" content="width=device-width" />
<asp:ContentPlaceHolder runat="server" ID="HeadContent" />
</head>
<body>
<form runat="server">
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization="True">
<Scripts>
<%--To learn more about bundling scripts in ScriptManager see http://go.microsoft.com/fwlink/?LinkID=272931&clcid=0x409 --%>
<%--Framework Scripts--%>
<asp:ScriptReference Name="MsAjaxBundle" />
<asp:ScriptReference Name="jquery" />
<asp:ScriptReference Name="jquery.ui.combined" />
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
<asp:ScriptReference Name="WebFormsBundle" />
<%--Site Scripts--%>
</Scripts>
</asp:ToolkitScriptManager>
<header>
<div class="content-wrapper">
<div class="float-left">
<p class="site-title">
<a runat="server" href="~/">your logo here</a>
</p>
</div>
<div class="float-right">
<section id="login">
<asp:LoginView runat="server" ViewStateMode="Disabled">
<AnonymousTemplate>
<ul>
<li><a id="registerLink" runat="server" href="~/Account/Register">Register</a></li>
<li><a id="loginLink" runat="server" href="~/Account/Login">Log in</a></li>
</ul>
</AnonymousTemplate>
<LoggedInTemplate>
<p>
Hello, <a runat="server" class="username" href="~/Account/Manage" title="Manage your account">
<asp:LoginName runat="server" CssClass="username" /></a>!
<asp:LoginStatus runat="server" LogoutAction="Redirect" LogoutText="Log off" LogoutPageUrl="~/" />
</p>
</LoggedInTemplate>
</asp:LoginView>
</section>
<nav>
<ul id="menu">
<li><a runat="server" href="~/">Home</a></li>
<li><a runat="server" href="~/About">About</a></li>
<li><a runat="server" href="~/Contact">Contact</a></li>
</ul>
</nav>
</div>
</div>
</header>
<div id="body">
<asp:ContentPlaceHolder runat="server" ID="FeaturedContent" />
<section class="content-wrapper main-content clear-fix">
<asp:ContentPlaceHolder runat="server" ID="MainContent" />
</section>
</div>
<footer>
<div class="content-wrapper">
<div class="float-left">
<p>© <%: DateTime.Now.Year %> - My ASP.NET Application</p>
</div>
</div>
</footer>
</form>
</body>
</html>
Default Page:
<%@ Page Title="Daftar Voucher Adhya Tirta Batam" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Voucher.aspx.cs" Inherits="Fleet.Contact" %>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
<hgroup class="title">
<h1><%: Title %></h1>
</hgroup>
<table align="center" style="width: 99%; margin-left: 0px; margin-right: 0px;">
<tr>
<td class="auto-style1">Kode Voucher</td>
<td class="auto-style3">
<asp:TextBox ID="TextBox1" runat="server" Width="300px"></asp:TextBox>
</td>
<td class="auto-style2">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator" Font-Bold="True" ForeColor="Red" ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="auto-style1">Kode SPBU</td>
<td class="auto-style3">
<asp:TextBox ID="TextBox2" runat="server" Width="300px"></asp:TextBox>
</td>
<td class="auto-style2">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="RequiredFieldValidator" Font-Bold="True" ForeColor="Red" ControlToValidate="TextBox2"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="auto-style1">NIK</td>
<td class="auto-style3">
<asp:TextBox ID="TextBox3" runat="server" Width="300px"></asp:TextBox>
</td>
<td class="auto-style2">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="RequiredFieldValidator" Font-Bold="True" ForeColor="Red" ControlToValidate="TextBox3"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="auto-style1">Nama</td>
<td class="auto-style3">
<asp:TextBox ID="TextBox4" runat="server" Width="300px"></asp:TextBox>
</td>
<td class="auto-style2">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="RequiredFieldValidator" Font-Bold="True" ForeColor="Red" ControlToValidate="TextBox4"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="auto-style1">Tanggal & Waktu</td>
<td class="auto-style3">
<asp:TextBox ID="TextBox5" runat="server" Width="160px"></asp:TextBox>
<asp:TextBox ID="TextBox6" runat="server" Width="130px"></asp:TextBox>
</td>
<td class="auto-style2">
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="RequiredFieldValidator" Font-Bold="True" ForeColor="Red" ControlToValidate="TextBox5"></asp:RequiredFieldValidator>
</td>
</tr>
<td class="auto-style1">KM Bacaan</td>
<td class="auto-style3">
<asp:TextBox ID="TextBox7" runat="server" Width="300px"></asp:TextBox>
</td>
<td class="auto-style2">
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="RequiredFieldValidator" Font-Bold="True" ForeColor="Red" ControlToValidate="TextBox7"></asp:RequiredFieldValidator>
</td>
<tr>
<td class="auto-style1"> </td>
<td class="auto-style3">
<asp:Button ID="Insert" runat="server" Text="Insert" />
<asp:Button ID="View" runat="server" Text="View" />
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" OkControlID="Close" PopupControlID="Panel1" TargetControlID="View" BackgroundCssClass="modalBackground"></asp:ModalPopupExtender>
</td>
<td class="auto-style2"> </td>
</tr>
</table>
<asp:Panel ID="Panel1" runat="server">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="KdVoucher" DataSourceID="SqlDataSource1" EmptyDataText="There are no data records to display." Width="670px">
<Columns>
<asp:BoundField DataField="KdVoucher" HeaderText="KdVoucher" ReadOnly="True" SortExpression="KdVoucher" />
<asp:BoundField DataField="KdSPBU" HeaderText="KdSPBU" SortExpression="KdSPBU" />
<asp:BoundField DataField="NIK" HeaderText="NIK" SortExpression="NIK" />
<asp:BoundField DataField="Nama" HeaderText="Nama" SortExpression="Nama" />
<asp:BoundField DataField="TglVoucher" HeaderText="TglVoucher" SortExpression="TglVoucher" />
<asp:BoundField DataField="WktVoucher" HeaderText="WktVoucher" SortExpression="WktVoucher" />
<asp:BoundField DataField="KMBacaan" HeaderText="KMBacaan" SortExpression="KMBacaan" />
</Columns>
</asp:GridView>
<asp:Button ID="Close" runat="server" Text="Close" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:fleetConnectionString1 %>" DeleteCommand="DELETE FROM [Voucher] WHERE [KdVoucher] = @KdVoucher" InsertCommand="INSERT INTO [Voucher] ([KdVoucher], [KdSPBU],
[NIK], [Nama], [TglVoucher], [WktVoucher], [KMBacaan]) VALUES (@KdVoucher, @KdSPBU, @NIK, @Nama, @TglVoucher, @WktVoucher, @KMBacaan)" ProviderName="<%$ ConnectionStrings:fleetConnectionString1.ProviderName %>" SelectCommand="SELECT [KdVoucher], [KdSPBU],
[NIK], [Nama], [TglVoucher], [WktVoucher], [KMBacaan] FROM [Voucher]" UpdateCommand="UPDATE [Voucher] SET [KdSPBU] = @KdSPBU, [NIK] = @NIK, [Nama] = @Nama, [TglVoucher] = @TglVoucher, [WktVoucher] = @WktVoucher, [KMBacaan] = @KMBacaan WHERE [KdVoucher] = @KdVoucher">
<DeleteParameters>
<asp:Parameter Name="KdVoucher" Type="Int32" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="KdVoucher" Type="Int32" />
<asp:Parameter Name="KdSPBU" Type="String" />
<asp:Parameter Name="NIK" Type="Int32" />
<asp:Parameter Name="Nama" Type="String" />
<asp:Parameter Name="TglVoucher" Type="String" />
<asp:Parameter DbType="Time" Name="WktVoucher" />
<asp:Parameter Name="KMBacaan" Type="Int32" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="KdSPBU" Type="String" />
<asp:Parameter Name="NIK" Type="Int32" />
<asp:Parameter Name="Nama" Type="String" />
<asp:Parameter Name="TglVoucher" Type="String" />
<asp:Parameter DbType="Time" Name="WktVoucher" />
<asp:Parameter Name="KMBacaan" Type="Int32" />
<asp:Parameter Name="KdVoucher" Type="Int32" />
</UpdateParameters>
</asp:SqlDataSource>
</asp:Panel>
</asp:Content>
<asp:Content ID="Content1" runat="server" contentplaceholderid="HeadContent">
<style type="text/css">
.auto-style1 {
text-align: left;
width: 107px;
}
.auto-style2 {
width: 168px;
}
.auto-style3 {
width: 316px;
}
</style>
</asp:Content>
Need Fast Reply cause My deadline on March 3 2015