Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 December 1st, 2004, 02:15 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts
Default calling a function from a link

Hi, I know that this will be a silly question, but I just started to play around with ASP. I have a link logout, and I want to be able to clear the session ID if it's clicked, but I can't figure out for the life of me how to do it in asp...

Can I just write a function, and call it like javascript.. onClick="..."???

THank you

 
Old December 1st, 2004, 04:36 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sureshbabu Send a message via Yahoo to sureshbabu
Default

Hi,
   In that link give one file name (ex:logout.asp).
<a href="logout.asp">Logout</a>

In that page do the entire process of killing all the session variables in VBscript. After that redirecrt to Login Page.

Thanks
Suresh.

 
Old December 2nd, 2004, 01:41 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is there no better way then calling an outside page, isn't there a way to link a function that would do the same, then simply redirect to another page?

 
Old December 2nd, 2004, 02:06 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

You can try calling the function using ONCLICK event of that.

Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling JS Function from VS? Ron Howerton Javascript 15 September 17th, 2008 02:35 PM
Calling a javascript function from C# SebFr C# 0 November 3rd, 2006 12:05 PM
function calling from another frame kanoorani Javascript How-To 1 August 27th, 2005 03:51 AM
calling a link into a popup (java) window dvdrony Classic ASP Basics 3 November 30th, 2004 08:21 PM





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