Scrolling Warning on Bottom of Page

M

Marina

Well, there is no way to tell from ASP.NET point of view. It can't tell
whether the server it is on is production or QA.

I would suggest creating such a banner, and have code in your page, to
display it if a Web.config setting is set. You would then set this setting
on the QA server, but not in production.
 
C

Curt_C [MVP]

we have a header where we pull the App name from a value set in the
Web.config. We maintian seperate web.config files on the seperate systems,
and put a (DEV) or (QA) or whatever in the App name value we used.
 
K

Kevin Spencer

It sounds like you're talking about the status bar at the bottom of the
window. This can be manipulated via JavaScript. The window.status property
is the text you see in the Status bar. To make it scroll, you loop through a
string, adding a letter at a time, and setting the window.status property
each time.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
C

Charlie Nilsson [MSFT]

Separate Web.Configs is the way to go for disparate staging / qa / prod
servers. Maintenance is easy, and it's idiot-proof if you have
unknowledgable IT guys doing server updates. It also lets you really
control the environments if you have different db's / backends /
filesystems for these environments.

Where / If you present this information to the user is up to you -- in
general I think it's a bad idea since you're altering the output of your
application. If your users / testers are really getting confused, maybe
you need new ones =) If you absolutely must present it somewhere, I
suggest a login screen, or on the first screen the testers see.

Also, keep in mind that it's useful to have a global constant or enum that
describes the environment the server is in. This is helpful in logging,
errors, etc... If you do that, make sure you're only loading the
environment data once, and keep it in a constant / static variable so you
don't waste time on lookups while your app is running.
 
P

paul reed

Hello,

I have two environments, QA and Production. When the users are testing, I
want them to know they are in the QA environment versus the Production
enviroment. One solution would be to use the bottom area of the ASPX page
(not sure what it is called) that informs you what page is loading and then
it says Done upon completion. At some websites I see this used to present a
scrolling banner in that area. How does one do this...what is the property
(of the Page I guess).

Any other ideas on how to distinguish the two environments would also be
most welcome.

Regards,

Paul
 
C

Curt_C [MVP]

we use it in a header control, but you could use it anywhere... Page Title,
status bar, on the page, anywhere you like.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
 
P

paul reed

Curt,

Thanks...but where do you display this value you extract from the web.config
file?

Thanks,

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top