473,651 Members | 2,634 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

handling validateRequest =true in code behind. is there a workarou

is there a way to avoid the validateRequest error page in my code behind
file? i can't seem to find a way to handle the error w/o an error code or
exception being thrown...

i am NOT looking for a link that explains what it does and what it doesn't
do OR the pros/cons, as i've already read through many of those. i just want
to know if i can code some sort of exception to catch for it so that the ugly
yellow/white microsoft generic page doesn't pop up.

there is no error code provided so i am assuming that the only way to avoid
this page is setting validateRequest =false and coding my own validation. i
DO want to use this feature though...is there such a way?

thanks all.
Nov 16 '05 #1
13 7571
One approach would be to catch the error from the Application_Err or
procedure in your Global.asax file. e.g.:

protected void Application_Err or(Object sender, EventArgs e)
{
Exception ex = Server.GetLastE rror();
if (ex is HttpRequestVali dationException )
{
// Do one thing.
}
else
{
// Do something else.
}
}

If this isn't a good solution for your purposes, it might help if you could
provide a few details concerning your desired outcome.

HTH,
Nicole

"R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
news:98******** *************** ***********@mic rosoft.com...
is there a way to avoid the validateRequest error page in my code behind
file? i can't seem to find a way to handle the error w/o an error code or
exception being thrown...

i am NOT looking for a link that explains what it does and what it doesn't
do OR the pros/cons, as i've already read through many of those. i just
want
to know if i can code some sort of exception to catch for it so that the
ugly
yellow/white microsoft generic page doesn't pop up.

there is no error code provided so i am assuming that the only way to
avoid
this page is setting validateRequest =false and coding my own validation.
i
DO want to use this feature though...is there such a way?

thanks all.

Nov 16 '05 #2
HttpRequestVali dationException can not be found. I have tried adding
System.Web and System.Runtime. InteropServices ;

Any idea what I am missing here? Thanks for your help this seems like it
would fix the problem as soon as I can get past this minor problem.

"Nicole Calinoiu" wrote:
One approach would be to catch the error from the Application_Err or
procedure in your Global.asax file. e.g.:

protected void Application_Err or(Object sender, EventArgs e)
{
Exception ex = Server.GetLastE rror();
if (ex is HttpRequestVali dationException )
{
// Do one thing.
}
else
{
// Do something else.
}
}

If this isn't a good solution for your purposes, it might help if you could
provide a few details concerning your desired outcome.

HTH,
Nicole

"R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
news:98******** *************** ***********@mic rosoft.com...
is there a way to avoid the validateRequest error page in my code behind
file? i can't seem to find a way to handle the error w/o an error code or
exception being thrown...

i am NOT looking for a link that explains what it does and what it doesn't
do OR the pros/cons, as i've already read through many of those. i just
want
to know if i can code some sort of exception to catch for it so that the
ugly
yellow/white microsoft generic page doesn't pop up.

there is no error code provided so i am assuming that the only way to
avoid
this page is setting validateRequest =false and coding my own validation.
i
DO want to use this feature though...is there such a way?

thanks all.


Nov 16 '05 #3
It's in the System.Web namespace, in the System.Web.dll assembly, but it was
only introduced in version 1.1 of the .NET Framework. If you're using
version 1.0, you won't see it, but you shouldn't be seeing request
validation exceptions either...
"R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
news:B5******** *************** ***********@mic rosoft.com...
HttpRequestVali dationException can not be found. I have tried adding
System.Web and System.Runtime. InteropServices ;

Any idea what I am missing here? Thanks for your help this seems like it
would fix the problem as soon as I can get past this minor problem.

"Nicole Calinoiu" wrote:
One approach would be to catch the error from the Application_Err or
procedure in your Global.asax file. e.g.:

protected void Application_Err or(Object sender, EventArgs e)
{
Exception ex = Server.GetLastE rror();
if (ex is HttpRequestVali dationException )
{
// Do one thing.
}
else
{
// Do something else.
}
}

