TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
barkat ullah
NA
21
1.4k
how to print a form in which used label and tex tbox
Dec 2 2019 12:54 AM
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="StyleSheet.css" rel="stylesheet" />
<link href="bootsrap/css/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
<form id="form1" runat="server">
<div class="container">
<div class="row text-center">
<img src="download.jpg" />
</div>
<div class="row" style="margin-bottom:28px">
<div class="col" style="background-color: aqua;">
<h1>WSSP POOL CAR FORM</h1>
</div>
</div>
<div class=" row text-center" style="margin-bottom:28px">
<div class="col-2">
<asp:Label ID="Label1" runat="server" Text="Vehicl Requested By:" Font-Bold="True"></asp:Label>
</div>
<div class="col-4">
<asp:TextBox ID="vehiclerequestTextBox" CssClass="form-control" placeholder="Vehicle Requested By" runat="server" Font-Bold="True"></asp:TextBox>
</div>
<div class="col-2">
<asp:Label ID="Label2" runat="server" Text="Date:" Font-Bold="True"></asp:Label>
</div>
<div class="col-4">
<asp:TextBox ID="dateTextBox" CssClass="form-control" placeholder="Please enter date" runat="server" Font-Bold="True" TextMode="Date"></asp:TextBox>
</div>
</div>
<%-- second row of the form--%>
<div class=" row text-center" style="margin-bottom:28px">
<div class="col-2">
<asp:Label ID="Label3" runat="server" Text="Designation::" Font-Bold="True"></asp:Label>
</div>
<div class="col-4">
<asp:TextBox ID="desinationTextBox" CssClass="form-control" placeholder="Designation:" runat="server"></asp:TextBox>
</div>
<div class="col-2">
<asp:Label ID="Label4" runat="server" Text="Section:" Font-Bold="True"></asp:Label>
</div>
<div class="col-4">
<asp:TextBox ID="sectionTextBox" CssClass="form-control" placeholder="Section:" runat="server"></asp:TextBox>
</div>
</div>
<%-- this is third row of the form--%>
<div class=" row text-center" style="margin-bottom:28px">
<div class="col-2">
<asp:Label ID="Label5" runat="server" Text="Location:" Font-Bold="True"></asp:Label>
</div>
<div class="col-4">
<asp:RadioButton ID="headofficeredbtn" runat="server" Text="Head office" Font-Bold="True" Checked="False" />
</div>
<div class="col-2">
</div>
<div class="col-4">
<asp:RadioButton ID="ZonalofficeRadioButton" runat="server" Text="Zonal office" Font-Bold="True" />
</div>
</div>
<%-- fourth row of the form--%>
<div class="row" style="margin-bottom:28px">
<div class="col-2">
<asp:Label ID="Label6" runat="server" Text="Purpose of the journey:" Font-Bold="True"></asp:Label>
</div>
<div class="col-10">
<asp:TextBox ID="journeypuposeTextBox" CssClass="form-control" placeholder="Purpose of the journey" runat="server"></asp:TextBox>
</div>
</div>
<%--this is fifth row of the form--%>
<div class="row" style="margin-bottom:28px">
<div class="col-2">
<asp:Label ID="Label7" runat="server" Text="Driver Alloted:" Font-Bold="True"></asp:Label>
</div>
<div class="col-4">
<asp:TextBox ID="driverallotedTextBox" CssClass="form-control" placeholder="Purpose of the journey" runat="server"></asp:TextBox>
</div>
<div class="col-6"></div>
</div>
<%--this is sixth row of the form--%>
<div class=" row text-center" style="margin-bottom:28px">
<div class="col-2">
<asp:Label ID="Label8" runat="server" Text="Vehicle:" Font-Bold="True"></asp:Label>
</div>
<div class="col-4">
<asp:TextBox ID="vehiclleTextBox" CssClass="form-control" placeholder="Vehicle:" runat="server"></asp:TextBox>
</div>
<div class="col-2">
<asp:Label ID="Label9" runat="server" Text="Registration No:" Font-Bold="True"></asp:Label>
</div>
<div class="col-4">
<asp:TextBox ID="registrationnoTextBox" CssClass="form-control" placeholder="Registration No:" runat="server"></asp:TextBox>
</div>
</div>
<%--this is seventh row of the form--%>
<div class=" row text-center"style="margin-bottom:28px">
<div class="col-2">
<asp:Label ID="Label10" runat="server" Text="Time in:" Font-Bold="True"></asp:Label>
</div>
<div class="col-4">
<asp:TextBox ID="timeinTextBox" CssClass="form-control" placeholder="Time in" runat="server" TextMode="Time"></asp:TextBox>
</div>
<div class="col-2">
<asp:Label ID="Label11" runat="server" Text="Time out:" Font-Bold="True"></asp:Label>
</div>
<div class="col-4">
<asp:TextBox ID="timeoutTextBox" CssClass="form-control" placeholder="Time out" runat="server" TextMode="Time"></asp:TextBox>
</div>
</div>
<%-- this is eighth row of the form--%>
<div class="row text-center" style="margin-bottom:28px">
<div class="col-2">
<asp:Label ID="Label12" runat="server" Text="Reading before visiting:" Font-Bold="True"></asp:Label>
</div>
<div class="col-2">
<asp:TextBox ID="readingbeforeTextBox" CssClass="form-control" placeholder="Reading before visiting" runat="server"></asp:TextBox>
</div>
<div class="col-2">
<asp:Label ID="Label13" runat="server" Text="Reading after visting:" Font-Bold="True"></asp:Label>
</div>
<div class="col-2">
<asp:TextBox ID="readingafterTextBox" CssClass="form-control" placeholder="Reading after visting" runat="server"></asp:TextBox>
</div>
<div class="col-2">
<asp:Label ID="Label14" runat="server" Text="Total km's:" Font-Bold="True"></asp:Label>
</div>
<div class="col-2">
<asp:TextBox ID="totalkilometerTextBox" CssClass="form-control" placeholder="Total km's" runat="server"></asp:TextBox>
</div>
</div>
<%-- this is last row of the form--%>
<div class="row text-center" style="margin-bottom:100px">
<div class="col-2">
<asp:Label ID="Label15" runat="server" Text="Remarks:" Font-Bold="True"></asp:Label>
</div>
<div class="col-10">
<asp:TextBox ID="remarksTextBox" CssClass="form-control" placeholder="Remarks" runat="server"></asp:TextBox>
</div>
</div>
<%-- operation part--%>
<div class="row">
<div class="col-4">
</div>
<div class="col-2">
<asp:Button ID="Button1" runat="server" Text="Save" OnClick="saveButton_Click" CssClass="btn-danger" Height="60px" Width="65px" Font-Bold="True" />
</div>
<div class="col-2">
<asp:Button ID="nwebutton" runat="server" Text="New" OnClick="saveButton_Click" CssClass="btn-danger" Height="60px" Width="65px" Font-Bold="True" />
</div>
<div class="col-2">
<asp:Button ID="Button3" runat="server" Text="Print" OnClick="saveButton_Click" CssClass="btn-danger" Height="60px" Width="65px" Font-Bold="True" />
</div>
<br /><br /><br /><br /><br />
</div>
</div>
</form>
<script src="bootsrap/js/bootstrap.min.js"></script>
</body>
</html>
Reply
Answers (
1
)
Destructors in C# is automatically by .Net frame work ?
Get Connection With Specific SQL Database for different user