Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 0b9f32278a8aa3effca7cef000995ef21cfcd0cb @harshadura committed May 19, 2012
Showing with 1,982 additions and 0 deletions.
  1. BIN 150x110.gif
  2. BIN 70x59.gif
  3. +16 −0 About.aspx
  4. +14 −0 About.aspx.cs
  5. +63 −0 App_Code/DataBaseClass.cs
  6. +44 −0 App_Code/WebService.cs
  7. BIN App_Data/SLIITComDB.mdf
  8. BIN App_Data/SLIITComDB_log.ldf
  9. +14 −0 Apps.aspx
  10. +14 −0 Apps.aspx.cs
  11. BIN Apps.swf
  12. BIN Bin/AjaxControlToolkit.dll
  13. BIN Bin/AjaxControlToolkit.dll.refresh
  14. BIN Bin/ar/AjaxControlToolkit.resources.dll
  15. BIN Bin/de/AjaxControlToolkit.resources.dll
  16. BIN Bin/dotnetgallery.lic
  17. BIN Bin/es/AjaxControlToolkit.resources.dll
  18. BIN Bin/fr/AjaxControlToolkit.resources.dll
  19. BIN Bin/he/AjaxControlToolkit.resources.dll
  20. BIN Bin/hi/AjaxControlToolkit.resources.dll
  21. BIN Bin/it/AjaxControlToolkit.resources.dll
  22. BIN Bin/ja/AjaxControlToolkit.resources.dll
  23. BIN Bin/ko/AjaxControlToolkit.resources.dll
  24. BIN Bin/pt/AjaxControlToolkit.resources.dll
  25. BIN Bin/ru/AjaxControlToolkit.resources.dll
  26. BIN Bin/zh-CHS/AjaxControlToolkit.resources.dll
  27. BIN Bin/zh-CHT/AjaxControlToolkit.resources.dll
  28. +49 −0 Controls/Footer.ascx
  29. +38 −0 Controls/Footer.ascx.cs
  30. +43 −0 Controls/GetUserScraps.ascx
  31. +53 −0 Controls/GetUserScraps.ascx.cs
  32. +27 −0 Controls/Header.ascx
  33. +68 −0 Controls/Header.ascx.cs
  34. +37 −0 Controls/UserFreindRequest.ascx
  35. +87 −0 Controls/UserFreindRequest.ascx.cs
  36. +30 −0 Controls/UserFriends.ascx
  37. +54 −0 Controls/UserFriends.ascx.cs
  38. +62 −0 CreateEvent.aspx
  39. +34 −0 CreateEvent.aspx.cs
  40. +3 −0 Default.aspx
  41. +14 −0 Default.aspx.cs
  42. +44 −0 EventPlanner.aspx
  43. +14 −0 EventPlanner.aspx.cs
  44. +12 −0 Games.aspx
  45. +14 −0 Games.aspx.cs
  46. +43 −0 Home.aspx
  47. +71 −0 Home.aspx.cs
  48. +36 −0 InternalMessaging.aspx
  49. +18 −0 InternalMessaging.aspx.cs
  50. +57 −0 JobAdmin.aspx
  51. +33 −0 JobAdmin.aspx.cs
  52. +44 −0 JobBank.aspx
  53. +14 −0 JobBank.aspx.cs
  54. BIN Logo.png
  55. +82 −0 MasterPage.master
  56. +14 −0 MasterPage.master.cs
  57. +40 −0 README.txt
  58. +98 −0 Register.aspx
  59. +87 −0 Register.aspx.cs
  60. +34 −0 SearchResult.aspx
  61. +54 −0 SearchResult.aspx.cs
  62. +92 −0 StyleSheet.css
  63. +85 −0 UserDetails.aspx
  64. +143 −0 UserDetails.aspx.cs
  65. BIN UserImage/1215565787.png
  66. BIN UserImage/1230048770.jpg
  67. BIN UserImage/1847114182.jpg
  68. BIN UserImage/1938868177.jpg
  69. BIN UserImage/799723029.jpg
  70. BIN UserImage/911353134.jpg
  71. BIN UserImage/935604602.jpg
  72. BIN UserImage/Rahul.jpg
  73. BIN UserImage/Thumbs.db
  74. BIN UserImage/gayan.png
  75. +1 −0 WebService.asmx
  76. BIN abt.png
  77. BIN bkgrnd_greydots.png
  78. +18 −0 defusedabomb.html
  79. BIN defusedabomb.swf
  80. BIN left_banner.jpg
  81. +18 −0 richmine.html
  82. BIN richmine.swf
  83. +52 −0 web.config
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN 70x59.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,16 @@
+<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
+ CodeFile="About.aspx.cs" Inherits="About" %>
+
+ <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
+ <center>
+ <table cellpadding="4" cellspacing="4" width="50%" align="center">
+ <tr>
+ <td align="center">
+ <h2>About Us.</h2>
+ <asp:Image ID="Image1" runat="server" ImageUrl="~/abt.png" />
+ </td>
+ </tr>
+ </table>
+ <br /><br />
+ </center>
+</asp:Content>
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+public partial class About : System.Web.UI.Page
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+}
@@ -0,0 +1,63 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Data;
+using System.Data.SqlClient;
+
+/// <summary>
+/// Summary description for DataBaseClass
+/// </summary>
+public class DataBaseClass
+{
+ SqlDataAdapter da;
+ SqlConnection con;
+ SqlCommand cmd = new SqlCommand();
+ DataSet ds = new DataSet();
+ DataTable dt = new DataTable();
+
+ public DataBaseClass()
+ {
+ //
+ // TODO: Add constructor logic here
+ //
+ }
+
+ public void ConnectDataBaseToInsert(string Query)
+ {
+ con = new SqlConnection(@"Data Source=HARSHA-HP\SQLEXPRESS; Initial Catalog=SLIITComDB; Integrated Security = true;");
+ cmd.CommandText = Query;
+ cmd.Connection = con;
+ da = new SqlDataAdapter(cmd);
+ con.Open();
+ cmd.ExecuteNonQuery();
+ con.Close();
+
+ }
+ public DataSet ConnectDataBaseReturnDS(string Query)
+ {
+ ds = new DataSet();
+ con = new SqlConnection(@"Data Source=HARSHA-HP\SQLEXPRESS; Initial Catalog=SLIITComDB; Integrated Security = true;");
+ cmd.CommandText = Query;
+ cmd.Connection = con;
+ da = new SqlDataAdapter(cmd);
+ da.Fill(ds);
+ con.Open();
+ cmd.ExecuteNonQuery();
+ con.Close();
+ return ds;
+ }
+ public DataTable ConnectDataBaseReturnDT(string Query)
+ {
+ dt = new DataTable();
+ con = new SqlConnection(@"Data Source=HARSHA-HP\SQLEXPRESS; Initial Catalog=SLIITComDB; Integrated Security = true;");
+ cmd.CommandText = Query;
+ cmd.Connection = con;
+ da = new SqlDataAdapter(cmd);
+ da.Fill(dt);
+ con.Open();
+ cmd.ExecuteNonQuery();
+ con.Close();
+ return dt;
+ }
+}
@@ -0,0 +1,44 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.Services;
+using System.Data;
+using System.Data.SqlClient;
+
+/// <summary>
+/// Summary description for WebService
+/// </summary>
+[WebService(Namespace = "http://tempuri.org/")]
+[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
+// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
+// [System.Web.Script.Services.ScriptService]
+public class WebService : System.Web.Services.WebService {
+
+ public WebService () {
+
+ //Uncomment the following line if using designed components
+ //InitializeComponent();
+ }
+
+ [WebMethod]
+ public string[] GetSearch(string prefixText)
+ {
+ string sql = "Select * from User Where Name like @prefixText";
+ SqlDataAdapter da = new SqlDataAdapter(sql, @"Data Source=.HARSHA-HP\SQLEXPRESS; Initial Catalog=SLIITComDB; Integrated Security = true;");
+ da.SelectCommand.Parameters.Add("@prefixText", SqlDbType.VarChar, 100).Value = prefixText + "%";
+ DataTable dt = new DataTable();
+ da.Fill(dt);
+ string[] items = new string[dt.Rows.Count];
+ int i = 0;
+ foreach (DataRow dr in dt.Rows)
+ {
+ items.SetValue(dr["Name"].ToString(), i);
+ i++;
+ }
+ return items;
+ }
+
+
+}
+
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,14 @@
+<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
+ CodeFile="Apps.aspx.cs" Inherits="Apps" %>
+
+ <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
+ <center>
+
+ <br />
+
+<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="498" height="380" id="test1">
+<param name="movie" value="defusedabomb.swf" /><embed src="defusedabomb.swf" width="525" height="400" name="test1" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
+</object>
+
+</center>
+</asp:Content>
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+public partial class Apps : System.Web.UI.Page
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+}
BIN Apps.swf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,49 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Footer.ascx.cs" Inherits="Controls_Footer" %>
+<style type="text/css">
+ .style1
+ {
+ width: 140px;
+ }
+ .style2
+ {
+ width: 129px;
+ }
+</style>
+<table cellpadding="1" cellspacing="1" width="100%">
+ <tr>
+ <td class="style1">
+ </td>
+ </tr>
+
+ <tr>
+ <td class="style1" align=left>
+ <asp:LinkButton ID="lnkJobBank" runat="server" Text="Vacancies"
+ OnClick="lnkJobBank_Click"></asp:LinkButton>
+ </td>
+ <td align=center>
+ <asp:LinkButton ID="lnkEvents" runat="server" Text="Events"
+ OnClick="lnkEvents_Click"></asp:LinkButton>
+ </td>
+ <td align=center>
+ <asp:LinkButton ID="lnkSignUp" runat="server" Text="Sign-Up"
+ OnClick="lnkSignUp_Click"></asp:LinkButton>
+ </td>
+ <td align=center>
+ <asp:LinkButton ID="lnkGames" runat="server" Text="Games"
+ OnClick="lnkGames_Click"></asp:LinkButton>
+ </td>
+ <td align=right>
+ <asp:LinkButton ID="lnkApps" runat="server" Text="Apps"
+ OnClick="lnkApps_Click"></asp:LinkButton>
+ </td>
+ <td align=right>
+ <asp:LinkButton ID="lnkAbout" runat="server" Text="About"
+ OnClick="lnkAbout_Click"></asp:LinkButton>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="style1">
+ </td>
+ </tr>
+</table>
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+public partial class Controls_Footer : System.Web.UI.UserControl
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+ protected void lnkAbout_Click(object sender, EventArgs e)
+ {
+ Response.Redirect("About.aspx");
+ }
+ protected void lnkApps_Click(object sender, EventArgs e)
+ {
+ Response.Redirect("Apps.aspx");
+ }
+ protected void lnkJobBank_Click(object sender, EventArgs e)
+ {
+ Response.Redirect("JobBank.aspx");
+ }
+ protected void lnkEvents_Click(object sender, EventArgs e)
+ {
+ Response.Redirect("EventPlanner.aspx");
+ }
+ protected void lnkGames_Click(object sender, EventArgs e)
+ {
+ Response.Redirect("Games.aspx");
+ }
+ protected void lnkSignUp_Click(object sender, EventArgs e)
+ {
+ Response.Redirect("Register.aspx");
+ }
+}
@@ -0,0 +1,43 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeFile="GetUserScraps.ascx.cs"
+ Inherits="Controls_GetUserScraps" %>
+<table cellpadding="0" cellspacing="1" border="0" width="100%">
+ <tr>
+ <td colspan="3" align="left">
+ <asp:GridView ID="GridViewUserScraps" ItemStyle-VerticalAlign="Top" AutoGenerateColumns="False"
+ GridLines="None" Width="100%" ShowHeader="False" runat="server" AlternatingRowStyle-BackColor="#A5A5A5"
+ CellPadding="4" ForeColor="#333333">
+ <Columns>
+ <asp:TemplateField>
+ <ItemTemplate>
+ <table align="left" cellpadding="1" cellspacing="2">
+ <tr>
+ <td>
+ <a href='<%#getUserHREF(Container.DataItem)%>'>
+ <img align="middle" src='<%#getSRC(Container.DataItem)%>' border="0" width="50px" /></a>
+ </td>
+ <td>
+ &nbsp;</td>
+ </tr>
+ </table>
+ <div align="justify">
+ <%#DataBinder.Eval(Container.DataItem, "Message")%>
+ <br />
+ <br />
+ </div>
+ <span class="SmallBlackText">Posted On: &nbsp;</span>
+ <asp:Label ID="lblSendDate" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"SendDate")%>'></asp:Label>
+ </span>
+ </ItemTemplate>
+ </asp:TemplateField>
+ </Columns>
+ <RowStyle BackColor="#EFF3FB" />
+ <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
+ <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
+ <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
+ <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
+ <EditRowStyle BackColor="#2461BF" />
+ <AlternatingRowStyle BackColor="White" />
+ </asp:GridView>
+ </td>
+ </tr>
+</table>
@@ -0,0 +1,53 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Data;
+using System.Data.SqlClient;
+
+public partial class Controls_GetUserScraps : System.Web.UI.UserControl
+{
+ DataBaseClass dbClass = new DataBaseClass();
+ public DataTable dt;
+
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!Page.IsPostBack)
+ {
+ GetUserScraps(int.Parse(Request.QueryString["Id"].ToString()));
+ }
+ }
+ public void GetUserScraps(int Id)
+ {
+ string getUserScraps = "SELECT u.Id as UserId,u.Name,u.ImageName,s.FromId,s.ToId,s.Message,s.SendDate,s.ID as ScrapId FROM [User] as u, Scrap as s WHERE u.Id=s.FromId AND s.ToId='" + Request.QueryString["Id"].ToString() + "'";
+ dt = dbClass.ConnectDataBaseReturnDT(getUserScraps);
+ if (dt.Rows.Count > 0)
+ {
+ GridViewUserScraps.DataSource = dt;
+ GridViewUserScraps.DataBind();
+ }
+ }
+
+ public string getUserHREF(object sURL)
+ {
+ DataRowView dRView = (DataRowView)sURL;
+ string Id = dRView["UserId"].ToString();
+ return ResolveUrl("~/UserDetails.aspx?Id=" + Id);
+ }
+
+ public string getSRC(object imgSRC)
+ {
+ DataRowView dRView = (DataRowView)imgSRC;
+ string ImageName = dRView["ImageName"].ToString();
+ if (ImageName == "NoImage")
+ {
+ return ResolveUrl(@"~/Site_Images/image_missing.jpg");
+ }
+ else
+ {
+ return ResolveUrl("~/UserImage/" + dRView["ImageName"].ToString());
+ }
+ }
+}
@@ -0,0 +1,27 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Header.ascx.cs" Inherits="Controls_Header" %>
+<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
+<asp:ScriptManager ID="ScriptManager1" runat="server" />
+<table cellpadding="1" cellspacing="1" width="100%">
+ <tr>
+ <td>
+ <asp:ImageButton ID="ImgLogo" runat="server" ImageUrl="~/Logo.png"
+ CausesValidation="false" Height="152px" Width="750px" OnClick="ImageButton1_Click"/>
+ </td>
+ <td width="40%" align="right">
+ <asp:TextBox ID="txtSearch" runat="server" Width="170px"></asp:TextBox>&nbsp;
+ <cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" ServicePath="~/WebService.asmx"
+ ServiceMethod="GetSearch" MinimumPrefixLength="1" TargetControlID="txtSearch">
+ </cc1:AutoCompleteExtender>
+ <asp:Button ID="btnSearch" runat="server" Text="Find People" OnClick="btnSearch_Click"
+ EnableViewState="false" CausesValidation="false" />
+ <br />
+ <br />
+<%-- <asp:LinkButton ID="Login" runat="server" Text="Login |" OnClick="Login_Click" CssClass="BlueText"
+ CausesValidation="false"></asp:LinkButton>--%>
+ <asp:LinkButton ID="Logout" runat="server" Text="Logout |" OnClick="Logout_Click"
+ CssClass="BlueText" CausesValidation="false"></asp:LinkButton>
+ <asp:LinkButton ID="MyProfile" runat="server" Text="My Profile" OnClick="MyProfile_Click"
+ CausesValidation="false" CssClass="BlueText"></asp:LinkButton>
+ </td>
+ </tr>
+</table>
Oops, something went wrong.

0 comments on commit 0b9f322

Please sign in to comment.