SIGN UP MEMBER LOGIN:    
ARTICLE

C# Discussion Forum from Harrison Logic

Posted by Chris Harrison Articles | Web Forms C# January 29, 2002
Threaded Discussion Forum that utilizes the .NET framework, with C# as the ASP.NET server side language. Uses MS Access Database for data.
Reader Level:
Download Files:
 

Description:

Threaded Discussion Forum that utilizes the .NET framework, with C# as the ASP.NET server side language.  Uses MS Access Database for data.

Thanks for your interest in the Discussion Forum.  This provides a very simple Threaded Discussion Forum that allows the user to Add topics, then Post replies to that Topic.  It is built on the .NET framework and uses C# as the ASP.NET server side language.  Data is stored in a MS Access Database.

Requirements:

  • These files require a Web Server with the Microsoft .NET framework installed to function.

Installation Instructions:

  • Unzip the files and place them in a Directory in your web server root
  • They should work as is.  Check in the DB folder to make sure the Database (Forum.mdb) is not 'Read Only'.
  • You can customize the look with the Style.css or simply copy past them into your
    own .aspx pages.
  • Browse to the default.aspx page to start the application

Use Cases:

  • General User: Presented with the login screen, choose a username.  The application will store this username as a Session variable and attach it to all Topics and Postings you create.
  • Administrator User:  When presented with the login screen, enter the Administrator Username (username and password are specified in DoLogin() of default.aspx).  The form will show the password field to enter the password.  Once successful, will store the Username as a Session variable as well as A Session variable telling the application you are logged in as an Administrator.  When presented with Topics and Postings lists,  you will see the Admin Links that allow you to Delete Topics and Posts.

File Descriptions:

  • db/Forum.mdb: MS Access DataBase
  • AddTopic.aspx: Page includes a Form that posts to itself and "INSERTS" a record into the Database as a new topic
  • default.aspx: Contains a login form that users are required to enter a Username, they are not stored in the Database.  The form posts to itself and in the DoLogin() function there is a place to specify the Administrator account, and Password (currently admin / password, change to your preference.)  If you enter the Administrator username (case-sensitive) you are presented with the password field.
  • DeleteRecord.aspx: Deletes a record from the Database, shared by Topics and Postings
  • Postings.aspx: Displays all the postings for a Topic, and a form to add a posting that posts to itself.
  • Style.css: Your Stylesheet to control the Look and Feel
  • Topics.aspx: Displays all the Topics in the forum

Login to add your contents and source code to this article
share this article :
post comment
 

using Excel = Microsoft.Office.Interop.Excel; Hi, i am getting this error " interop doesnot exist in namespace mocrosoft.office" can you plaese advice me... what office PIA i need to install for .net 3.5 framework if you can provide me some link... that would be good.... i have 2003 office installed in my system

Posted by prasad prasad Mar 11, 2011

ya its ok

Posted by sachin jha Feb 23, 2011

its good

Posted by sachin jha Feb 23, 2011

Hi I want to allow users to select the location to save a file on button click from my C# web application... Its very urgent... please help me out... Thanks in advance for any help

Posted by Soumya Vivek Feb 09, 2011
Nevron Gauge for SharePoint
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Nevron Gauge for SharePoint
Become a Sponsor