G
Guest
Hi everyone!
1) How can I include 'debug' mode code in my asp.net 2005 project?
i.e. in visual basic 6 (where I come from) the developer could check if the
application was running from within the IDE and
write some code that would run only then.
How can I do that in asp.net 2005?
I've seen an example here:
http://weblogs.asp.net/scottgu/arch...ow-Detailed-Error-Messages-to-Developers.aspx
that is checking the user role, but couldn't make it work,
I logon to a domain and can't figure out what role the user is in,
but, besides that, insn't aspnet user the one that logs on?
Tried to check is debug="true" is defined in web.config,
but couldn't figure a way to check this,
how do I check if debug is equal to true or false in web.config?
2) What I would like to do using the above is extend the session to 500
minutes for example,
when developing and let it to 20 minutes for web site visitors.
The above example talks about global.asax code,
but I have session timeout defined in web.config too,
so, which one is loaded first?
web.config or global.asax?
Is it possible to override the session timeout defined in web.config?
And how?
I would like it to never expire,
is it a good idea to set it to 500 minutes or is there a more 'elegant' way
to do that?
Thanks in advance!
1) How can I include 'debug' mode code in my asp.net 2005 project?
i.e. in visual basic 6 (where I come from) the developer could check if the
application was running from within the IDE and
write some code that would run only then.
How can I do that in asp.net 2005?
I've seen an example here:
http://weblogs.asp.net/scottgu/arch...ow-Detailed-Error-Messages-to-Developers.aspx
that is checking the user role, but couldn't make it work,
I logon to a domain and can't figure out what role the user is in,
but, besides that, insn't aspnet user the one that logs on?
Tried to check is debug="true" is defined in web.config,
but couldn't figure a way to check this,
how do I check if debug is equal to true or false in web.config?
2) What I would like to do using the above is extend the session to 500
minutes for example,
when developing and let it to 20 minutes for web site visitors.
The above example talks about global.asax code,
but I have session timeout defined in web.config too,
so, which one is loaded first?
web.config or global.asax?
Is it possible to override the session timeout defined in web.config?
And how?
I would like it to never expire,
is it a good idea to set it to 500 minutes or is there a more 'elegant' way
to do that?
Thanks in advance!