Wrox Programmer Forums
|
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
 
Old May 2nd, 2005, 12:09 PM
Authorized User
 
Join Date: Apr 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to rain_uk
Default Redirect page using NTUsername

Hi i am new to ASP & SQL, so the problems i have:-

I am designing an intranet for the company i work for. I want to redirect a page based on there NT Username. I will store the usernames & access levels in a SQL database which i can do via importing an Excel spreadsheet, but i then only want certain people to access the search & update page, and everyone else to gets the search only page. I know how to get the LOGON_USER details but i dont how to get the redirect to work.

They also want me to do is create a log file for everytime someone updates a persons details. Details to save are there NTUsername & the persons name that was updated.

The last thing i have to do is stats page for the amount of searches per person, and create a webpage to display these stats (both searches via NTLogon & number of searches per person on the database), so they can see who gets the most searches.

Any help is appreciated :)
Lee



 
Old September 28th, 2005, 08:42 AM
Authorized User
 
Join Date: Sep 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

to redirect, use <%Response.Redirect "xxx.asp"%>

to find the count, use
        Set PageCnt = Server.CreateObject("MSWC.PageCounter")
    PageCnt.PageHit()
    Hits = PageCnt.Hits

i hope this is what you're asking.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Page redirect help jroxit Classic ASP Basics 7 August 11th, 2008 11:01 AM
redirect to page other than default page sarah lee ASP.NET 1.0 and 1.1 Basics 3 December 15th, 2006 05:45 PM
Before Page Redirect b_karmakar ASP.NET 1.0 and 1.1 Professional 0 July 31st, 2006 01:00 AM
Redirect to new page without closing current page peter2004 ASP.NET 2.0 Basics 5 June 5th, 2006 08:49 PM





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