Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 6th, 2007, 05:27 PM
Registered User
 
Join Date: Sep 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating a ticketing system with SQL Server

I'm trying to figure out the best way to create a ticketing system with SQL server and Windows Authentication.

Generally, my goal is to have a web site automatically detect the user (using windows Authentication only) and when a user accesses the site, all tickets that that user has created, will be present. The user never has to Login, or has to manually create this data store (with execption of writing a ticket itself).

Everytime the user accesses the site, BOOM all his info is stairing at him/her in the face. Because we are all in the same intranet network, everyone will have to use Windows Authentication, so the process of gathering the users name should be brain dead.

I just want to know what the best path to start implementing the above senario is.
I figure, I'll just use the Page_Load event to capture the users name, then have a C# method call a SPROC for the user. The users' name will be the variable to that the system can access his particular data.

Would greatly appreciate any insight as to how best to create this senario. Granted, I'm still kind of new to ASP.NET and SQL Server 2005.

-Thanks

  #2 (permalink)  
Old November 6th, 2007, 05:42 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Look into using the server variable: Remote_User If you have set windows authentication up on your web directory that server variable will contain a string similar to: <domain>\<user>

Once you have that string you can build the rest of your application around it since everything the user sees will be based upon that value.

Also, post your ASP.NET questions here: http://p2p.wrox.com/forum.asp?FORUM_ID=133 this is the Classic ASP forum.

hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating ssis packagte for sql server to sql serer Laxmikant_it ASP.NET 3.5 Professionals 0 November 26th, 2008 12:23 AM
Creating a new process to install SQL Server Exp tknnguyen C# 5 July 25th, 2008 03:24 AM
Creating a SQL Server DB through VB code tknnguyen VB Databases Basics 2 July 2nd, 2008 11:28 AM
Movie Ticketing System Machix General .NET 1 March 6th, 2005 06:57 PM
SQL Server - System log full Jane SQL Server 2000 3 December 23rd, 2004 10:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.