Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO 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 January 31st, 2005, 08:46 AM
Registered User
 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default global.as file is not working(solved)

Hi all..
        for me the global.asa file is not working.i have placed this in root directory of my website and i am not using any objects which won't work in global.asa file.i dont know the reason. is i need to change any properties in iis web server to make it work?.
can you please help me.


thanks in advance.
 
Old January 31st, 2005, 01:11 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Hi,
Are u getting any error in global.asa? Please paste the code from global.asa.

Om Prakash
 
Old February 1st, 2005, 01:35 AM
Registered User
 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi om praksh,

thanks for your reply.

yaa here i am pasting the code form global.asa

<script language="vbscript" runat="server">
    sub Session_OnStart
        Application("username")= "rajkumar"
    end sub
</script>

in login page i am trying to get this application("username") value but its not displaying that value.

actually this is not my requirement .but if it works then my problem is solved

 
Old February 1st, 2005, 01:46 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Hi,

 I tried adding ur code in global.asa, and i can read the application variable from any other ASP page from that virtual directory.

Have u created virtual directory in ur test machine?

Om Prakash
 
Old February 1st, 2005, 11:54 PM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

Check this thread :: http://www.sitepoint.com/forums/arch...p/t-22702.html

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
 
Old February 2nd, 2005, 02:51 AM
Registered User
 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi prakash.
thanks a lot
now i have created virtual directory for my folder.so it is working.
once again thanks a lot.
bye








Similar Threads
Thread Thread Starter Forum Replies Last Post
WroxUnited not working with IIS Solved TieDyeGeek BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 October 13th, 2007 04:28 PM
document.element isn't working in aspx page SOLVED logidude ASP.NET 1.0 and 1.1 Basics 2 June 29th, 2007 01:44 PM
Global.asa File Help gmoney060 Classic ASP Basics 19 September 27th, 2004 10:13 PM





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