diff --git a/AboutUs.aspx b/AboutUs.aspx new file mode 100644 index 0000000..d4f90f4 --- /dev/null +++ b/AboutUs.aspx @@ -0,0 +1,23 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/BusBookingMaster.Master" AutoEventWireup="true" CodeBehind="AboutUs.aspx.cs" Inherits="BusBookingProject.AboutUs" %> + + + +
+
+
+
+

About Us

+
+
+
+

+ We are among top 10 Service Provider for Online Bus Booking in India, + We have our branches in all Major cities in India,Our Services are very fast + compare to other Online Portals.We works with Efficieny and provide a + good service Environment to our End Users,24*4 Support Facility is Available, + Each and every query is Resolved with in a Day. +

+
+
+
+
diff --git a/AboutUs.aspx.cs b/AboutUs.aspx.cs new file mode 100644 index 0000000..cd4c345 --- /dev/null +++ b/AboutUs.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace BusBookingProject +{ + public partial class AboutUs : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/AboutUs.aspx.designer.cs b/AboutUs.aspx.designer.cs new file mode 100644 index 0000000..fe4f78e --- /dev/null +++ b/AboutUs.aspx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace BusBookingProject +{ + + + public partial class AboutUs + { + } +} diff --git a/BookingReport.aspx b/BookingReport.aspx new file mode 100644 index 0000000..e2b7cc7 --- /dev/null +++ b/BookingReport.aspx @@ -0,0 +1,83 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/BusBookingMaster.Master" AutoEventWireup="true" CodeBehind="BookingReport.aspx.cs" Inherits="BusBookingProject.BookingReport" %> + + + +
+ + + + + <%# Container.DataItemIndex+1 %> + + + + + + + + Download Ticket + + + + + + +
+

Online Bus Booking

+
+
+ +

PNR Details

+
+ + + + + + + + + + + + + + + + + +
PNR No +
Total Tickets +
Total Amount +
Bus Name +
+
+
+
+

Passenger's Details

+ + + + + <%# Container.DataItemIndex+1 %> + + + + + + + + + + + + +
+
+

+ Thank you for booking Ticket with us,have a pleasant journey!!!! +

+
+
+
diff --git a/BookingReport.aspx.cs b/BookingReport.aspx.cs new file mode 100644 index 0000000..bcf17eb --- /dev/null +++ b/BookingReport.aspx.cs @@ -0,0 +1,143 @@ +using iTextSharp.text; +using iTextSharp.text.pdf; +using iTextSharp.tool.xml; +using System; +using System.Configuration; +using System.Data; +using System.Data.SqlClient; +using System.IO; +using System.Reflection; +using System.Text; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace BusBookingProject +{ + public partial class BookingReport : System.Web.UI.Page + { + #region Global Variable + SqlConnection connString = new SqlConnection(ConfigurationManager.ConnectionStrings["OnlineBusBookingConnectionString"].ToString()); + #endregion + protected void Page_Load(object sender, EventArgs e) + { + if(!IsPostBack) + { + if(Session["UserID"]!=null) + { + bindPnrDetails(); + //Request.QueryString["Message"] = ""; + if (Request.QueryString["Msg"] != null) + { + ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('" + Convert.ToString(Request.QueryString["Msg"]) + "')", true); + PropertyInfo isreadonly = + typeof(System.Collections.Specialized.NameValueCollection).GetProperty( + "IsReadOnly", BindingFlags.Instance | BindingFlags.NonPublic); + // make collection editable + isreadonly.SetValue(this.Request.QueryString, false, null); + // remove + this.Request.QueryString.Clear(); + } + } + else + { + Response.Redirect("Login.aspx"); + } + } + } + + + private void bindPnrDetails() + { + DataSet dsGetData = new DataSet(); + SqlCommand sqlCmd = new SqlCommand(); + if (connString.State == ConnectionState.Closed) + { + connString.Open(); + } + sqlCmd.CommandType = CommandType.StoredProcedure; + sqlCmd.Parameters.AddWithValue("@UserID",Convert.ToInt32(Session["UserID"])); + sqlCmd.CommandText = "ispGetPNRDetails"; + sqlCmd.Connection = connString; + SqlDataAdapter sda = new SqlDataAdapter(sqlCmd); + sda.Fill(dsGetData); + if (dsGetData.Tables != null) + { + gdTicketReport.DataSource = dsGetData.Tables[0]; + gdTicketReport.DataBind(); + } + else + { + gdTicketReport.DataSource = null; + gdTicketReport.EmptyDataText = "No Records Found"; + gdTicketReport.DataBind(); + } + } + + public override void VerifyRenderingInServerForm(Control control) + { + /*Tell the compiler that the control is rendered + * explicitly by overriding the VerifyRenderingInServerForm event.*/ + } + + private void printTicket(string transactionNo) + { + ticket.Visible = true; + DataSet dsGetData = new DataSet(); + SqlCommand sqlCmd = new SqlCommand(); + if (connString.State == ConnectionState.Closed) + { + connString.Open(); + } + sqlCmd.CommandType = CommandType.StoredProcedure; + sqlCmd.Parameters.AddWithValue("@PNRNo", transactionNo); + sqlCmd.CommandText = "GetPassengerDetails"; + sqlCmd.Connection = connString; + SqlDataAdapter sda = new SqlDataAdapter(sqlCmd); + sda.Fill(dsGetData); + gdPaxDetails.DataSource = dsGetData.Tables[0]; + gdPaxDetails.DataBind(); + lblTransactionNo.Text = Convert.ToString(dsGetData.Tables[1].Rows[0]["PNRNo"]); + lblBusName.Text = Convert.ToString(dsGetData.Tables[1].Rows[0]["BusName"]); + //lblDepartureTime.Text = Convert.ToString(dsGetData.Tables[1].Rows[0]["DeptTime"]); + lblTotalAmount.Text = Convert.ToString(dsGetData.Tables[1].Rows[0]["Amount"]); + lblTotalTickets.Text = Convert.ToString(dsGetData.Tables[1].Rows[0]["TotalTickets"]); + using (StringWriter sw = new StringWriter()) + { + using (HtmlTextWriter hw = new HtmlTextWriter(sw)) + { + StringBuilder sb = new StringBuilder(); + //generate header + //export html string as a pdf + ticket.RenderControl(hw); + //tbtPNR.RenderControl(hw); + // gdPaxDetails.RenderControl(hw); + StringReader sr = new StringReader(sw.ToString()); + Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 10f, 0); + PdfWriter writer = PdfWriter.GetInstance(pdfDoc, Response.OutputStream); + pdfDoc.Open(); + pdfDoc.NewPage(); + XMLWorkerHelper.GetInstance().ParseXHtml(writer, pdfDoc, sr); + pdfDoc.Close(); + Response.ContentType = "application/pdf"; + Response.AddHeader("content-disposition", "attachement;filename=Ticket" + ".pdf"); + Response.Cache.SetCacheability(HttpCacheability.NoCache); + Response.Write(pdfDoc); + Response.End(); + } + } + + } + + + protected void gdTicketReport_RowCommand(object sender, GridViewCommandEventArgs e) + { + if (e.CommandName == "Download Ticket") + { + int index = Convert.ToInt32(e.CommandArgument); + GridViewRow row = gdTicketReport.Rows[index]; + printTicket(row.Cells[1].Text); + } + } + } +} \ No newline at end of file diff --git a/BookingReport.aspx.designer.cs b/BookingReport.aspx.designer.cs new file mode 100644 index 0000000..e9d06ec --- /dev/null +++ b/BookingReport.aspx.designer.cs @@ -0,0 +1,87 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace BusBookingProject { + + + public partial class BookingReport { + + /// + /// gdTicketReport control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView gdTicketReport; + + /// + /// ticket control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl ticket; + + /// + /// tbtPNR control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlTable tbtPNR; + + /// + /// lblTransactionNo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblTransactionNo; + + /// + /// lblTotalTickets control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblTotalTickets; + + /// + /// lblTotalAmount control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblTotalAmount; + + /// + /// lblBusName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblBusName; + + /// + /// gdPaxDetails control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView gdPaxDetails; + } +} diff --git a/BusBookingMaster.Master b/BusBookingMaster.Master new file mode 100644 index 0000000..ab04ed2 --- /dev/null +++ b/BusBookingMaster.Master @@ -0,0 +1,69 @@ +<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="BusBookingMaster.master.cs" Inherits="BusBookingProject.BusBookingMaster" %> + + + + + + On Line Bus Booking + + + + + + + +
+ +
+ + +
+ +
+ + + + + diff --git a/BusBookingMaster.Master.cs b/BusBookingMaster.Master.cs new file mode 100644 index 0000000..b573835 --- /dev/null +++ b/BusBookingMaster.Master.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace BusBookingProject +{ + public partial class BusBookingMaster : System.Web.UI.MasterPage + { + protected void Page_Load(object sender, EventArgs e) + { + if(Session["FName"] !=null) + { + lblName.Text = Convert.ToString(Session["FName"]); + } + + } + + protected void btnLogout_Click(object sender, EventArgs e) + { + Session.Abandon(); + Response.Redirect("Login.aspx"); + } + + } +} \ No newline at end of file diff --git a/BusBookingMaster.Master.designer.cs b/BusBookingMaster.Master.designer.cs new file mode 100644 index 0000000..5aeb7fe --- /dev/null +++ b/BusBookingMaster.Master.designer.cs @@ -0,0 +1,96 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace BusBookingProject { + + + public partial class BusBookingMaster { + + /// + /// head control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ContentPlaceHolder head; + + /// + /// form1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// A2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlAnchor A2; + + /// + /// lnkDashboard control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlAnchor lnkDashboard; + + /// + /// linkRegister control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlAnchor linkRegister; + + /// + /// linkLogin control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlAnchor linkLogin; + + /// + /// lblName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblName; + + /// + /// btnLogout control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnLogout; + + /// + /// ContentPlaceHolder1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ContentPlaceHolder ContentPlaceHolder1; + } +} diff --git a/BusBookingProject.csproj b/BusBookingProject.csproj new file mode 100644 index 0000000..0bbf9e7 --- /dev/null +++ b/BusBookingProject.csproj @@ -0,0 +1,321 @@ + + + + + Debug + AnyCPU + + + 2.0 + {42A5219E-0AD8-4C83-80AD-38AC3A17399C} + {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + BusBookingProject + BusBookingProject + v4.5 + true + + + + + + + + + true + full + false + bin\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\ + TRACE + prompt + 4 + + + + ..\..\PayouFinalCopy12March\PayouWithDMR&BusBooking\PayouWebapp\bin\itextsharp.dll + + + ..\..\PayouFinalCopy12March\PayouWithDMR&BusBooking\PayouWebapp\bin\itextsharp.xmlworker.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Web.config + + + Web.config + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Designer + + + + + AboutUs.aspx + ASPXCodeBehind + + + AboutUs.aspx + + + Admin.Master + ASPXCodeBehind + + + Admin.Master + + + AdminLogin.aspx + ASPXCodeBehind + + + AdminLogin.aspx + + + BoardingDetails.aspx + ASPXCodeBehind + + + BoardingDetails.aspx + + + BookingReport.aspx + ASPXCodeBehind + + + BookingReport.aspx + + + BusDetails.aspx + ASPXCodeBehind + + + BusDetails.aspx + + + BusDetailsReport.aspx + ASPXCodeBehind + + + BusDetailsReport.aspx + + + BusScheduleDetails.aspx + ASPXCodeBehind + + + BusScheduleDetails.aspx + + + Default.aspx + ASPXCodeBehind + + + Default.aspx + + + RouteDetails.aspx + ASPXCodeBehind + + + RouteDetails.aspx + + + BookingReport.aspx + ASPXCodeBehind + + + BookingReport.aspx + + + BusBookingMaster.Master + ASPXCodeBehind + + + BusBookingMaster.Master + + + BusBookingReport.aspx + ASPXCodeBehind + + + BusBookingReport.aspx + + + BusBookingSearchDetails.aspx + ASPXCodeBehind + + + BusBookingSearchDetails.aspx + + + Default.aspx + ASPXCodeBehind + + + Default.aspx + + + Home.aspx + ASPXCodeBehind + + + Home.aspx + + + Login.aspx + ASPXCodeBehind + + + Login.aspx + + + PassengerDetailsInfo.aspx + ASPXCodeBehind + + + PassengerDetailsInfo.aspx + + + + SeatDetails.aspx + ASPXCodeBehind + + + SeatDetails.aspx + + + UserRegistration.aspx + ASPXCodeBehind + + + UserRegistration.aspx + + + + + + + + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + + + + + + True + True + 1778 + / + http://localhost:1778/ + False + False + + + False + + + + + + \ No newline at end of file diff --git a/BusBookingProject.csproj.user b/BusBookingProject.csproj.user new file mode 100644 index 0000000..3639990 --- /dev/null +++ b/BusBookingProject.csproj.user @@ -0,0 +1,38 @@ + + + + BusBooking + Debug|Any CPU + true + + + + + + + + + + + + Default.aspx + SpecificPage + True + False + False + False + + + + + + + + + True + True + + + + + \ No newline at end of file diff --git a/BusBookingReport.aspx b/BusBookingReport.aspx new file mode 100644 index 0000000..967435d --- /dev/null +++ b/BusBookingReport.aspx @@ -0,0 +1,6 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/BusBookingMaster.Master" AutoEventWireup="true" CodeBehind="BusBookingReport.aspx.cs" Inherits="BusBookingProject.BusBookingReport" %> + + + + + diff --git a/BusBookingReport.aspx.cs b/BusBookingReport.aspx.cs new file mode 100644 index 0000000..ac0475e --- /dev/null +++ b/BusBookingReport.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace BusBookingProject +{ + public partial class BusBookingReport : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/BusBookingReport.aspx.designer.cs b/BusBookingReport.aspx.designer.cs new file mode 100644 index 0000000..34533d0 --- /dev/null +++ b/BusBookingReport.aspx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace BusBookingProject +{ + + + public partial class BusBookingReport + { + } +} diff --git a/BusBookingSearchDetails.aspx b/BusBookingSearchDetails.aspx new file mode 100644 index 0000000..e7fe1df --- /dev/null +++ b/BusBookingSearchDetails.aspx @@ -0,0 +1,45 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/BusBookingMaster.Master" AutoEventWireup="true" CodeBehind="BusBookingSearchDetails.aspx.cs" Inherits="BusBookingProject.BusBookingSearchDetails" %> + + + +
+ Search Again + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Select Bus + + + + + + + +
+
diff --git a/BusBookingSearchDetails.aspx.cs b/BusBookingSearchDetails.aspx.cs new file mode 100644 index 0000000..ddf8ee1 --- /dev/null +++ b/BusBookingSearchDetails.aspx.cs @@ -0,0 +1,70 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace BusBookingProject +{ + public partial class BusBookingSearchDetails : System.Web.UI.Page + { + #region Global Variable + SqlConnection connString = new SqlConnection(ConfigurationManager.ConnectionStrings["OnlineBusBookingConnectionString"].ToString()); + #endregion + protected void Page_Load(object sender, EventArgs e) + { + if(!IsPostBack) + { + bindSearchDetails(); + } + } + + private void bindSearchDetails() + { + DataSet dsGetData = new DataSet(); + SqlCommand sqlCmd = new SqlCommand(); + if (connString.State == ConnectionState.Closed) + { + connString.Open(); + } + sqlCmd.CommandType = CommandType.StoredProcedure; + sqlCmd.Parameters.AddWithValue("@Origin",Convert.ToString(Request.QueryString["Origin"])); + sqlCmd.Parameters.AddWithValue("@Destination", Convert.ToString(Request.QueryString["Destination"])); + sqlCmd.Parameters.AddWithValue("@TravelDate",Convert.ToString(Request.QueryString["TravelDate"])); + sqlCmd.CommandText = "ispGetAvailableBusDetails"; + sqlCmd.Connection = connString; + SqlDataAdapter sda = new SqlDataAdapter(sqlCmd); + sda.Fill(dsGetData); + if(dsGetData.Tables[0].Rows.Count>0) + { + hlinkSearch.Visible = false; + gvBusDetails.DataSource = dsGetData.Tables[0]; + gvBusDetails.DataBind(); + } + else + { + ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Trip not available,Please search again with different date')", true); + hlinkSearch.Visible = true; + } + } + + protected void gvBusDetails_RowDataBound(object sender, GridViewRowEventArgs e) + { + if(e.Row.RowType==DataControlRowType.DataRow) + { + HiddenField hdnNewBusID = (HiddenField)e.Row.FindControl("hdnBusID"); + HiddenField hdnNewSeatRow = (HiddenField)e.Row.FindControl("hdnSeatRow"); + HiddenField hdnNewSeatCol = (HiddenField)e.Row.FindControl("hdnSeatColumn"); + HyperLink hlnkSelect = (HyperLink)e.Row.FindControl("hplnkSelect"); + Label lblFare = (Label)e.Row.FindControl("lblFare"); + hlnkSelect.NavigateUrl="SeatDetails.aspx?BusID=" + hdnNewBusID.Value + "&Row=" + hdnNewSeatRow.Value + "&Column=" + hdnNewSeatCol.Value+ + "&Origin=" + Request.QueryString["Origin"] + "&Destination=" + Request.QueryString["Destination"]+ + "&TravelDate=" + Request.QueryString["TravelDate"]+"&Fare="+lblFare.Text; + } + } + } +} \ No newline at end of file diff --git a/BusBookingSearchDetails.aspx.designer.cs b/BusBookingSearchDetails.aspx.designer.cs new file mode 100644 index 0000000..2c80452 --- /dev/null +++ b/BusBookingSearchDetails.aspx.designer.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace BusBookingProject { + + + public partial class BusBookingSearchDetails { + + /// + /// hlinkSearch control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink hlinkSearch; + + /// + /// gvBusDetails control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView gvBusDetails; + } +} diff --git a/Default.aspx b/Default.aspx new file mode 100644 index 0000000..3d1b97d --- /dev/null +++ b/Default.aspx @@ -0,0 +1,69 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/BusBookingMaster.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="BusBookingProject.Default" %> + + + +
+
+
+ +
+
+
+
+
+

Introduction About Online Bus Booking

+
+
+
+

+ Online Bus Booking System is Web Based application,That works with in centralised network,It Provides facility to + reserved seats,different type of enquiry which need an instant and quick reservation. + Buses may be used for scheduled bus transport, scheduled coach transport, school transport, private hire, + or tourism; promotional buses may be used for political campaigns and others are privately operated for a wide range of purposes, + including rock and pop band tour vehicles. +

+
+
+
+
+
+
+
+

Why Online Bus Booking is Important?

+
+
+
+
    +
  • + Fast & Easy Online bus booking. +
  • +
  • + Zero booking fees No Extra Charges for online booking. +
  • +
  • + 100 % Secure to book your bus tickets with Online Bus Booking System. +
  • +
  • + All Credit/Debit/Internet Banking Accepted. +
  • +
  • + Get tickets to your mobile. +
  • +
  • + Online cancellation and phone support available. +
  • +
  • + The fastest way to book bus tickets. +
  • +
  • + Book bus tickets online for Major routes across India. +
  • +
+ +
+
+
+ +
+
+
diff --git a/Default.aspx.cs b/Default.aspx.cs new file mode 100644 index 0000000..ecfbafd --- /dev/null +++ b/Default.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace BusBookingProject +{ + public partial class Default : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/Default.aspx.designer.cs b/Default.aspx.designer.cs new file mode 100644 index 0000000..08149c5 --- /dev/null +++ b/Default.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace BusBookingProject +{ + + + public partial class Default + { + + /// + /// imgBus control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Image imgBus; + } +} diff --git a/Home.aspx b/Home.aspx new file mode 100644 index 0000000..10fe50f --- /dev/null +++ b/Home.aspx @@ -0,0 +1,172 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/BusBookingMaster.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="BusBookingProject.Home" %> + + + + + + + + +
+
+
+ +
+
+

Search For Available Buses

+
+
+
+
+
+ + + +
+
+
+
+ + + +
+ +
+
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+
+ + diff --git a/Home.aspx.cs b/Home.aspx.cs new file mode 100644 index 0000000..8b3cdfe --- /dev/null +++ b/Home.aspx.cs @@ -0,0 +1,75 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace BusBookingProject +{ + public partial class Home : System.Web.UI.Page + { + #region Global Variable + SqlConnection connString = new SqlConnection(ConfigurationManager.ConnectionStrings["OnlineBusBookingConnectionString"].ToString()); + #endregion + protected void Page_Load(object sender, EventArgs e) + { + if(!IsPostBack) + { + + bindOriginCity(); + bindDextinationCity(); + } + } + + private void bindOriginCity() + { + DataSet dsOrigin = getCity(); + if(dsOrigin.Tables[0].Rows.Count>0) + { + ddlOrigin.DataSource = dsOrigin.Tables[0]; + ddlOrigin.DataTextField = "CityName"; + ddlOrigin.DataValueField = "CityName"; + ddlOrigin.DataBind(); + } + ddlOrigin.Items.Insert(0, new ListItem("-Select City--","0")); + } + + private void bindDextinationCity() + { + DataSet dsOrigin = getCity(); + if (dsOrigin.Tables[0].Rows.Count > 0) + { + ddlDestination.DataSource = dsOrigin.Tables[0]; + ddlDestination.DataTextField = "CityName"; + ddlDestination.DataValueField = "CityName"; + ddlDestination.DataBind(); + } + ddlDestination.Items.Insert(0, new ListItem("-Select City--", "0")); + } + + private DataSet getCity() + { + DataSet dsGetData = new DataSet(); + SqlCommand sqlCmd = new SqlCommand(); + if (connString.State == ConnectionState.Closed) + { + connString.Open(); + } + sqlCmd.CommandType = CommandType.StoredProcedure; + sqlCmd.CommandText = "ispGetCity"; + sqlCmd.Connection = connString; + SqlDataAdapter sda = new SqlDataAdapter(sqlCmd); + sda.Fill(dsGetData); + return dsGetData; + } + + protected void btnSearch_Click(object sender, EventArgs e) + { + Response.Redirect("BusBookingSearchDetails.aspx?Origin="+ddlOrigin.SelectedItem.Text+"&Destination="+ddlDestination.SelectedItem.Text+"&TravelDate="+txtDate.Text); + } + } +} \ No newline at end of file diff --git a/Home.aspx.designer.cs b/Home.aspx.designer.cs new file mode 100644 index 0000000..e4b12af --- /dev/null +++ b/Home.aspx.designer.cs @@ -0,0 +1,87 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace BusBookingProject { + + + public partial class Home { + + /// + /// divMessage control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divMessage; + + /// + /// lblAccType control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblAccType; + + /// + /// ddlOrigin control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlOrigin; + + /// + /// Label1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label Label1; + + /// + /// ddlDestination control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlDestination; + + /// + /// lblDate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblDate; + + /// + /// txtDate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtDate; + + /// + /// btnSearch control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnSearch; + } +} diff --git a/Login.aspx b/Login.aspx new file mode 100644 index 0000000..63852c5 --- /dev/null +++ b/Login.aspx @@ -0,0 +1,80 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/BusBookingMaster.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="BusBookingProject.Login" %> + + + + +
+
+
+
+
+
+ Sign In +
+
+
+
+
+ +
+
+ + +
+
+
+ + + +
+
+
+ +
+
+ +
+
+
+
+
+
+
diff --git a/Login.aspx.cs b/Login.aspx.cs new file mode 100644 index 0000000..4e158b4 --- /dev/null +++ b/Login.aspx.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace BusBookingProject +{ + public partial class Login : System.Web.UI.Page + { + #region Global Variable + SqlConnection connString = new SqlConnection(ConfigurationManager.ConnectionStrings["OnlineBusBookingConnectionString"].ToString()); + #endregion + protected void Page_Load(object sender, EventArgs e) + { + + } + + private DataSet getUserData() + { + DataSet dsGetData = new DataSet(); + SqlCommand sqlCmd = new SqlCommand(); + if(connString.State==ConnectionState.Closed) + { + connString.Open(); + } + sqlCmd.CommandType = CommandType.StoredProcedure; + sqlCmd.Parameters.AddWithValue("@MobileNo", Convert.ToString(txtUserId.Text)); + sqlCmd.Parameters.AddWithValue("@Password",Convert.ToString(txtPassword.Text)); + sqlCmd.CommandText = "ispUserLogin"; + sqlCmd.Connection = connString; + SqlDataAdapter sda = new SqlDataAdapter(sqlCmd); + sda.Fill(dsGetData); + return dsGetData; + + } + protected void btnLogin_Click(object sender, EventArgs e) + { + DataSet dsLogin = getUserData(); + if(dsLogin.Tables[0].Rows.Count>0) + { + Session["UserID"] = Convert.ToInt32(dsLogin.Tables[0].Rows[0]["regId"]); + Session["FName"] = Convert.ToString(dsLogin.Tables[0].Rows[0]["Fname"]); + Session["MobileNo"] = Convert.ToString(dsLogin.Tables[0].Rows[0]["Contact"]); + if(Request.QueryString["BusID"]!=null) + { + Response.Redirect("PassengerDetailsInfo.aspx?BusID=" + Request.QueryString["BusID"] + "&SeatNo=" + Request.QueryString["SeatNo"] + "&TravelDate=" + Request.QueryString["TravelDate"] + + "&Origin=" + Request.QueryString["Origin"] + "&Destination=" + Request.QueryString["Destination"] + "&BoardingID=" + Request.QueryString["BoardingID"] + "&Fare=" + Request.QueryString["Fare"]); + } + else + { + Response.Redirect("Home.aspx"); + } + + } + else + { + ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Invalid Credentials Passed,Please check your username and Password')", true); + } + } + } +} \ No newline at end of file diff --git a/Login.aspx.designer.cs b/Login.aspx.designer.cs new file mode 100644 index 0000000..9b25356 --- /dev/null +++ b/Login.aspx.designer.cs @@ -0,0 +1,87 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace BusBookingProject { + + + public partial class Login { + + /// + /// lblErrorMsg control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblErrorMsg; + + /// + /// vsLogin control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ValidationSummary vsLogin; + + /// + /// txtUserId control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtUserId; + + /// + /// rfvLoginId control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvLoginId; + + /// + /// txtPassword control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtPassword; + + /// + /// rfvPassword control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvPassword; + + /// + /// RememberMe control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox RememberMe; + + /// + /// btnLogin control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnLogin; + } +} diff --git a/PassengerDetailsInfo.aspx b/PassengerDetailsInfo.aspx new file mode 100644 index 0000000..230828a --- /dev/null +++ b/PassengerDetailsInfo.aspx @@ -0,0 +1,105 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/BusBookingMaster.Master" AutoEventWireup="true" CodeBehind="PassengerDetailsInfo.aspx.cs" Inherits="BusBookingProject.PassengerDetailsInfo" %> + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+

Card Details For Payment

+
+
+ +
+
+
+ + + + + + +
+
+
+ + + + + + + + + +
+
+
+
+
+ + +
+
+ +
+ + +
+
+
+
+
+ +
+
+
+
+
+
+ diff --git a/PassengerDetailsInfo.aspx.cs b/PassengerDetailsInfo.aspx.cs new file mode 100644 index 0000000..ce18151 --- /dev/null +++ b/PassengerDetailsInfo.aspx.cs @@ -0,0 +1,331 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace BusBookingProject +{ + public partial class PassengerDetailsInfo : System.Web.UI.Page + { + private static Random random = new Random(); + #region Global Variable + SqlConnection connString = new SqlConnection(ConfigurationManager.ConnectionStrings["OnlineBusBookingConnectionString"].ToString()); + #endregion + protected void Page_Load(object sender, EventArgs e) + { + if(!IsPostBack) + { + if(Session["UserID"] !=null) + { + paymentMode.Visible = false; + ViewState["Count"] = 1; + SetInitialRow(); + } + else + { + string Url = "PassengerDetailsInfo.aspx"; + Response.Redirect("Login.aspx?Url=" + Url); + } + } + } + + public static string RandomGenerareOTP(int length) + { + const string chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + return new string(Enumerable.Repeat(chars, length) + .Select(s => s[random.Next(s.Length)]).ToArray()); + } + private void SetInitialRow() + { + DataTable dt = new DataTable(); + DataRow dr = null; + + //Define the Columns + dt.Columns.Add(new DataColumn("RowNumber", typeof(string))); + dt.Columns.Add(new DataColumn("Column1", typeof(string))); + dt.Columns.Add(new DataColumn("Column2", typeof(string))); + dt.Columns.Add(new DataColumn("Column3", typeof(string))); + dt.Columns.Add(new DataColumn("Column4", typeof(string))); + dt.Columns.Add(new DataColumn("Column5", typeof(string))); + + //Add a Dummy Data on Initial Load + dr = dt.NewRow(); + dr["RowNumber"] = 1; + dr["Column1"] = string.Empty; + dr["Column2"] = string.Empty; + dr["Column3"] = string.Empty; + dr["Column4"] = string.Empty; + dr["Column5"] = string.Empty; + dt.Rows.Add(dr); + + //Store the DataTable in ViewState + ViewState["CurrentTable"] = dt; + //Bind the DataTable to the Grid + gdPassengerDetails.DataSource = dt; + gdPassengerDetails.DataBind(); + + //Extract and Fill the DropDownList with Data + // DropDownList ddl2 = (DropDownList)gdPassengerDetails.Rows[0].Cells[2].FindControl("ddlGender"); + //FillDropDownList(ddl2); + } + + private void AddNewRowToGrid() + { + + if (ViewState["CurrentTable"] != null) + { + DataTable dtCurrentTable = (DataTable)ViewState["CurrentTable"]; + DataRow drCurrentRow = null; + + if (dtCurrentTable.Rows.Count > 0) + { + drCurrentRow = dtCurrentTable.NewRow(); + drCurrentRow["RowNumber"] = dtCurrentTable.Rows.Count + 1; + //add new row to DataTable + dtCurrentTable.Rows.Add(drCurrentRow); + //Store the current data to ViewState + ViewState["CurrentTable"] = dtCurrentTable; + + for (int i = 0; i < dtCurrentTable.Rows.Count - 1; i++) + { + //extract the DropDownList Selected Items + // DropDownList ddl1 = (DropDownList)Gridview1.Rows[i].Cells[1].FindControl("DropDownList1"); + TextBox FName = (TextBox)gdPassengerDetails.Rows[i].Cells[1].FindControl("txtFName"); + TextBox LName = (TextBox)gdPassengerDetails.Rows[i].Cells[2].FindControl("txtLName"); + TextBox Email = (TextBox)gdPassengerDetails.Rows[i].Cells[3].FindControl("txtEmail"); + TextBox Contact = (TextBox)gdPassengerDetails.Rows[i].Cells[4].FindControl("txtContact"); + TextBox City = (TextBox)gdPassengerDetails.Rows[i].Cells[5].FindControl("txtCity"); + //DropDownList ddl3 = (DropDownList)Gridview1.Rows[i].Cells[3].FindControl("DropDownList3"); + + // Update the DataRow with the DDL Selected Items + //dtCurrentTable.Rows[i]["Column1"] = ddl1.SelectedItem.Text; + dtCurrentTable.Rows[i]["Column1"] = FName.Text; + dtCurrentTable.Rows[i]["Column2"] = LName.Text; + dtCurrentTable.Rows[i]["Column3"] = Email.Text; + dtCurrentTable.Rows[i]["Column4"] = Contact.Text; + dtCurrentTable.Rows[i]["Column5"] = City.Text; + // dtCurrentTable.Rows[i]["Column3"] = ddl3.SelectedItem.Text; + + } + + //Rebind the Grid with the current data + gdPassengerDetails.DataSource = dtCurrentTable; + gdPassengerDetails.DataBind(); + } + } + else + { + Response.Write("ViewState is null"); + } + + //Set Previous Data on Postbacks + SetPreviousData(); + } + + private void SetPreviousData() + { + int rowIndex = 0; + if (ViewState["CurrentTable"] != null) + { + DataTable dt = (DataTable)ViewState["CurrentTable"]; + if (dt.Rows.Count > 0) + { + for (int i = 0; i < dt.Rows.Count; i++) + { + //Set the Previous Selected Items on Each DropDownList on Postbacks + // DropDownList ddl1 = (DropDownList)Gridview1.Rows[rowIndex].Cells[1].FindControl("DropDownList1"); + TextBox FName = (TextBox)gdPassengerDetails.Rows[rowIndex].Cells[1].FindControl("txtFName"); + TextBox LName = (TextBox)gdPassengerDetails.Rows[rowIndex].Cells[2].FindControl("txtLName"); + TextBox Email = (TextBox)gdPassengerDetails.Rows[rowIndex].Cells[3].FindControl("txtEmail"); + TextBox Contact = (TextBox)gdPassengerDetails.Rows[rowIndex].Cells[4].FindControl("txtContact"); + TextBox City = (TextBox)gdPassengerDetails.Rows[rowIndex].Cells[5].FindControl("txtCity"); + FName.Text = dt.Rows[i]["Column1"].ToString(); + LName.Text = dt.Rows[i]["Column2"].ToString(); + Email.Text = dt.Rows[i]["Column3"].ToString(); + Contact.Text = dt.Rows[i]["Column4"].ToString(); + City.Text = dt.Rows[i]["Column5"].ToString(); + //Fill the DropDownList with Data + //FillDropDownList(ddl1); + //FillDropDownList(ddl2); + // FillDropDownList(ddl3); + + //if (i < dt.Rows.Count - 1) + //{ + // //ddl1.ClearSelection(); + // //ddl1.Items.FindByText(dt.Rows[i]["Column1"].ToString()).Selected = true; + // ddl2.ClearSelection(); + // ddl2.Items.FindByText(dt.Rows[i]["Column2"].ToString()).Selected = true; + // // ddl3.ClearSelection(); + // //ddl3.Items.FindByText(dt.Rows[i]["Column3"].ToString()).Selected = true; + //} + rowIndex++; + } + } + } + } + protected void ButtonAdd_Click(object sender, EventArgs e) + { + ViewState["Count"] = Convert.ToInt32(ViewState["Count"]) + 1; + string seatNo = Convert.ToString(Request.QueryString["SeatNo"]); + string[] seatArray = seatNo.Split(',').Select(str => str.Trim()).ToArray(); + if (Convert.ToInt32(ViewState["Count"]) <= seatArray.Length) + { + AddNewRowToGrid(); + } + else + { + ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('you can not add passengers more than'+'" + seatArray.Length + "')", true); + } + } + + private void addPNRDetails(string PNRNo) + { + string newFare = Convert.ToString(Request.QueryString["Fare"]); + string[] fareArray = newFare.Split(',').Select(str => str.Trim()).ToArray(); + decimal amount = 0; + for (int i = 0; i < fareArray.Length; i++) + { + amount += Convert.ToDecimal(fareArray[i]); + } + SqlCommand sqlCmd = new SqlCommand(); + if (connString.State == ConnectionState.Closed) + { + connString.Open(); + } + sqlCmd.CommandType = CommandType.StoredProcedure; + sqlCmd.Parameters.AddWithValue("@PNRNo", PNRNo); + sqlCmd.Parameters.AddWithValue("@TotalAmount", Convert.ToDecimal(amount)); + sqlCmd.Parameters.AddWithValue("@TotalTicket", Convert.ToInt32(fareArray.Length)); + sqlCmd.Parameters.AddWithValue("@CreatedBy", Convert.ToInt32(Session["UserID"])); + sqlCmd.CommandText = "ispAddPNRDetails"; + sqlCmd.Connection = connString; + sqlCmd.ExecuteNonQuery(); + } + private int getBook() + { + int ResultCout = 0; + string seatNo = Convert.ToString(Request.QueryString["SeatNo"]); + string[] seatArray = seatNo.Split(',').Select(str => str.Trim()).ToArray(); + int count=(seatArray.Length)-(gdPassengerDetails.Rows.Count); + if(gdPassengerDetails.Rows.Count str.Trim()).ToArray(); + SqlCommand sqlCmd = new SqlCommand(); + if (connString.State == ConnectionState.Closed) + { + connString.Open(); + } + sqlCmd.CommandType = CommandType.StoredProcedure; + sqlCmd.Parameters.Add("@RegId", SqlDbType.Int); + sqlCmd.Parameters.Add("@BusId", SqlDbType.Int); + sqlCmd.Parameters.Add("@Fname", SqlDbType.VarChar, 50); + sqlCmd.Parameters.Add("@Lname", SqlDbType.VarChar, 50); + sqlCmd.Parameters.Add("@Email", SqlDbType.VarChar, 50); + sqlCmd.Parameters.Add("@Contact", SqlDbType.VarChar, 50); + sqlCmd.Parameters.Add("@City", SqlDbType.VarChar, 50); + sqlCmd.Parameters.Add("@SeatNo", SqlDbType.NVarChar, 50); + sqlCmd.Parameters.Add("@TravelDate", SqlDbType.VarChar, 50); + sqlCmd.Parameters.Add("@Origin", SqlDbType.VarChar, 50); + sqlCmd.Parameters.Add("@Destination", SqlDbType.VarChar, 50); + sqlCmd.Parameters.Add("@BoardingId", SqlDbType.Int); + sqlCmd.Parameters.Add("@Fare", SqlDbType.Decimal); + sqlCmd.Parameters.Add("@TotalSeats", SqlDbType.BigInt); + sqlCmd.Parameters.Add("@PNRNo", SqlDbType.VarChar, 50); + for (int i = 0; i < seatArray.Length; i++) + { + sqlCmd.Parameters[0].Value = Convert.ToInt32(Session["UserID"]); + sqlCmd.Parameters[1].Value = Convert.ToInt32(Request.QueryString["BusID"]); + TextBox Fname = (TextBox)gdPassengerDetails.Rows[i].Cells[1].FindControl("txtFName"); + TextBox Lname = (TextBox)gdPassengerDetails.Rows[i].Cells[2].FindControl("txtLName"); + TextBox Email = (TextBox)gdPassengerDetails.Rows[i].Cells[3].FindControl("txtEmail"); + TextBox Contact = (TextBox)gdPassengerDetails.Rows[i].Cells[4].FindControl("txtContact"); + TextBox City = (TextBox)gdPassengerDetails.Rows[i].Cells[5].FindControl("txtCity"); + sqlCmd.Parameters[2].Value = Convert.ToString(Fname.Text); + sqlCmd.Parameters[3].Value = Convert.ToString(Lname.Text); + sqlCmd.Parameters[4].Value = Convert.ToString(Email.Text); + sqlCmd.Parameters[5].Value = Convert.ToString(Contact.Text); + sqlCmd.Parameters[6].Value = Convert.ToString(City.Text); + sqlCmd.Parameters[7].Value = Convert.ToString(seatArray[i]); + sqlCmd.Parameters[8].Value = Convert.ToString(travelDate); + sqlCmd.Parameters[9].Value = Convert.ToString(Origin); + sqlCmd.Parameters[10].Value = Convert.ToString(Destination); + sqlCmd.Parameters[11].Value = Convert.ToInt32(Request.QueryString["BoardingID"]); + sqlCmd.Parameters[12].Value = Convert.ToDecimal(fareArray[i]); + sqlCmd.Parameters[13].Value = Convert.ToDecimal(fareArray[i].Length); + sqlCmd.Parameters[14].Value = Convert.ToString(PNRNO); + sqlCmd.CommandText = "ispAddPassengerDetails"; + sqlCmd.Connection = connString; + ResultCout = sqlCmd.ExecuteNonQuery(); + + } + + } + return ResultCout; + } + + protected void btnConirmBooking_Click(object sender, EventArgs e) + { + paymentMode.Visible = true; + } + + + private void addCardDetails() + { + + string newFare = Convert.ToString(Request.QueryString["Fare"]); + string[] fareArray = newFare.Split(',').Select(str => str.Trim()).ToArray(); + decimal amount=0; + for(int i=0;i +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace BusBookingProject { + + + public partial class PassengerDetailsInfo { + + /// + /// gdPassengerDetails control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView gdPassengerDetails; + + /// + /// btnConirmBooking control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnConirmBooking; + + /// + /// paymentMode control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl paymentMode; + + /// + /// vsRegister control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ValidationSummary vsRegister; + + /// + /// divMessage control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divMessage; + + /// + /// lblCardType control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblCardType; + + /// + /// ddlCardType control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlCardType; + + /// + /// rfvFirstName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvFirstName; + + /// + /// lblBankName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblBankName; + + /// + /// ddlBank control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlBank; + + /// + /// rfVMobileNo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator rfVMobileNo; + + /// + /// lblLastName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblLastName; + + /// + /// txtCode control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtCode; + + /// + /// rfVLastName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator rfVLastName; + + /// + /// lblPassword control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblPassword; + + /// + /// txtCardNo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtCardNo; + + /// + /// rfvPassword control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvPassword; + + /// + /// btnSave control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnSave; + } +} diff --git a/SeatDetails.aspx b/SeatDetails.aspx new file mode 100644 index 0000000..b1e0d58 --- /dev/null +++ b/SeatDetails.aspx @@ -0,0 +1,370 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/BusBookingMaster.Master" AutoEventWireup="true" CodeBehind="SeatDetails.aspx.cs" Inherits="BusBookingProject.SeatDetails" %> + + + + + + +
+
+
+

Choose seats by clicking the corresponding seat in the layout below:

+
+ +
+
+
+
+ + + + + + +
Front +
+
    +
+
+
Rear
+ +
+
    +
  • Available Seat
  • +
  • Booked Seat
  • +
  • Selected Seat
  • +
+
+
+ + +
+
+
+
+
+
+

Journey Details

+
+
+
+ Onward Journey + From + + To +
+ on +
+
+
+ + + + + + + + + + + + + + <%-- --%> + + + + + <%-- --%> + +
Selected Seat No + <%-- --%> +
Per Seat Fare + +
Amount + +
+
+
+ +
+
+ +
+
+ +
+
+
+
+
+ + +
+
diff --git a/SeatDetails.aspx.cs b/SeatDetails.aspx.cs new file mode 100644 index 0000000..25c8245 --- /dev/null +++ b/SeatDetails.aspx.cs @@ -0,0 +1,98 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace BusBookingProject +{ + public partial class SeatDetails : System.Web.UI.Page + { + #region Global Variable + SqlConnection connString = new SqlConnection(ConfigurationManager.ConnectionStrings["OnlineBusBookingConnectionString"].ToString()); + #endregion + protected void Page_Load(object sender, EventArgs e) + { + if(!IsPostBack) + { + lblForm.Text = Convert.ToString(Request.QueryString["Origin"]); + lblTo.Text = Convert.ToString(Request.QueryString["Destination"]); + DateTime dtNEw =DateTime.ParseExact(Convert.ToString(Request.QueryString["TravelDate"]),"dd/MM/yyyy",null); + lbldate.Text = String.Format("{0:ddd,d MMM,yyyy}", dtNEw); + bingBoardigPoints(); + string bookedSeatNo = ""; + DataTable dt = getBookedSeat(); + foreach(DataRow dr in dt.Rows) + { + bookedSeatNo+= Convert.ToString(dr["SeatNo"])+","; + } + Page.ClientScript.RegisterStartupScript(this.GetType(), "paramFN1", "getSeatLayout('" + Convert.ToInt32(Request.QueryString["Row"]) + "','" + Convert.ToInt32(Request.QueryString["Column"]) + "','" + bookedSeatNo + "','" + Convert.ToDecimal(Request.QueryString["Fare"]) + "');", true); + } + } + + + private void bingBoardigPoints() + { + DataTable dsGetData = new DataTable(); + SqlCommand sqlCmd = new SqlCommand(); + if (connString.State == ConnectionState.Closed) + { + connString.Open(); + } + sqlCmd.CommandType = CommandType.StoredProcedure; + sqlCmd.Parameters.AddWithValue("@BusID", Convert.ToInt32(Request.QueryString["BusID"])); + sqlCmd.CommandText = "ispGetBoardingPoints"; + sqlCmd.Connection = connString; + SqlDataAdapter sda = new SqlDataAdapter(sqlCmd); + sda.Fill(dsGetData); + if(dsGetData.Rows.Count>0) + { + dsGetData.Columns.Add(new DataColumn("Value", System.Type.GetType("System.String"), "PlaceName + ' - ' + PlaceTime")); + ddlBoardingpoints.DataSource = dsGetData; + ddlBoardingpoints.DataTextField = "Value"; + ddlBoardingpoints.DataValueField = "StandId"; + ddlBoardingpoints.DataBind(); + } + ddlBoardingpoints.Items.Insert(0, new ListItem("Select Boarding Points", "0")); + } + + private DataTable getBookedSeat() + { + DataTable dt = new DataTable(); + SqlCommand sqlCmd = new SqlCommand(); + if (connString.State == ConnectionState.Closed) + { + connString.Open(); + } + sqlCmd.CommandType = CommandType.StoredProcedure; + sqlCmd.Parameters.AddWithValue("@BusID", Convert.ToInt32(Request.QueryString["BusID"])); + sqlCmd.Parameters.AddWithValue("@TravelDate", Convert.ToString(Request.QueryString["TravelDate"])); + sqlCmd.CommandText = "ispGetBookedSeatNo"; + sqlCmd.Connection = connString; + SqlDataAdapter sda = new SqlDataAdapter(sqlCmd); + sda.Fill(dt); + return dt; + } + + protected void btnPayment_Click(object sender, EventArgs e) + { + lblSelectedSeat.Text = Request.Form[hdnSeatNo.UniqueID]; + lblPerSeat.Text = Request.Form[hdnFare.UniqueID]; + if(Session["UserID"]!=null) + { + Response.Redirect("PassengerDetailsInfo.aspx?BusID=" + Request.QueryString["BusID"] + "&SeatNo=" + lblSelectedSeat.Text + "&TravelDate=" + Request.QueryString["TravelDate"] + + "&Origin=" + Request.QueryString["Origin"] + "&Destination=" + Request.QueryString["Destination"] + "&BoardingID=" + ddlBoardingpoints.SelectedValue + "&Fare=" + lblPerSeat.Text); + } + else + { + Response.Redirect("Login.aspx?BusID=" + Request.QueryString["BusID"] + "&SeatNo=" + lblSelectedSeat.Text + "&TravelDate=" + Request.QueryString["TravelDate"] + + "&Origin=" + Request.QueryString["Origin"] + "&Destination=" + Request.QueryString["Destination"] + "&BoardingID=" + ddlBoardingpoints.SelectedValue + "&Fare=" + lblPerSeat.Text); + } + + } + } +} \ No newline at end of file diff --git a/SeatDetails.aspx.designer.cs b/SeatDetails.aspx.designer.cs new file mode 100644 index 0000000..bb9e60f --- /dev/null +++ b/SeatDetails.aspx.designer.cs @@ -0,0 +1,168 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace BusBookingProject { + + + public partial class SeatDetails { + + /// + /// hrefBackUrl control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlAnchor hrefBackUrl; + + /// + /// lblForm control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblForm; + + /// + /// lblTo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblTo; + + /// + /// lbldate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lbldate; + + /// + /// lblSelectedSeat control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblSelectedSeat; + + /// + /// hdnSeatNo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hdnSeatNo; + + /// + /// hdnSeatCount control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hdnSeatCount; + + /// + /// hdnSeatTypeID control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hdnSeatTypeID; + + /// + /// hdnFare control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hdnFare; + + /// + /// hdnTotalFare control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hdnTotalFare; + + /// + /// lblPerSeat control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblPerSeat; + + /// + /// lbltotal control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lbltotal; + + /// + /// lblBoardingPoint control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblBoardingPoint; + + /// + /// ddlBoardingpoints control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlBoardingpoints; + + /// + /// lblDroppingPoints control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblDroppingPoints; + + /// + /// ddlDroppingpoints control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlDroppingpoints; + + /// + /// btnPayment control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnPayment; + } +} diff --git a/UserRegistration.aspx b/UserRegistration.aspx new file mode 100644 index 0000000..2d547a5 --- /dev/null +++ b/UserRegistration.aspx @@ -0,0 +1,87 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/BusBookingMaster.Master" AutoEventWireup="true" CodeBehind="UserRegistration.aspx.cs" Inherits="BusBookingProject.UserRegistration" %> + + + +
+
+
+
+
+
+

New User Registration

+
+
+ +
+
+
+ + +
+
+
+ + +
+
+
+
+
+ + +
+
+ +
+ + +
+
+
+
+
+ + +
+
+
+ + +
+
+
+
+
+ + +
+
+
+ + +
+
+
+
+
+ +
+
+
+
+ Login +
+
+
+
+
+
+ diff --git a/UserRegistration.aspx.cs b/UserRegistration.aspx.cs new file mode 100644 index 0000000..a8069c4 --- /dev/null +++ b/UserRegistration.aspx.cs @@ -0,0 +1,81 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace BusBookingProject +{ + public partial class UserRegistration : System.Web.UI.Page + { + #region Global Variable + SqlConnection connString = new SqlConnection(ConfigurationManager.ConnectionStrings["OnlineBusBookingConnectionString"].ToString()); + #endregion + protected void Page_Load(object sender, EventArgs e) + { + + } + + private int Regitration() + { + try + { + int ResultCout = 0; + SqlCommand sqlCmd = new SqlCommand(); + if (connString.State == ConnectionState.Closed) + { + connString.Open(); + } + sqlCmd.CommandType = CommandType.StoredProcedure; + sqlCmd.Parameters.AddWithValue("@FName", Convert.ToString(txtFirstName.Text)); + sqlCmd.Parameters.AddWithValue("@LName", Convert.ToString(txtLastName.Text)); + sqlCmd.Parameters.AddWithValue("@EmailId", Convert.ToString(txtEmailID.Text)); + sqlCmd.Parameters.AddWithValue("@Address", Convert.ToString(txtAddress.Text)); + sqlCmd.Parameters.AddWithValue("@City", Convert.ToString(txtCity.Text)); + sqlCmd.Parameters.AddWithValue("@PinCode", Convert.ToString(txtPincode.Text)); + sqlCmd.Parameters.AddWithValue("@ContactNo", Convert.ToString(txtMobileNo.Text)); + sqlCmd.Parameters.AddWithValue("@Password", Convert.ToString(txtPassword.Text)); + sqlCmd.Parameters.AddWithValue("@Ret_Val", SqlDbType.BigInt); + sqlCmd.Parameters["@Ret_Val"].Direction = ParameterDirection.Output; + sqlCmd.CommandText = "ispUserRegistration"; + sqlCmd.Connection = connString; + sqlCmd.ExecuteNonQuery(); + ResultCout = Convert.ToInt32(sqlCmd.Parameters["@Ret_Val"].Value); + return ResultCout; + } + catch (Exception ex) + { + throw; + } + } + protected void btnSave_Click(object sender, EventArgs e) + { + int RegistrationStatuis = 0; + RegistrationStatuis = Regitration(); + if(RegistrationStatuis>0) + { + ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('User Registration has been done successfully')", true); + } + else if(RegistrationStatuis==-1) + { + ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Mobile No already exist please try with another mobile no')", true); + } + else + { + ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Error Occur Please contact your system Administrator')", true); + } + txtFirstName.Text = ""; + txtLastName.Text = ""; + txtAddress.Text = ""; + txtMobileNo.Text = ""; + txtPincode.Text = ""; + txtCity.Text = ""; + txtPassword.Text = ""; + txtEmailID.Text = ""; + } + } +} \ No newline at end of file diff --git a/UserRegistration.aspx.designer.cs b/UserRegistration.aspx.designer.cs new file mode 100644 index 0000000..4d4e461 --- /dev/null +++ b/UserRegistration.aspx.designer.cs @@ -0,0 +1,258 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace BusBookingProject { + + + public partial class UserRegistration { + + /// + /// vsRegister control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ValidationSummary vsRegister; + + /// + /// divMessage control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divMessage; + + /// + /// lblFirstName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblFirstName; + + /// + /// txtFirstName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtFirstName; + + /// + /// rfvFirstName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvFirstName; + + /// + /// lblUserName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblUserName; + + /// + /// txtMobileNo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtMobileNo; + + /// + /// rfVMobileNo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator rfVMobileNo; + + /// + /// lblLastName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblLastName; + + /// + /// txtLastName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtLastName; + + /// + /// rfVLastName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator rfVLastName; + + /// + /// lblPassword control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblPassword; + + /// + /// txtPassword control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtPassword; + + /// + /// rfvPassword control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvPassword; + + /// + /// lblEmail control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblEmail; + + /// + /// txtEmailID control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtEmailID; + + /// + /// rfVEmail control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator rfVEmail; + + /// + /// lblAddress control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblAddress; + + /// + /// txtAddress control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtAddress; + + /// + /// rfVAddress control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator rfVAddress; + + /// + /// lblCity control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblCity; + + /// + /// txtCity control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtCity; + + /// + /// rfVCity control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator rfVCity; + + /// + /// lblPinCode control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblPinCode; + + /// + /// txtPincode control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtPincode; + + /// + /// rfvPinCode control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvPinCode; + + /// + /// btnSave control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnSave; + } +} diff --git a/Web.Debug.config b/Web.Debug.config new file mode 100644 index 0000000..24f336c --- /dev/null +++ b/Web.Debug.config @@ -0,0 +1,30 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Web.Release.config b/Web.Release.config new file mode 100644 index 0000000..a657981 --- /dev/null +++ b/Web.Release.config @@ -0,0 +1,31 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Web.config b/Web.config new file mode 100644 index 0000000..ab6c650 --- /dev/null +++ b/Web.config @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + \ No newline at end of file