Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Catching the exception due to RequestValidation

Catching the exception due to RequestValidation

Scheduled Pinned Locked Moved ASP.NET
helphtmlquestiondiscussion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AprNgp
    wrote on last edited by
    #1

    How can the exception generated due to Page validation be caught ? I am having RequestValidation=True (which is default) on my page. Now, if the user enters some HTML tags, an exception is generated ... How can that error be caught in the page where it occurred, so that the user can be asked not to enter html tags .... there itself .... Please help me here .... :)

    Apurv A man is but the product of his thoughts. What he thinks, he becomes. .......Mahatma Gandhi Be the change you want to see in the world. .......Mahatma Gandhi

    A 1 Reply Last reply
    0
    • A AprNgp

      How can the exception generated due to Page validation be caught ? I am having RequestValidation=True (which is default) on my page. Now, if the user enters some HTML tags, an exception is generated ... How can that error be caught in the page where it occurred, so that the user can be asked not to enter html tags .... there itself .... Please help me here .... :)

      Apurv A man is but the product of his thoughts. What he thinks, he becomes. .......Mahatma Gandhi Be the change you want to see in the world. .......Mahatma Gandhi

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      are you talking about Page.IsValid property... you will only find that in postbacks.

      Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions
      Create .NET Templates

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups