Showing posts with label C#. Show all posts
Showing posts with label C#. Show all posts

Virtual Mart: ASP.NET Web Services with Web Portals.


Distributed Component Based Software Development by using ASP.NET Web Services and Web Portals.

Virtual Mart-Reservation Agent Portal

Goal: Implement a Virtual Marketplace.

The following entities play a role in the Virtual Marketplace:

• Agent: A portal, which allows passengers to search a route, reserve and cancel Air tickets on various Air Lines. Agent port also facilitates passengers to search hotels availability, reserve and cancel hotel reservations.

• Bank: Provides financial services to the its customers (Passenger, Agent, Airline, Hotel)

• Airline: Provides daily flying schedules for the Agents and accepts reservations from passengers.

• Hotel: Provides logging facilities (BB, HB, and FB) and accepts reservations from passengers.



Following diagram shows the high level architecture of the Virtual Market.
ScreenShot




Released Under MIT Licence 2012 Harsha Siriwardena

@authors: harshadura, chathu

Prequisities.

.NET Framework 3.5
MS Visual Studio 2008
MS Access

Notes.

This project consist with 3 C# SOAP Web Services with 4 ASP.NET Web Portals. Web Portals are depending on the Web Services. So first have to run all the required Web services and then run Web portals.

_______________
2012-October-28

This Project has been done for a partial fulfillment of Distributed Component Based Software Development Subject.



Screenshots of Agent Portal.








Basic Social Networking Web site using C# - ASP.NET

==================================
README - SLIIT COM SOCIAL NETWORK
==================================
Basic Social Networking system using C# - ASP.NET

-------------------------------------------------------
Feature Overview - TODO
-------------------------------------------------------
 
[DONE] 01.  Students should be able to get registered with the social network.
[DONE] 02.  They should be able to manage their own profiles.
[DONE] 03.  They should be able to share their posts and news on a public e-wall inside the site.
[DONE] 04.  They should be given privilege to manage the friend list.(add, modify and delete)
[SOME] 05.  Students can add students as friends but students can only follow the teachers.
[NOT-] 06.  Messaging and chat facility.
[DONE] 07.  Job bank (If there are vacancies students will be notified through the site)
[DONE] 08.  Event planner for the year.
[DONE] 09.  Students should be able to add educational applications to their profile.
[DONE] 10.  Login / Logout    

-------------------------------------------------------

Required Software
-------------------

[01] Dot Net Framework 3.5/4.0
[02] MS Visual Studio 2010/Web Developer Kit
[03] MS SQL Server 2010

-------------------------------------------------------

Notes.
-------
[01] Configure the MDF file inside App_Data to the SQL server.

-------------------------------------------------------

Regards, 
@harshadura


Screenshots of the System










Displaying Data from a SQL Server Database using ASP.NET



Reference : http://www.stardeveloper.com/articles/display.html?article=2002041001&page=3



<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Page Language="C#" %>

<script runat="server">
 protected void Page_Load(Object sender, EventArgs e) {
  SqlConnection con = null;
  SqlCommand cmd = null;
  
  try {
   con = new SqlConnection("server=localhost;uid=sa;" + 
    "pwd=;database=Stardeveloper");
   cmd = new SqlCommand("SELECT * FROM Names", con);
   
   con.Open();
   grid.DataSource = cmd.ExecuteReader();
   grid.DataBind();

  } catch (Exception err) {
   message.Text = "<p><font color=\"red\">Err: " + 
    err.Message + "</font></p>";
  } finally {
   if(con != null)
    con.Close();
  }
 }
</script>

<html>
<head>
 <style>
 body { font-family:Verdana; font-size:12pt; }
 </style>
</head>
<body>
 <asp:datagrid id="grid" runat="server" />
 <asp:label id="message" runat="server" />
</body>
</html>

Visual Studio C# - Cheat Sheet

Auto Format source code : Ctrl + K + D