If this isn't a good solution for your purposes, it might help if you
could
provide a few details concerning your desired outcome.

HTH,
Nicole

"R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
news:98******** *************** ***********@mic rosoft.com...
> is there a way to avoid the validateRequest error page in my code
> behind
> file? i can't seem to find a way to handle the error w/o an error code
> or
> exception being thrown...
>
> i am NOT looking for a link that explains what it does and what it
> doesn't
> do OR the pros/cons, as i've already read through many of those. i
> just
> want
> to know if i can code some sort of exception to catch for it so that
> the
> ugly
> yellow/white microsoft generic page doesn't pop up.
>
> there is no error code provided so i am assuming that the only way to
> avoid
> this page is setting validateRequest =false and coding my own
> validation.
> i
> DO want to use this feature though...is there such a way?
>
> thanks all.


Nov 16 '05 #4
Hi Nicole,

Definitely have 1.1 installed and "using System.Web" is at the top of the
Global.asax.cs file. HttpRequestVali dationException exception still isn't
found. Am I missing some reference (in the System.Web.dll assembly)? Or am
I referencing something incorrectly? I was assuming the using keyword with
System.Web would take care of the HttpRequestVali dationException not being
found.

These are my namespaces:
using System;
using System.Collecti ons;
using System.Componen tModel;
using System.Web;
using System.Web.Sess ionState;

Code for the app error:
protected void Application_Err or(Object sender, EventArgs e)
{
// Here we will catch the HttpRequestVali dationException
Exception ex = Server.GetLastE rror();
if (ex is HttpRequestVali dationException ) {
// Server.Transfer (some page);
}
}

Thanks for the quick replies.

"Nicole Calinoiu" wrote:
It's in the System.Web namespace, in the System.Web.dll assembly, but it was
only introduced in version 1.1 of the .NET Framework. If you're using
version 1.0, you won't see it, but you shouldn't be seeing request
validation exceptions either...
"R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
news:B5******** *************** ***********@mic rosoft.com...
HttpRequestVali dationException can not be found. I have tried adding
System.Web and System.Runtime. InteropServices ;

Any idea what I am missing here? Thanks for your help this seems like it
would fix the problem as soon as I can get past this minor problem.

"Nicole Calinoiu" wrote:
One approach would be to catch the error from the Application_Err or
procedure in your Global.asax file. e.g.:

protected void Application_Err or(Object sender, EventArgs e)
{
Exception ex = Server.GetLastE rror();
if (ex is HttpRequestVali dationException )
{
// Do one thing.
}
else
{
// Do something else.
}
}

If this isn't a good solution for your purposes, it might help if you
could
provide a few details concerning your desired outcome.

HTH,
Nicole

"R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
news:98******** *************** ***********@mic rosoft.com...
> is there a way to avoid the validateRequest error page in my code
> behind
> file? i can't seem to find a way to handle the error w/o an error code
> or
> exception being thrown...
>
> i am NOT looking for a link that explains what it does and what it
> doesn't
> do OR the pros/cons, as i've already read through many of those. i
> just
> want
> to know if i can code some sort of exception to catch for it so that
> the
> ugly
> yellow/white microsoft generic page doesn't pop up.
>
> there is no error code provided so i am assuming that the only way to
> avoid
> this page is setting validateRequest =false and coding my own
> validation.
> i
> DO want to use this feature though...is there such a way?
>
> thanks all.


Nov 16 '05 #5
What exactly do you mean by "HttpRequestVal idationExceptio n exception still
isn't found"? Are you receiving a compile-time error? A runtime error?
Something else entirely?
"R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
news:28******** *************** ***********@mic rosoft.com...
Hi Nicole,

Definitely have 1.1 installed and "using System.Web" is at the top of the
Global.asax.cs file. HttpRequestVali dationException exception still isn't
found. Am I missing some reference (in the System.Web.dll assembly)? Or
am
I referencing something incorrectly? I was assuming the using keyword
with
System.Web would take care of the HttpRequestVali dationException not being
found.

