Ask a Question related to ASP.NET General, Design and Development.
-
Philip Carnstam #1
Application variables
Hi,
What is the best way to maintain a value across multiple pages. I could of
course send the value by URL request, but I feel there should be a better
way.
Is the Session object the right way to go about it?
What I want is for the User to select a setting on the first page and then
this setting should be stored somewhere for the duration of the visit.
Thanks,
Philip
Philip Carnstam Guest
-
Problem with Application variables using Application.cfc
Hi guys, I'm using CFMX7 and with that the Application.cfc. I've defined the app variables using <cfset This.varname = "something"> I would like... -
application variables in a CFC
I have some application variables declared in my Application.cfm file, and I want to be able to use them in my CFC. However, I've noticed that if... -
need help on application variables
Hi, I need help on the usage of application variables... Can I populate application variables through my console application and use them in... -
DB Field name="application" and Application scope variables
Hi, There is DB Field application which overwrited ,as I see , Application scope variable Are there way to solve this problem without using... -
Global variables - application variables vs include file
What are the best methods for using global constants and variables? I've noticed that many people put all global constants in a file and include... -
Cesare #2
Application Variables
Hi,
I store a couple of application variables, but on one IIS server, the values
aren't saved. here's my global.asa...
<script language=vbscript runat=server>
Sub Application_OnStart
Application("CompanyName") = "Company Name"
Application("NovellNetware") = "false"
End Sub
</script>
the odd thing is that it 'seems' to be to do with whether I use
<script language=vbscript runat=server>
or
<script language="vbscript" runat="server">
I didn't think it mattered which you used, my pref would be with the quotes.
Unfortunately, this one server works with the opposite to all the others
I've so far encountered.
Anyone got any ideas?
TIA
Cesare
Cesare Guest
-
Aaron Bertrand - MVP #3
Re: Application Variables
global.asa will not be fired if the virtual directory is not marked as an
application. Instead, the global.asa from the root of the web site will be
used. (See [url]http://www.aspfaq.com/2076[/url])
Why not just do this in a common include file, instead of relying on
global.asa?
if application("CompanyName") = "" then
application("CompanyName") = "Company Name"
...
end if
"Cesare" <a@b.c> wrote in message
news:UbAhb.744$gj2.694@news-binary.blueyonder.co.uk...values> Hi,
>
> I store a couple of application variables, but on one IIS server, thequotes.> aren't saved. here's my global.asa...
>
> <script language=vbscript runat=server>
>
> Sub Application_OnStart
> Application("CompanyName") = "Company Name"
> Application("NovellNetware") = "false"
> End Sub
>
> </script>
>
> the odd thing is that it 'seems' to be to do with whether I use
>
> <script language=vbscript runat=server>
>
> or
>
> <script language="vbscript" runat="server">
>
> I didn't think it mattered which you used, my pref would be with the> Unfortunately, this one server works with the opposite to all the others
> I've so far encountered.
>
> Anyone got any ideas?
>
> TIA
>
> Cesare
>
>
Aaron Bertrand - MVP Guest
-
Teo #4
Application variables
Hey guys!!
I am building this application that I want users to log into my system with
their login and password stored on a DB.
After I do the check I want to clear them to access a specific folder on my
website that will be restricted only to them.
What is the best way to create an application variable file that will store
the user information and a specific timeout for when the user stops using
the system it kicks him out back to the login screen.
Is there a way to do this in ASP.NET?
I am familiar with ColdFusion but never done it with ASP.
Any help is appreciated,
Teo
Teo Guest
-
Scott Mitchell [MVP] #5
Re: Application variables
Teo wrote:
Teo, this is probably not the best newsgroup to ask this, try the> I am building this application that I want users to log into my system with
> their login and password stored on a DB.
> After I do the check I want to clear them to access a specific folder on my
> website that will be restricted only to them.
> What is the best way to create an application variable file that will store
> the user information and a specific timeout for when the user stops using
> the system it kicks him out back to the login screen.
> Is there a way to do this in ASP.NET?
> I am familiar with ColdFusion but never done it with ASP.
microsoft.public.dotnet.framework.aspnet newsgroup instead next time.
This newsgroup is for discussions on building custom, compiled server
controls.
In any event, ASP.NET 1.x does provide an easy-to-use forms-based
authentication piece, see this article for more info:
Using Forms-Based Authentication in ASP.NET
[url]http://www.4guysfromrolla.com/webtech/110701-1.shtml[/url]
ASP.NET 2.0 provides the membership functionality which makes doing this
stuff REALLY easy.
--
Scott Mitchell [ASP.NET MVP]
[email]mitchell@4GuysFromRolla.com[/email]
[url]http://www.4GuysFromRolla.com/ScottMitchell[/url]
Scott Mitchell [MVP] Guest



Reply With Quote

