By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,454 Members | 1,804 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,454 IT Pros & Developers. It's quick & easy.

Calling Page in VB.NET class? and Forcing a page error?

P: n/a
Do I have access to the name of the page calling a class from inside
the class?

What's the cleanest way to force a page error from inside a class so
that I'm automatically redirected to the configured web.config Error
page ?

And if I check the referring page from inside the Error page, which it
show me the page that caused the error?

Thanks for any help or information.

Nov 13 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
u can access the page by
HTTPContext.Current
Force a page error by using Throw New Exception (VB), C# might be
something similar
On Nov 14, 7:49 am, jobs <j...@webdos.comwrote:
Do I have access to the name of the page calling a class from inside
the class?

What's the cleanest way to force a page error from inside a class so
that I'm automatically redirected to the configured web.config Error
page ?

And if I check the referring page from inside the Error page, which it
show me the page that caused the error?

Thanks for any help or information.

Nov 14 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.