These are my namespaces:
using System;
using System.Collecti ons;
using System.Componen tModel;
using System.Web;
using System.Web.Sess ionState;

Code for the app error:
protected void Application_Err or(Object sender, EventArgs e)
{
// Here we will catch the HttpRequestVali dationException
Exception ex = Server.GetLastE rror();
if (ex is HttpRequestVali dationException ) {
// Server.Transfer (some page);
}
}

Thanks for the quick replies.

"Nicole Calinoiu" wrote:
It's in the System.Web namespace, in the System.Web.dll assembly, but it
was
only introduced in version 1.1 of the .NET Framework. If you're using
version 1.0, you won't see it, but you shouldn't be seeing request
validation exceptions either...
"R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
news:B5******** *************** ***********@mic rosoft.com...
> HttpRequestVali dationException can not be found. I have tried adding
> System.Web and System.Runtime. InteropServices ;
>
> Any idea what I am missing here? Thanks for your help this seems like
> it
> would fix the problem as soon as I can get past this minor problem.
>
> "Nicole Calinoiu" wrote:
>
>> One approach would be to catch the error from the Application_Err or
>> procedure in your Global.asax file. e.g.:
>>
>> protected void Application_Err or(Object sender, EventArgs e)
>> {
>> Exception ex = Server.GetLastE rror();
>> if (ex is HttpRequestVali dationException )
>> {
>> // Do one thing.
>> }
>> else
>> {
>> // Do something else.
>> }
>> }
>>
>> If this isn't a good solution for your purposes, it might help if you
>> could
>> provide a few details concerning your desired outcome.
>>
>> HTH,
>> Nicole
>>
>>
>>
>> "R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
>> news:98******** *************** ***********@mic rosoft.com...
>> > is there a way to avoid the validateRequest error page in my code
>> > behind
>> > file? i can't seem to find a way to handle the error w/o an error
>> > code
>> > or
>> > exception being thrown...
>> >
>> > i am NOT looking for a link that explains what it does and what it
>> > doesn't
>> > do OR the pros/cons, as i've already read through many of those. i
>> > just
>> > want
>> > to know if i can code some sort of exception to catch for it so that
>> > the
>> > ugly
>> > yellow/white microsoft generic page doesn't pop up.
>> >
>> > there is no error code provided so i am assuming that the only way
>> > to
>> > avoid
>> > this page is setting validateRequest =false and coding my own
>> > validation.
>> > i
>> > DO want to use this feature though...is there such a way?
>> >
>> > thanks all.
>>
>>
>>


Nov 16 '05 #6
The validate request occurs before the OnInit event of the page, so if
you want to do some sort of catch and continue or special case error
handling you'll need to jump through some hoops:
http://blogs.msdn.com/kaevans/archiv...7/07/9791.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 3 Nov 2004 10:29:12 -0800, "R Reyes"
<RR****@discuss ions.microsoft. com> wrote:
HttpRequestVal idationExceptio n can not be found. I have tried adding
System.Web and System.Runtime. InteropServices ;

Any idea what I am missing here? Thanks for your help this seems like it
would fix the problem as soon as I can get past this minor problem.

"Nicole Calinoiu" wrote:
One approach would be to catch the error from the Application_Err or
procedure in your Global.asax file. e.g.:

protected void Application_Err or(Object sender, EventArgs e)
{
Exception ex = Server.GetLastE rror();
if (ex is HttpRequestVali dationException )
{
// Do one thing.
}
else
{
// Do something else.
}
}

If this isn't a good solution for your purposes, it might help if you could
provide a few details concerning your desired outcome.

HTH,
Nicole

"R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
news:98******** *************** ***********@mic rosoft.com...
> is there a way to avoid the validateRequest error page in my code behind
> file? i can't seem to find a way to handle the error w/o an error code or
> exception being thrown...
>
> i am NOT looking for a link that explains what it does and what it doesn't
> do OR the pros/cons, as i've already read through many of those. i just
> want
> to know if i can code some sort of exception to catch for it so that the
> ugly
> yellow/white microsoft generic page doesn't pop up.
>
> there is no error code provided so i am assuming that the only way to
> avoid
> this page is setting validateRequest =false and coding my own validation.
> i
> DO want to use this feature though...is there such a way?
>
> thanks all.



