Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A potentially dangerous Request.Path
Message
De
01/09/2011 10:54:33
 
 
À
01/09/2011 10:40:40
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01522446
Message ID:
01522473
Vues:
29
>You can specify the replacement validation in web.config:
<configuration>
>  <system.web>
>    <httpRuntime requestValidationType = "{namespace}.CustomRequestValidation,{assemblyname}"/>
>  </system.web>
></configuration>
Thanks, but if I would like to keep control at the framework level, this seems like the place to put it. Here is the top of the GlobalBase class which inherits from System.Web.HttpApplication.
Imports System.Reflection
Imports System.Web
Imports System.Web.Util

Namespace Framework

    Public Class GlobalBase
        Inherits System.Web.HttpApplication

        Private oApp As Framework.App

<ConfigurationPropertyAttribute("requestValidationType", DefaultValue := "System.Web.Util.RequestValidator")> _
<StringValidatorAttribute(MinLength := )> _
Public Property RequestValidationType As String
            Get
                Return "CustomRequestValidation"
            End Get
        End Property
However, when doing so, the ) in the MinLenght definition is highlighted and the designer gives:

"Expression selected"

I do not know why it is complaining with the default.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform