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

Discussion in 'ASP .Net' started by jobs, Nov 13, 2007.

  1. jobs

    jobs Guest

    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.
    jobs, Nov 13, 2007
    #1
    1. Advertising

  2. jobs

    Nick Chan Guest

    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 <> wrote:
    > 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.
    Nick Chan, Nov 14, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Art Thomas
    Replies:
    3
    Views:
    583
    Art Thomas
    Jul 26, 2003
  2. =?Utf-8?B?RGFuIEtyYWltYW4=?=

    forcing cookies to use SSL and redirecting to custom error page

    =?Utf-8?B?RGFuIEtyYWltYW4=?=, Dec 30, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    455
    =?Utf-8?B?RGFuIEtyYWltYW4=?=
    Dec 30, 2005
  3. E11
    Replies:
    1
    Views:
    4,750
    Thomas Weidenfeller
    Oct 12, 2005
  4. Replies:
    3
    Views:
    600
  5. Tom Anderson

    Idiom for forcing class loading?

    Tom Anderson, Nov 18, 2009, in forum: Java
    Replies:
    29
    Views:
    989
    Tom Anderson
    Nov 26, 2009
Loading...

Share This Page