Nov 16 '05 #7
Sorry if I was unclear, it's a compile time error. Right now, I have to
comment the line out to get my website working.

When uncommented this error appears:
Global.asax.cs( 48): The type or namespace name
'HttpRequestVal idationExceptio n' could not be found (are you missing a using
directive or an assembly reference?)

As from the last post, I have included System.Web, but it does not seem to
have a definition for HttpRequestVali dationException .

"Nicole Calinoiu" wrote:
What exactly do you mean by "HttpRequestVal idationExceptio n exception still
isn't found"? Are you receiving a compile-time error? A runtime error?
Something else entirely?
"R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
news:28******** *************** ***********@mic rosoft.com...
Hi Nicole,

Definitely have 1.1 installed and "using System.Web" is at the top of the
Global.asax.cs file. HttpRequestVali dationException exception still isn't
found. Am I missing some reference (in the System.Web.dll assembly)? Or
am
I referencing something incorrectly? I was assuming the using keyword
with
System.Web would take care of the HttpRequestVali dationException not being
found.

These are my namespaces:
using System;
using System.Collecti ons;
using System.Componen tModel;
using System.Web;
using System.Web.Sess ionState;

Code for the app error:
protected void Application_Err or(Object sender, EventArgs e)
{
// Here we will catch the HttpRequestVali dationException
Exception ex = Server.GetLastE rror();
if (ex is HttpRequestVali dationException ) {
// Server.Transfer (some page);
}
}

Thanks for the quick replies.

"Nicole Calinoiu" wrote:
It's in the System.Web namespace, in the System.Web.dll assembly, but it
was
only introduced in version 1.1 of the .NET Framework. If you're using
version 1.0, you won't see it, but you shouldn't be seeing request
validation exceptions either...
"R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
news:B5******** *************** ***********@mic rosoft.com...
> HttpRequestVali dationException can not be found. I have tried adding
> System.Web and System.Runtime. InteropServices ;
>
> Any idea what I am missing here? Thanks for your help this seems like
> it
> would fix the problem as soon as I can get past this minor problem.
>
> "Nicole Calinoiu" wrote:
>
>> One approach would be to catch the error from the Application_Err or
>> procedure in your Global.asax file. e.g.:
>>
>> protected void Application_Err or(Object sender, EventArgs e)
>> {
>> Exception ex = Server.GetLastE rror();
>> if (ex is HttpRequestVali dationException )
>> {
>> // Do one thing.
>> }
>> else
>> {
>> // Do something else.
>> }
>> }
>>
>> If this isn't a good solution for your purposes, it might help if you
>> could
>> provide a few details concerning your desired outcome.
>>
>> HTH,
>> Nicole
>>
>>
>>
>> "R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
>> news:98******** *************** ***********@mic rosoft.com...
>> > is there a way to avoid the validateRequest error page in my code
>> > behind
>> > file? i can't seem to find a way to handle the error w/o an error
>> > code
>> > or
>> > exception being thrown...
>> >
>> > i am NOT looking for a link that explains what it does and what it
>> > doesn't
>> > do OR the pros/cons, as i've already read through many of those. i
>> > just
>> > want
>> > to know if i can code some sort of exception to catch for it so that
>> > the
>> > ugly
>> > yellow/white microsoft generic page doesn't pop up.
>> >
>> > there is no error code provided so i am assuming that the only way
>> > to
>> > avoid
>> > this page is setting validateRequest =false and coding my own
>> > validation.
>> > i
>> > DO want to use this feature though...is there such a way?
>> >
>> > thanks all.
>>
>>
>>


