online forum final

Upload: ashim-ranjan-bora

Post on 02-Apr-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 Online Forum Final

    1/43

    A

    PRACTICAL TRAINING REPORT

    ON

    ONLINE GD FORUM

    TAKEN AT

    ARDENT COLLABORATIONS PVT. LTD.

    SUBMITTED IN PARTIAL FULFILLMENT OF

    TECHNICAL DEGREE,RAJASTHAN TECHNICAL UNIVERSITY

    ( Session 2010-2011 )

    DEPARTMENT OF CS

    Submitted to :-Mrs. Kuntal Gaur

    Submitted by :-

    Sachita AgrawalBranch Computer Science

    ID 07EC050

  • 7/27/2019 Online Forum Final

    2/43

    BALDEV RAM MIRDHA INSTITUTE OF TECHNOLOGY

    PREFACE

    Practical training is an important part in the four-years B.Tech Degree. This training is very much

    useful for an engineering student. Through this, a student comes to know about the actual workingenvironment of an organization, the relation between officers and their subordinates, the

    organizational value of any industry and many other things like, how people work together as a

    team and how they achieve mass production in any industry, in a prescribed time with quality.This training plays a vital role in the build-up of a successful engineer.

    I pursued my summer training from ARDENT COLLABORATIONS PVT. LTD, Kolkata.

    This training provides me a good knowledge regarding organizational values.

    -- Sachita Agrawal

    2

  • 7/27/2019 Online Forum Final

    3/43

  • 7/27/2019 Online Forum Final

    4/43

    INDEX

    Topic : Page no.s :

    1. Introduction. 1-2

    2. About the Technology. 3-4

    3. Database - An Overview. 5

    4. Theoritical Background.. 6

    5. The .NET framework.. 7-9

    6. Hyper Text Markup Language.. 10

    7. Initial Information Collection 11

    8. Requirement Specification. 12

    9. Logical Data Flow Diagram... 13

    10. Feasibility Study. 14

    11. System Design. 15-16

    12. Data Flow Diagram 17

    13. Entity-Relationship Diagram........ 18

    14. System Implementation.. 19-20

    15. Program Codings..................... 21-25

    16. System Testing and Evaluation 26

    17. Drawbacks, Limitations and Future Scope. 27

    18. Screenshots.. 28-35

    19. Conclusion 36

    4

  • 7/27/2019 Online Forum Final

    5/43

    INTRODUCTION

    A forum, also known as a message board, bbs, or conferencing system, affords asynchronous,

    many-to-many, multimedia discussions for large groups of people over a period of time. That

    means that people can read and write their part of the discussion on their own schedule, thateveryone in a group can communicate with everyone else, and that graphics, sounds, and videos

    can accompany text. This particular form of conversational medium meets the need for organizing

    discussions after they reach a certain level of complexity. If twenty people want to discuss fivesubjects over ten days, and each person makes one comment on each subject every day, that

    makes for one thousand messages in each participant's mailbox. On lists, when the topic drifts, the

    subject line usually does not change, so it makes it difficult to find particular discussions later.

    Objectives of the Social Networking Sites :

    T he o bj ec ti ve i s t o b ui ld a w eb -b as ed s ys te m, w hi ch w il l h av e t hef o l l owi ng f ac i l i t i e s :

    P ro v id in g u se rs a nd o th er s w it h a s af er g d f or um e xp e ri en c e i s ap r i mar y ob jec t ive fo r ope r a to r s o f co l l ege p or t a l s i t e s .

    I t w i l l i nc r eas e t he r e l a t i ons h i p be t ween s t uden t , f acu l t y and o t he r s

    Fac i l i t i e s w i l l be p r ov i ded t o he l p t he us e r t o p l an and r ecor d execu t i onof t he s i t e .

    College Portal Sites overview :

    A forum consists of 4 components: the forum itself, its categories, the topics and the messages.

    Each component, or level of hierarchy, is illustrated in the diagram below.

    5

  • 7/27/2019 Online Forum Final

    6/43

    Each forum can have an unlimited number of categories and sub-categories. Categories are likeplaceholders in which topics of discussion and messages are contained. Henceforth, a category

    manages the forums topics into folders or groupings. This is a logical method of sorting topics.

    On the home page of the forum, a listing of all the categories to which the user has access,excluding those categories that the user wishes to block from viewing (refer to How do I update

    my profile?), will be displayed. In addition, the user will see the number of topics posted within

    each corresponding category, and the date/time/author of the last posting made in the

    corresponding category. To find out quickly if new messages have been posted since the lastviewing, simply hover over the clipboard icon corresponding to the category in question.

    Users of a Forum :FuseTalk refers to pre-defined types of users. They are Forum Owner, Moderator, and User.

    Forum Owners are individuals who have been assigned to manage a forum. Forum owners havethe rights to change any forum level, create discussion categories for their forum, create

    moderators, and manage their own sets of users.

    Moderators are individuals who have been assigned to moderate a category within a forum. Amoderator can be assigned to one or multiple categories and their permissions range from deleting

    messages/topics to banning individuals from accessing the forum.

    Users are individuals or members who have been given access to a forum or who have publicly

    registered to access the forum. These members do not have any special privileges unless

    otherwise given by the Forum Owner. Users can become Moderators or Forum Owners ifdesignated by the Forum Owner.

    hav i ng an a l e r t s ys t em, us i ng whi ch he / s he wi l l ge t t he a l e r t s i n f o r m o f e -

    ma i l o r s c r ap .

    6

  • 7/27/2019 Online Forum Final

    7/43

    ABOUT THE TECHNOLOGY

    Why ASP.NET?

    Platform Independent. Architecture Independent. Vender Independent. Language Independent.

    .NET Architecture :

    7

  • 7/27/2019 Online Forum Final

    8/43

    .NET and other technologies :

    .net vs PHP:

    .net development environment is costly while PHP is open

    source so PHP is a better choice than .net.net vs Java:

    Although Java is open source still it is quite tough language ,while .net is easy to understand so .net is also a better option than Java.

    8

  • 7/27/2019 Online Forum Final

    9/43

    DATABASE AN OVERVIEW

    A Database is a single organized collection of structured data stored with a minimum ofduplication of data items so as to provide a consistent and controlled pool of data. This data

    is common to all users of the system but is independent of programs which use the data. Theindependence of database and programs using it means that they can be changed without

    changing the other. The users of the database may find it convenient to imagine that they are

    using integrated file system.

    RDBMS :

    RDBMS is an acronym for relational database management system and can be defined as

    data program for general purpose data storage and retrieval that organized data into tableconsisting the same set of data items(columns). The data is stored in the Kernel to maintaindata security. RDBMS is the database in which multiple tables can be associated or related to

    one another based on common data items or files within the tables. RDBMS provides a way

    of doing tasks in an understandable and reasonably uncomplicated manner.

    For Example, a name and address file might columns for name, street, city, state, pin and

    phone number. A record can be created for each person by filling each field. An anothertable consists of the name, employers name and dept. The two tables holds a relationship

    where each person has an entity. One of the major features of RDBMS is the ability to

    generate a new file with data from two related files.

    Functions of RDBMS :

    The most important functions of RDBMS are as mentioned below:

    Defines database

    Modifies structure of database

    Queries the database

    Adds and deletes the database

    Controls the database

    Secure Access from public users

    Communicate within network

    Export and import of data.

    9

  • 7/27/2019 Online Forum Final

    10/43

    THEORETICAL BACKGROUND

    In the whole project development the front ends are made using Microsoft Visual Studio.Netand SQL Server as backend database and the connection with the database, being

    SqlConnection.

    Microsoft Visual Studio .Net :

    Visual Studio.Net is the tool for rapidly building enterprisescale ASP Web applications

    and high performance desktop applications. Visual Studio includes componentbased

    development tools, such as Visual C#, Visual Basic, Visual C++, as well as a number ofadditional technologies to simplify team-based design, development and deployment of our

    solutions.Visual Studio supports .Net framework, which provides a common language runtime

    and unified programming classes. The biggest facility of ASP.Net is everything is object-

    oriented. All aspects of OOP are implemented in ASP.Net and we can also create

    multithreaded applications in ASP.Net. Also included in it is the MSDN Library, whichcontains all the documentation for these development tools.

    From Visual Basic 1.0, which radically simplified writing Windows Applications, to

    Visual Basic 4.0, which helped to establish COM2 as the standard Windows object

    architecture, the VB language has been a cornerstone of the Windows platform for nearly adecade.

    Now, as applications are evolving from a standalone executable sitting on a users hard

    drive to a distributed application delivered by the Web server across the Internet, Microsoft isexpanding away from simply providing an operating system: Microsoft is providing XML

    web services as well. A key part of Microsofts thrust into this new XML web services space

    is the .Net Framework,designed from the ground up to allow developers to write and deploy complex Web

    applications easily.

    ASP.Net is the pillar of the .Net Framework, and yet another step forward in evolution

    of the language. It is a high level programming language for the .net Framework, and providesthe easiest point of entry to the Microsoft .Net platform.

    10

  • 7/27/2019 Online Forum Final

    11/43

    THE .NET FRAMEWORK

    The .Net Framework is a new computing platform that simplifies application

    development in the highly distributed environment of the Internet. It is design to fulfill thefollowing objectives :

    To provide a consistent object-oriented programming environment whether

    object code is stored and executed locally but Internet-distributed or executed

    remotely.

    To provide a code-execution environment that minimizes software deploymentand versioning conflicts.

    To provide a code-execution environment that guarantees safe execution of

    code, including code created by an unknown o semi-trusted third party.

    To provide a code-execution environment that eliminates the performance

    problems of scripted or interpreted environments.

    To make the developer experiences consistent across widely varying types of

    applications, such as Windows-based applications and Web-based application.

    To build all communication on industry standards to ensure that code based on

    the .Net Framework can integrate with any other code.

    11

  • 7/27/2019 Online Forum Final

    12/43

    .

    Elements of the .Net Framework :

    SQL Server 2005 :

    Microsoft SQL Server 2005 features includes :

    Internet Integration.

    The SQL Server 2005 database engine includes integrated XML support. It also

    has the scalability, availability, and security features required to operate as the

    data storage component of the largest Web sites. The SQL Server 2005

    programming model is integrated with the Windows DNA architecture for

    developing Web applications, and SQL Server 2005 supports features such as

    English query and the Microsoft Search Services to incorporate user-friendlyqueries and powerful search capabilities in Web applications.

    Scalability and Availability.

    12

  • 7/27/2019 Online Forum Final

    13/43

    The same database engine can be used across platforms ranging from

    laptop computers running Microsoft Windows 98 through large,

    multiprocessor servers running Microsoft Windows 2000 Data Center Edition.

    SQL Server 2005 Enterprise Edition supports features such as federated

    servers, indexed views, and large memory support that allow it to scale to the

    performance levels required by the largest Web sites.

    Enterprise-Level Database Features.

    The SQL server 2005 relational database engine supports the features required

    to support demanding data processing environments. The database engine

    protects data integrity while minimizing the overhead of managing thousandsof users concurrently modifying the database. SQL Server 2005 distributed

    queries allow you to reference data from multiple sources as if it were a part of

    a SQL Server 2005 database, while at the same time, the distributed transaction

    supports protects the integrity of any updates of the distributed data.Replication allows you to also maintain multiple copies of data, while ensuring

    that the separate copies remain synchronized. You can replicate a set of data tomultiple, mobile, disconnected users, have them work autonomously, and then

    merge their modifications back to the publisher.

    Ease of Installation, Deployment, and Use.

    SQL Server 2005 includes a set of administrative and developmenttools that improve upon the process of installing, deploying, managing, and

    using SQL Server across several sites. SQL Server 2005 also supports a

    standard-based programming model integrated with the Windows DNA,

    making the use of SQL Server databases and data warehouses a seamless part

    of building powerful and scalable systems. These features allow you to rapidly

    deliver SQL Server applications that customers can implement with a minimum

    of installation and administrative overhead.

    Data Warehousing.

    SQL Server 2005 includes tools for extracting and analyzing summary

    data for online analytical processing. SQL Server also includes tools for

    visually designing databases and analyzing data using English-based questions.

    13

  • 7/27/2019 Online Forum Final

    14/43

    HYPER TEXT MARKUP LANGUAGE

    As an outgrowth of SGML (Standard Generalized Markup Language), HTML isgenerally viewed as nothing more than a document formatting, or tagging, language. The tags

    (inside delimiter characters) instruct a viewer program (the browseror, more generically,the client) how to display chunks of text or images.

    Relegating HTML to the category of a tagging language does disservice not only to the

    effort that goes into fashioning a first-rate Web page, but also to the way users interact withthe pages. To my way of thinking, any collection of commands and other syntax that directs

    the way users interact with digital information is programming. With HTML, a Web page

    14

  • 7/27/2019 Online Forum Final

    15/43

    author controls the user experience with the content just as the engineers who programMicrosoft Excel craft the way users interact with spreadsheet content and functions.

    Version 4.0 and later of the published HTML standards endeavor to define the purpose

    of HTML as assigning context to content, leaving the appearance to a separate standard forstylesheets. In other words, its not HTMLs role to signify that some text is italic, but rather

    to signify why it is italic. For example, you would tag a chunk of text that conveys emphasis

    (via the tag) regardless of how the stylesheet or browser sets the appearance of that

    emphasized text.

    INITIAL INFORMATION COLLECTION

    Problem Definition :

    What is a SOCIAL NETWORK SITE ?

    There are so many different names for a forum. Some think of them as message boards or

    bulletin boards. Some call them threaded discussions, discussion boards or discussion groups

    while others call them conferences. FuseTalk simply calls them forums.

    15

  • 7/27/2019 Online Forum Final

    16/43

    Deciding if just one forum or multiple forums is needed can be difficult, especially if there isan uncertainty of how they are defined and what makes a forum.

    The simplistic definition of a forum is a place where people have the ability to startcommunication (in the form of threads) and reply to other people's threads. A member of the

    community in the forum posts a message, which is visible to everyone in that community.

    Once read, there is the option to post a reply, which can also be visible to the community.

    Thus, a discussion can build up without all users having to be online at the same time.

    FuseTalk can allow for more than one forum to be created. These forums can be consideredas containers for threads started by the community. Depending on the permissions of

    community members as defined by the forum administrator, they can post replies to existing

    threads and start new threads as they wish. In addition, users of a forum can post

    anonymously (if this is enabled by the Forum Administrator) or as their registered username.

    System Analysis :

    Systems development can generally be thought of as having two major components, in which

    one such component is Systems Analysis. Systems analysis is the process of gathering andinterpreting facts, diagnosing problems and using the information to recommend improvementto the system. Analysis is a detailed study of the various operations performed by a system and

    their relationship within and outside of the system. One aspect of analysis is defining the

    boundaries of the system and determining whether or not a candidate system should considerother related systems. During analysis, data are collected on the available files, decision

    points, and transactions handled by the present system. Data flow diagrams, interviews, on-

    site observations and questionnaires are commonly used tools in analysis. We can say that

    analysis specifies what the system should do. System analysis is the management technique,which helps us in designing a new system, improving an existing system or solving a system

    problem

    REQUIREMENTS SPECIFICATION

    Requirements Specification :

    Requirements Specification involves the basic requirements that the system tobe developed should posses. These can be broadly classified into two types.

    1. Performance Requirements.

    2. Functional Requirements.

    16

  • 7/27/2019 Online Forum Final

    17/43

    Understanding the requirements specification is critical for the projects success otherwise thesystem does not get developed according to the customers wishes.

    Performance Requirements :

    1.The system should be built in a way such that it is independent of the type of

    database used.

    SQL Server, Oracle etc.2. Response should be fast.

    3. High throughput.4. Security should be high such that no intruder can tamper with data.

    5. The access of the system should be traceable to identify who are the users of the

    system and when they last logged in to the system.

    Functional Requirements :

    Here, the user will do 7 jobs :-

    Register to the site.

    After registration login to the site.

    Add friend and remove also.

    Add scrap and remove also.

    Can search for friend by name and id.

    Can update their profile.

    Can change password.

    LOGICAL DATA FLOW DIAGRAM

    After studying the system the flow of data and process behind the system are shown in thefollowing logical data flow diagram of the system:

    17

    Processing Request

    & Calculation of

    Estimated effort

    Request for

    Development

  • 7/27/2019 Online Forum Final

    18/43

    Request detail

    Approved Effort

    Approved Effort

    Request detail

    Approved Effort

    The system interacts to the customer by means of some front-end form. To enter the system a

    login form will appear where User ID and Password will have to be entered to log into the

    system and then this will check the Permission of that user. According to permission theSystem is loaded.

    FEASIBILITY STUDY

    Feasibility Study is one of the fundamental aspects in design of system.The key-points are as follows:-

    1) Form a project team and appoint a project leader.

    2) Prepare system flow chart.

    3) Enumerate potential candidate systems.

    4) Describe and identify characteristics of candidate systems.

    18

    Data Store

    IR Preparation

    Data Store

    Coding &

    Testing

    Deployment

  • 7/27/2019 Online Forum Final

    19/43

    5) Determine and evaluate performance and cost effectiveness of each candidate system.

    6) Weight system performance and cost data.

    7) Select the best candidate system.

    8) Prepare and report final project directive to management.

    Three key considerations are involved in the feasibility analysis :

    i. Technical.

    ii. Operational.

    iii. Economical.

    Technical Feasibility :It specifies whether the proposed solution in the project is possible to be implemented

    using available hardware and software.

    Operational Feasibility :Operational feasibility considers the factors that how the software will satisfy the need

    of the users, how it could be changed for future requirements and the operational factors of the

    computer.

    Economical Feasibility :

    This defines the measurement cost effectiveness of the project. It further consists oftwo parts :a. Direct cost.

    b. Indirect cost.

    Economical Feasibility of the Project :a. Initial cost for development is not high since a machine with required

    configuration was available in the company.

    b. Necessary software for back-end and front-end use were also available

    there.

    SYSTEM DESIGN

    19

  • 7/27/2019 Online Forum Final

    20/43

    Design Goals :

    Design of an interactive application that enables the user to filter the Social Community

    based application on different parameters.

    Design of an application that has features like drag and drop etc.

    Design of application that decreases data transfers between the client and the server.

    Dynamic WebPages :

    A Dynamic web is one that is created at run time, on the fly, executing some program onthe server, then converting the out put into HTML format and sending it to the browser to

    display it on the client machine. It is quite different form the client machine which are tocreated and stored on the servers hard disk.

    The need for dynamic WebPages :

    What is the situation where we need the dynamic web page. Dynamic web pages are

    extremely important for online application .With out dynamic web pages web based

    application do not happen.

    Suppose we want to create a discussion portal and you want to access my community

    through internet. For this we need to design a website ,the website should allow the customer

    to see all the applications available under version categories, search the friend based on thename, location etc if we try to do this on static pages we will face some problem.

    Someone have to change the static pages every time a new item such as title added or

    one want to send the new topic, view the profile, sends the comments. It will be a very big riskto keep track record by different user. So to create a College Portal site management, it is

    necessary to create dynamic web pages.

    Basic theory of dynamic WebPages :

    In dynamic web pages the URL does not correspond to the address of a static web

    page, it in fact gives an address of the web page on the server which contains a program to beexecuted. The program could be in ASP, JSP, or in CGI program .These are some kind ofprogram executed in the server and out put of which is converted into HTML format.

    1

    20Web serverWeb browser

  • 7/27/2019 Online Forum Final

    21/43

    2

    1. Http request: Browser sends a request for a file.

    2. Http response: Server sends a HTML output of that file.

    Figure: Dynamic Web pages

    Structural System Analysis :

    DATA FLOW DIAGRAM

    21

    User Login User

    Registration

    Home Page

  • 7/27/2019 Online Forum Final

    22/43

    User iSpeak.com

    RegisterLogin

    Approve Topic

    Search Topic

    View Topics

    Reply Topic

    View Users list

    Logout

    22

  • 7/27/2019 Online Forum Final

    23/43

    ENTITY RELATIONSHIP DIAGRAM

    Profile

    Sent

    Has

    Reques

    t

    1

    1

    n

    User

    Registration Info

    1

    1

    1View Topics

    Search

    TopicsReply

    Topic

    23

  • 7/27/2019 Online Forum Final

    24/43

    SYSTEM IMPLEMENTATION

    Table structure of the database :

    In this section we present the database in a tabular form. The complete set of tables are

    presented in this section.

    Table 1 : Admin

    Field Name Data type Allowed null keys

    AdminID varchar(50) Not Null Primary Key

    Password varchar(50)

    Table 2 : Contradiction

    Field Name Data type Allowed null keys

    ContradictID varchar(50) Not Null Primary Key

    Contradiction varchar(50)

    OpinionSNO varchar(50)

    TopicID varchar(50)

    SenderID varchar(50)

    ReceiverID varchar(50)

    PostDate varchar(50)

    Table 3 : OpinionDetail

    Field Name Data type Allowed null keys

    SerialNo Int Not Null Primary Key

    TopicID varchar(50)

    UserID varchar(50)

    Comments varchar(MAX)

    PostDate varchar(MAX)

    24

  • 7/27/2019 Online Forum Final

    25/43

    Table 4 : Topic

    Field Name Data type Allowed null keys

    TopicID Varchar(50) Not Null Primary Key

    TopicName varchar(50)

    UserID varchar(50)Details varchar(MAX)

    Date varchar(MAX)

    Status Varchar(10)

    Table 5 : UserInfo

    Field Name Data type Allowed null keys

    UserId Varchar(50) Not Null Primary Key

    Password varchar(50)

    Name varchar(50)EmailID varchar(MAX)

    ContactNo varchar(MAX)

    Image Varchar(MAX)

    25

  • 7/27/2019 Online Forum Final

    26/43

    PROGRAM CODINGS

    Login :

    publicpartialclassUser_Login : System.Web.UI.Page{ protectedvoid Page_Load(object sender, EventArgs e)

    {

    }

    protectedvoid LoginButton_Click(object sender, EventArgs e){

    DataSet ds;ds = dbaccess.FetchData("SELECT * FROM UserInfo WHEREUserID = '" + Login1.UserName + "' AND Password = '" +Login1.Password + "'"); if (ds.Tables[0].Rows.Count == 0)

    {Login1.FailureText = "Wrong User ID or Password";

    } else

    {Session["uid"] = Login1.UserName;Response.Redirect("~/User/Home.aspx?UID=" +

    Login1.UserName + "& image=" + ds.Tables[0].Rows[0][5].ToString());

    }}

    }

    Registration :

    26

  • 7/27/2019 Online Forum Final

    27/43

    publicpartialclassUser_Image_Registration :System.Web.UI.Page{ protectedvoid Page_Load(object sender, EventArgs e)

    {

    }

    protectedvoid Button1_Click(object sender, EventArgs e){

    string filename, pathname; bool r;

    filename = Path.GetFileName(FileUpload1.FileName);FileUpload1.PostedFile.SaveAs(Server.MapPath("Image\\")

    + filename);pathname = "~/User/Image/" + filename;r = dbaccess.SaveData("INSERT INTO UserInfo VALUES ('"

    + TextBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text

    + "','" + TextBox4.Text + "','" + TextBox5.Text + "','" +pathname + "')"); if (r)

    {Session["uid"] = TextBox1.Text;Response.Redirect("Home.aspx");

    } else

    {Label1.Text = "UserID already exists";

    }

    }

    }

    Creating a topic :

    publicpartialclassUser_CreateTopic : System.Web.UI.Page{

    protectedvoid Page_Load(object sender, EventArgs e){

    }

    protectedvoid Button1_Click(object sender, EventArgs e){

    bool r;

    27

  • 7/27/2019 Online Forum Final

    28/43

    r = dbaccess.SaveData("INSERT INTO Topic VALUES ('" +TextBox1.Text + "','" + Session["uid"] + "','" + TextBox2.Text+ "','" + DateTime.Now + "','N')"); if (r)

    {Response.Redirect("Home.aspx");

    } else

    {Label1.Text = "Error : Check it yourself...";

    }}

    }

    Searching people :

    publicpartialclassUser_SearchPeople : System.Web.UI.Page

    { protectedvoid Page_Load(object sender, EventArgs e){

    } protectedvoid Button1_Click(object sender, EventArgs e)

    { DataSet ds = dbaccess.FetchData("SELECT UserId,Image,Name, EmailID, ContactNo FROM UserInfo WHERE Name LIKE '%" +TextBox1.Text + "%' OR UserId LIKE '%" + TextBox1.Text +"%'"); if (ds.Tables[0].Rows.Count == 0)

    {Label1.Text = "No Such User Found...";

    } else

    {Label1.Text = "";DataList2.DataSource = ds.Tables[0];DataList2.DataBind();

    }}

    protectedvoid DataList2_ItemCommand(object source,DataListCommandEventArgs e)

    { if (e.CommandArgument == "n")

    {Response.Redirect("ViewProfile.aspx?pid=" +

    ((Label)e.Item.FindControl("Label5")).Text);}

    }

    28

  • 7/27/2019 Online Forum Final

    29/43

    }

    Searching a topic :

    publicpartialclassUser_SearchTopic : System.Web.UI.Page

    { protectedvoid Page_Load(object sender, EventArgs e)

    {

    } protectedvoid Button1_Click(object sender, EventArgs e)

    {

    DataSet ds = dbaccess.FetchData("SELECT TopicID,TopicName, Details FROM Topic WHERE TopicName LIKE '%" +TextBox1.Text + "%' OR Details LIKE '%" + TextBox1.Text +

    "%'"); if (ds.Tables[0].Rows.Count == 0){

    Label1.Text = "No Such Topic Found...";}

    else{

    DataList2.DataSource = ds.Tables[0];DataList2.DataBind();

    }}

    protectedvoid DataList2_ItemCommand(object source,DataListCommandEventArgs e)

    { if (e.CommandArgument == "vc")

    {Response.Redirect("ViewComment.aspx?tid=" +

    ((Label)e.Item.FindControl("Label4")).Text);}

    }}

    Viewing comments :

    publicpartialclassUser_ViewComment : System.Web.UI.Page{ protectedvoid Page_Load(object sender, EventArgs e)

    {

    29

  • 7/27/2019 Online Forum Final

    30/43

    }

    protectedvoid DataList1_ItemCommand(object source,

    DataListCommandEventArgs e){

    if (e.CommandArgument == "c"){

    DataList2.EditItemIndex = e.Item.ItemIndex;DataList2.DataBind();

    }}

    protectedvoid DataList1_CancelCommand(object source,DataListCommandEventArgs e)

    {DataList2.EditItemIndex = -1;DataList2.DataBind();

    } protectedvoid DataList1_UpdateCommand(object source,

    DataListCommandEventArgs e){

    bool r; string tid =((Label)e.Item.FindControl("Label2")).Text; string comment =((TextBox)e.Item.FindControl("TextBox1")).Text; string rec =((Label)e.Item.FindControl("UserIDLabel")).Text; String OpinionId =((Label)e.Item.FindControl("Label3")).Text;

    r = dbaccess.SaveData("INSERT INTO Contradiction VALUES('" + comment + "'," +OpinionId + ","+ tid + ",'" +Session["uid"].ToString() + "','"+ rec +"','"+DateTime.Now+"')");

    r = dbaccess.SaveData("INSERT INTO OpinionDetail VALUES(" + tid + ",'" + Session["uid"].ToString() + "','@" + rec +"
    " + comment + "','" + DateTime.Now + "')"); if (r)

    {Response.Redirect("ViewComment.aspx?tid=" + tid);

    }

    else{((Label)e.Item.FindControl("Label10")).Text =

    "Error..................";}

    }

    }

    30

  • 7/27/2019 Online Forum Final

    31/43

    Log Out :

    protected void LinkButton2_Click(object sender, EventArgs e){

    Session["email"] = null;Session.Abandon();Response.Redirect("home.aspx");

    }

    SYSTEM TESTING & EVALUATION

    Testing of the system :

    The Testing phase is a critical element of software Quality Assurance and represents the

    ultimate review of the specification, design and the code generation. This phase is a process of

    executing the entire application and performing a thorough check on all the individualmodules, taking into consideration all the possible conditions that might arise in the working

    of the same.

    Testing for this application has been conducted exhaustively in the following manner:

    Unit Testing :

    In this phase all the independent units of the system are tested to ensure that information

    properly flows into and out of the program under test. Here, the local data structures are alsoexamined to ensure that the modules operate properly. All possible error-handlingpaths are

    also tested to give proper messages to the users of the system when an error is encountered.

    Another important facility that has been tried out and tested successfully is to give warning

    messagesto the Administrator of the system when they are about to confirm some changes tothe records in the database.

    Integration Testing and System Testing :

    This phase of testing helps to uncover errors in the interfaces. The name Integration Testing

    suggests the testing of all the module interfaces before they are integrated to form the entiresystem.

    System testing refers to the process of testing the entire system as a whole with all the

    modules connected. The basic objective of this type of testing is to ensure that the systemperforms according to the Requirements Specification obtained during the early stages of

    Planning (during Analysis phase) and during Design phase.

    31

  • 7/27/2019 Online Forum Final

    32/43

    Some of the most important test cases that were tried out successfully are :-

    1. Login Process.

    2. Invalid attribute values.3. Data Is Must for creating risk data elements.

    4. In write Description and comment character must not grater than 255.

    5. Entering in status name this character is not allow.

    6. Without selecting any row it is not going it delete.

    DRAWBACKS, LIMITITIONS AND FUTURE SCOPE OF THE

    SYSTEM

    The software system described above suffers from certain limitations. Such limitations havecrept into it owing to unavoidable circumstances of which time constraint is a major one. They

    are listed below:

    1. The system could be more generalized. Here, we have done only the placement

    activity. But we can also add the schedule scrap to this project...

    2. The combo box items should have been dynamically configurable, that is, they

    should have been configurable at runtime so that the fields using combo box items

    in the forms could have been assigned valid values for each project. Many othermajor changes would have been required which have not been incorporated due to

    shortage of time.

    Future Scope :

    The work described above and included in this special theme section contributes to an

    on-going dialogue about the importance of social network sites, both for practitioners and

    researchers. Vast, uncharted waters still remain to be explored. Methodologically, SNS

    researchers' ability to make causal claims is limited by a lack of experimental or longitudinalstudies. Although the situation is rapidly changing, scholars still have a limited understanding

    of who is and who is not using these sites, why, and for what purposes, especially outside theU.S.

    Such questions will require large-scale quantitative and qualitative research. Richer,

    ethnographic research on populations more difficult to access (including non-users) wouldfurther aid scholars' ability to understand the long-term implications of these tools. We hope

    that the work described here and included in this collection will help build a foundation for

    future investigations of these and other important issues surrounding social network sites.

    32

  • 7/27/2019 Online Forum Final

    33/43

    SCREENSHOTSAdministrators Pages :

    1> Default.aspx :-

    2> CreateTopic.aspx :-

    33

  • 7/27/2019 Online Forum Final

    34/43

    3> ApproveTopic.aspx :-

    4> UserDetails.aspx :-

    34

  • 7/27/2019 Online Forum Final

    35/43

    5> ViewTopicDetails.aspx :-

    35

  • 7/27/2019 Online Forum Final

    36/43

    Users pages :

    1> Registration.aspx :-

    36

  • 7/27/2019 Online Forum Final

    37/43

    2> Login.aspx :-

    3> Home.aspx :-

    4> CreateTopic.aspx :-

    37

  • 7/27/2019 Online Forum Final

    38/43

    5> ViewTopic.aspx :-

    6> UserProfile.aspx :-

    38

  • 7/27/2019 Online Forum Final

    39/43

    7> ViewComment.aspx :-

    8> Contradiction.aspx :-

    39

  • 7/27/2019 Online Forum Final

    40/43

    9> SearchPeople.aspx :-

    10> SearchTopic.aspx :-

    40

  • 7/27/2019 Online Forum Final

    41/43

    CONCLUSION

    While developing the system a conscious effort has been made to create and develop asoftware package, making use of available tools, techniques and resources that would

    generate a proper Technical Institute Support System.

    While making the system, an eye has been kept on making it as user-friendly, as cost-effective

    and as flexible as possible. As such one may hope that the system will be acceptable to anyuser and will adequately meet his/her needs.

    As in case of any system development process where there are a number of shortcomings,there have been some shortcomings in the development of this system also. These have been

    mentioned in details under the topic Limitations, Drawbacks and Future Scope of the

    System.

    41

  • 7/27/2019 Online Forum Final

    42/43

    REFERENCES

    We are grateful to the following websites which helped us to require references about the e-

    business.

    www.onlinesbi.com

    www.amazon.com

    www.worx.com

    www.tcs.com

    www.yahoo.com

    www.msdn.com

    www.ebay.com

    www.cooltext.com

    www.wikipedia.org www.google.com

    www.codeproject.com

    www.daniweb.com

    42

    http://www.onlinesbi.com/http://www.amazon.com/http://www.worx.com/http://www.tcs.com/http://www.yahoo.com/http://www.msdn.com/http://www.ebay.com/http://www.cooltext.com/http://www.wikipedia.org/http://www.google.com/http://www.codeproject.com/http://www.daniweb.com/http://www.onlinesbi.com/http://www.amazon.com/http://www.worx.com/http://www.tcs.com/http://www.yahoo.com/http://www.msdn.com/http://www.ebay.com/http://www.cooltext.com/http://www.wikipedia.org/http://www.google.com/http://www.codeproject.com/http://www.daniweb.com/
  • 7/27/2019 Online Forum Final

    43/43