Pitfalls of using a Global Response.Redirect

G

Guest

Hello.

I have a common area of a website that sales agents use. I got sick and
tired of typing response.redirect(path)
so i implemented a shared function in Global that i can call and all i have
to do is pass an AgentService enum to it and global will response.redirect
for me.

So instead of typing

Response.Redirect(Global.GetApplicationPath &
"Agents/Pages/Agent_Profile.apsx?aaid=45" etc etc)

I just type

Global.GotoAgentService(Me.response, AgentService.MessageCenter)

With intellisense filling in most of it for me.

Are there any pitfalls to redirecting from Global...given that it's such
special file. I dont want to get caught out by some invisible hand.

TIA
Richard
 
A

Alvin Bruney [MVP]

No, this is ok. I don't know how much time you saved with this approach
since you could have accomplished the same by
Response.Redirect((string)AgentService.MessageCenter)
but if it pays the bills then it pays the bills...
 

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,756
Messages
2,569,540
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top