Nov 16 '05 #8
Hmm... It really should work if version 1.1 of the framework is being used.
Do you have any versions other than 1.1 installed on your developement
machine? Are you perhaps using VStudio 2002 to edit the project?

"R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
news:AB******** *************** ***********@mic rosoft.com...
Sorry if I was unclear, it's a compile time error. Right now, I have to
comment the line out to get my website working.

When uncommented this error appears:
Global.asax.cs( 48): The type or namespace name
'HttpRequestVal idationExceptio n' could not be found (are you missing a
using
directive or an assembly reference?)

As from the last post, I have included System.Web, but it does not seem to
have a definition for HttpRequestVali dationException .

"Nicole Calinoiu" wrote:
What exactly do you mean by "HttpRequestVal idationExceptio n exception
still
isn't found"? Are you receiving a compile-time error? A runtime error?
Something else entirely?
"R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
news:28******** *************** ***********@mic rosoft.com...
> Hi Nicole,
>
> Definitely have 1.1 installed and "using System.Web" is at the top of
> the
> Global.asax.cs file. HttpRequestVali dationException exception still
> isn't
> found. Am I missing some reference (in the System.Web.dll assembly)?
> Or
> am
> I referencing something incorrectly? I was assuming the using keyword
> with
> System.Web would take care of the HttpRequestVali dationException not
> being
> found.
>
> These are my namespaces:
> using System;
> using System.Collecti ons;
> using System.Componen tModel;
> using System.Web;
> using System.Web.Sess ionState;
>
> Code for the app error:
> protected void Application_Err or(Object sender, EventArgs e)
> {
> // Here we will catch the HttpRequestVali dationException
> Exception ex = Server.GetLastE rror();
> if (ex is HttpRequestVali dationException ) {
> // Server.Transfer (some page);
> }
> }
>
> Thanks for the quick replies.
>
> "Nicole Calinoiu" wrote:
>
>> It's in the System.Web namespace, in the System.Web.dll assembly, but
>> it
>> was
>> only introduced in version 1.1 of the .NET Framework. If you're using
>> version 1.0, you won't see it, but you shouldn't be seeing request
>> validation exceptions either...
>>
>>
>> "R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
>> news:B5******** *************** ***********@mic rosoft.com...
>> > HttpRequestVali dationException can not be found. I have tried
>> > adding
>> > System.Web and System.Runtime. InteropServices ;
>> >
>> > Any idea what I am missing here? Thanks for your help this seems
>> > like
>> > it
>> > would fix the problem as soon as I can get past this minor problem.
>> >
>> > "Nicole Calinoiu" wrote:
>> >
>> >> One approach would be to catch the error from the Application_Err or
>> >> procedure in your Global.asax file. e.g.:
>> >>
>> >> protected void Application_Err or(Object sender, EventArgs e)
>> >> {
>> >> Exception ex = Server.GetLastE rror();
>> >> if (ex is HttpRequestVali dationException )
>> >> {
>> >> // Do one thing.
>> >> }
>> >> else
>> >> {
>> >> // Do something else.
>> >> }
>> >> }
>> >>
>> >> If this isn't a good solution for your purposes, it might help if
>> >> you
>> >> could
>> >> provide a few details concerning your desired outcome.
>> >>
>> >> HTH,
>> >> Nicole
>> >>
>> >>
>> >>
>> >> "R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
>> >> news:98******** *************** ***********@mic rosoft.com...
>> >> > is there a way to avoid the validateRequest error page in my code
>> >> > behind
>> >> > file? i can't seem to find a way to handle the error w/o an
>> >> > error
>> >> > code
>> >> > or
>> >> > exception being thrown...
>> >> >
>> >> > i am NOT looking for a link that explains what it does and what
>> >> > it
>> >> > doesn't
>> >> > do OR the pros/cons, as i've already read through many of those.
>> >> > i
>> >> > just
>> >> > want
>> >> > to know if i can code some sort of exception to catch for it so
>> >> > that
>> >> > the
>> >> > ugly
>> >> > yellow/white microsoft generic page doesn't pop up.
>> >> >
>> >> > there is no error code provided so i am assuming that the only
>> >> > way
>> >> > to
>> >> > avoid
>> >> > this page is setting validateRequest =false and coding my own
>> >> > validation.
>> >> > i
>> >> > DO want to use this feature though...is there such a way?
>> >> >
>> >> > thanks all.
>> >>
>> >>
>> >>
>>
>>
>>


Nov 16 '05 #9
Acutally funny you mentioned that...I am using VS.NET to edit the project,
but in the "About..." section it says "Microsoft Development Environment 2002
Version 7.0.9466". It also says Microsoft .NET Framework 1.0 Version
1.0.3705"

But in the control panel it says that I have Microsoft .NET Framework 1.1
installed. Or maybe that has nothing to do with which version VS.NET and
ASP.NET is using?

What will I need to reconfig?

"Nicole Calinoiu" wrote:
Hmm... It really should work if version 1.1 of the framework is being used.
Do you have any versions other than 1.1 installed on your developement
machine? Are you perhaps using VStudio 2002 to edit the project?

"R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
news:AB******** *************** ***********@mic rosoft.com...
Sorry if I was unclear, it's a compile time error. Right now, I have to
comment the line out to get my website working.

When uncommented this error appears:
Global.asax.cs( 48): The type or namespace name
'HttpRequestVal idationExceptio n' could not be found (are you missing a
using
directive or an assembly reference?)

As from the last post, I have included System.Web, but it does not seem to
have a definition for HttpRequestVali dationException .

"Nicole Calinoiu" wrote:
What exactly do you mean by "HttpRequestVal idationExceptio n exception
still
isn't found"? Are you receiving a compile-time error? A runtime error?
Something else entirely?
"R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
news:28******** *************** ***********@mic rosoft.com...
> Hi Nicole,
>
> Definitely have 1.1 installed and "using System.Web" is at the top of
> the
> Global.asax.cs file. HttpRequestVali dationException exception still
> isn't
> found. Am I missing some reference (in the System.Web.dll assembly)?
> Or
> am
> I referencing something incorrectly? I was assuming the using keyword
> with
> System.Web would take care of the HttpRequestVali dationException not
> being
> found.
>
> These are my namespaces:
> using System;
> using System.Collecti ons;
> using System.Componen tModel;
> using System.Web;
> using System.Web.Sess ionState;
>
> Code for the app error:
> protected void Application_Err or(Object sender, EventArgs e)
> {
> // Here we will catch the HttpRequestVali dationException
> Exception ex = Server.GetLastE rror();
> if (ex is HttpRequestVali dationException ) {
> // Server.Transfer (some page);
> }
> }
>
> Thanks for the quick replies.
>
> "Nicole Calinoiu" wrote:
>
>> It's in the System.Web namespace, in the System.Web.dll assembly, but
>> it
>> was
>> only introduced in version 1.1 of the .NET Framework. If you're using
>> version 1.0, you won't see it, but you shouldn't be seeing request
>> validation exceptions either...
>>
>>
>> "R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
>> news:B5******** *************** ***********@mic rosoft.com...
>> > HttpRequestVali dationException can not be found. I have tried
>> > adding
>> > System.Web and System.Runtime. InteropServices ;
>> >
>> > Any idea what I am missing here? Thanks for your help this seems
>> > like
>> > it
>> > would fix the problem as soon as I can get past this minor problem.
>> >
>> > "Nicole Calinoiu" wrote:
>> >
>> >> One approach would be to catch the error from the Application_Err or
>> >> procedure in your Global.asax file. e.g.:
>> >>
>> >> protected void Application_Err or(Object sender, EventArgs e)
>> >> {
>> >> Exception ex = Server.GetLastE rror();
>> >> if (ex is HttpRequestVali dationException )
>> >> {
>> >> // Do one thing.
>> >> }
>> >> else
>> >> {
>> >> // Do something else.
>> >> }
>> >> }
>> >>
>> >> If this isn't a good solution for your purposes, it might help if
>> >> you
>> >> could
>> >> provide a few details concerning your desired outcome.
>> >>
>> >> HTH,
>> >> Nicole
>> >>
>> >>
>> >>
>> >> "R Reyes" <RR****@discuss ions.microsoft. com> wrote in message
>> >> news:98******** *************** ***********@mic rosoft.com...
>> >> > is there a way to avoid the validateRequest error page in my code
>> >> > behind
>> >> > file? i can't seem to find a way to handle the error w/o an
>> >> > error
>> >> > code
>> >> > or
>> >> > exception being thrown...
>> >> >
>> >> > i am NOT looking for a link that explains what it does and what
>> >> > it
>> >> > doesn't
>> >> > do OR the pros/cons, as i've already read through many of those.
>> >> > i
>> >> > just
>> >> > want
>> >> > to know if i can code some sort of exception to catch for it so
>> >> > that
>> >> > the
>> >> > ugly
>> >> > yellow/white microsoft generic page doesn't pop up.
>> >> >
>> >> > there is no error code provided so i am assuming that the only
>> >> > way
>> >> > to
>> >> > avoid
>> >> > this page is setting validateRequest =false and coding my own
>> >> > validation.
>> >> > i
>> >> > DO want to use this feature though...is there such a way?
>> >> >
>> >> > thanks all.
>> >>
>> >>
>> >>
>>
>>
>>


Nov 16 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1764
by: djw | last post by:
c.l.p- I am having trouble understanding how one is supposed to correctly utilize try:...except:...finally: in real code. If I have a block of code like: def foo(): try: ... some code that can raise an exception ...
9
1980
by: DFS | last post by:
Anyone written any code to work with the CommandBar object? I have a custom menubar, with 6 buttons, and up to 3 levels of nested menus, such as: File File | Print (that's 2 levels)
1
2226
by: Tom | last post by:
Suppose you have code structure like this: Option Explicit Dim MyVariable As Single Private Sub CallingProcedure() Call CalledProcedure() ....Do This ... End Sub Private Sub CalledProcedure()
4
2843
by: SteadySteps | last post by:
Hi I migrated a project which compiles correctly on VC 6.0 to VS 2002. However now all I get several warning that all the statements within catch blocks are "unreachable code". How can I correct this ? C++ exceptions are enabled ( /EHsc ). Thanks. SS
6
1493
by: C# Learner | last post by:
In the following two code blocks, DoSomethingUseful throws AnException, while neither of the other called methods throw any exceptions. Which of the code blocks is better (in terms of readability, maintainability, etc.), in your opinions? A { Start(); try {
3
1628
by: dhussong | last post by:
I'm trying to implement a generic exception handling routine that will write information to a text file at the time the exception occurred. I am using the Microsoft Application Block for Exception Handling to write to a text file. This is working great plus I get the call stack which is an added bonus. What I really want to get is the value of parameters and variables in each method in the call stack at the time of the exception. I know I...
1
1686
by: Paramveer.Singh | last post by:
Hi all! I was looking into the postgres8.0 code for exception handling, and it seems that the grammer treats an exception condition as opt_lblname. This means that I can pass any arbitrary string as an exception condition. This also means that implementation of user defined exceptions would be in trouble. Note that the execution would not be affected(for now, i.e. without user defined exceptions), it's just a compiler vulnerability.
3
2317
by: jonamukundu | last post by:
Hi everyone out there I have a rather funny problem. Error handling code routines do not seem to work on my laptop. I still get the default error messages when i test. One my desktop the code works just fine and i get the custom error messages Actually i have tried five examples which are working on my desktop but not on my laptop. I tried fix and repair office but the problem still persists thanks here is an example:
3
2380
by: neha_chhatre | last post by:
hey please help me execute the code on ubuntu in C #include<stdio.h> #include<stdlib.h> int main() { FILE *fp; char ch; float ticktock;
0
8347
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8792
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8457
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7294
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6157
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4280
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1905
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.