I am writing a 'blog control' which, amongst other things, let you edit some
HTML text.
When it's submited back there are validation problem and to my... *Horrible
Disbelief* it seems I can only enable/disable control validation on the
whole page, I found no way to do it on a per control basis!
I mean, come on, I would like to keep the default validation control
behavior but, on my HtmlEditControl I would like to test it myself to see if
the content is allright.. without breaking the rest of the page.
Is there anyway to do that?
--
I have taken a vow of poverty. If you want to really piss me off, send me
money. 4 1528
Have you tried using CustomValidator with your HtmlEditcontrol?
"Lloyd Dupont" wrote: I am writing a 'blog control' which, amongst other things, let you edit some HTML text. When it's submited back there are validation problem and to my... *Horrible Disbelief* it seems I can only enable/disable control validation on the whole page, I found no way to do it on a per control basis!
I mean, come on, I would like to keep the default validation control behavior but, on my HtmlEditControl I would like to test it myself to see if the content is allright.. without breaking the rest of the page.
Is there anyway to do that?
-- I have taken a vow of poverty. If you want to really piss me off, send me money.
Ur talking about the validation controls such as requiredFieldValidator and
regularExpressionValidator and such? In 1.x the controls don't support
that. In 2.0 they support grouping which would solve your problem.
In 1.1 you can use server side validation, turn validation off and
individually callthe Validate() method of each control. This is outlined
at: http://aspalliance.com/699#Page4 under
Several buttons associated with their own validators.
There are 3rd party controls out there that offer the grouped validation
feature of 2.0 for 1.1
Karl
-- http://www.openmymind.net/
"Lloyd Dupont" <net.galador@ld> wrote in message
news:eH**************@TK2MSFTNGP10.phx.gbl... I am writing a 'blog control' which, amongst other things, let you edit some HTML text. When it's submited back there are validation problem and to my... *Horrible Disbelief* it seems I can only enable/disable control validation on the whole page, I found no way to do it on a per control basis!
I mean, come on, I would like to keep the default validation control behavior but, on my HtmlEditControl I would like to test it myself to see if the content is allright.. without breaking the rest of the page.
Is there anyway to do that?
-- I have taken a vow of poverty. If you want to really piss me off, send me money.
Hi Lloyd,
My interpretation of this question is that you are talking about validation
from Cross Site Scripting attacks that is managed by the <@ Page
requestValidation="true"> property. By turning off that property, all inputs
on the page are no longer secure. You want to protect all inputs except the
HTML textbox, right?
Because ASP.NET doesn't have validation support on an input-by-input basis,
I built a commercial solution, "VAM: Visual Input Security"
( http://www.peterblum.com/vise/home.aspx) which is in my Professional
Validation And More product. Even if you don't want a commercial solution, I
encourage you to download the Trial version and read the "Overview" and
"Primer" sections in the Visual Input Security User's Guide. They will
educate you to the issues of implementing security correctly.
--- Peter Blum www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at http://www.peterblum.com/vam/home.aspx
"Lloyd Dupont" <net.galador@ld> wrote in message
news:eH**************@TK2MSFTNGP10.phx.gbl... I am writing a 'blog control' which, amongst other things, let you edit some HTML text. When it's submited back there are validation problem and to my... *Horrible Disbelief* it seems I can only enable/disable control validation on the whole page, I found no way to do it on a per control basis!
I mean, come on, I would like to keep the default validation control behavior but, on my HtmlEditControl I would like to test it myself to see if the content is allright.. without breaking the rest of the page.
Is there anyway to do that?
-- I have taken a vow of poverty. If you want to really piss me off, send me money.
It's exactly that! (the scripting attack thing, I mean)
However you also guessed right that I am not interested in commercial
product!
Sorry, but who knows if my (soon to come) shareware(s) is very successful, I
might!
Anyway I will read the info, thanks for that!
"Peter Blum" <PL****@Blum.info> wrote in message
news:uL**************@TK2MSFTNGP12.phx.gbl... Hi Lloyd,
My interpretation of this question is that you are talking about validation from Cross Site Scripting attacks that is managed by the <@ Page requestValidation="true"> property. By turning off that property, all inputs on the page are no longer secure. You want to protect all inputs except the HTML textbox, right?
Because ASP.NET doesn't have validation support on an input-by-input basis, I built a commercial solution, "VAM: Visual Input Security" (http://www.peterblum.com/vise/home.aspx) which is in my Professional Validation And More product. Even if you don't want a commercial solution, I encourage you to download the Trial version and read the "Overview" and "Primer" sections in the Visual Input Security User's Guide. They will educate you to the issues of implementing security correctly.
--- Peter Blum www.PeterBlum.com Email: PL****@PeterBlum.com Creator of "Professional Validation And More" at http://www.peterblum.com/vam/home.aspx
"Lloyd Dupont" <net.galador@ld> wrote in message news:eH**************@TK2MSFTNGP10.phx.gbl...I am writing a 'blog control' which, amongst other things, let you edit some HTML text. When it's submited back there are validation problem and to my... *Horrible Disbelief* it seems I can only enable/disable control validation on the whole page, I found no way to do it on a per control basis!
I mean, come on, I would like to keep the default validation control behavior but, on my HtmlEditControl I would like to test it myself to see if the content is allright.. without breaking the rest of the page.
Is there anyway to do that?
-- I have taken a vow of poverty. If you want to really piss me off, send me money.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Matthias Lohrer |
last post by:
Hi,
I'm playing around with the possibilities of Page.ParseControl.
Thanks to Kirk Allen Evans I got my example running
(Posting Juli, 17, "Re: Generating ASP.NET-Controls with XSLT...
|
by: NWx |
last post by:
Hi,
I implement forms authentication in my application.
So I have a login form.
Actually I have two custom Web controls, one to login and one to redirect
user to Register page
Login custom...
|
by: TJS |
last post by:
what are folks doing to get around limitation of one server form per page ?
|
by: Jim Heavey |
last post by:
When should you use the Page.Validate() method? I thought you would use this method if you have some Server side validation (CustomControl's) you wanted to use and this would cause them to be...
|
by: matt.torline |
last post by:
I would like to use validation controls when certain events are fired
and turn the validation off when other events are fired. I have sent
the page attribute for validateRequest="false", and used...
|
by: Liz |
last post by:
I have a page with several dropdownlists, several text boxes and
several buttons which perform calculations. I need to validate one
dropdownlist (not the whole page) with the click of one button. I...
|
by: David Colliver |
last post by:
Hi all,
I am having a slight problem that hopefully, someone can help me fix.
I have a form on a page. Many items on the form have validation controls
attached.
Also on this form are...
|
by: hardieca |
last post by:
Hi,
I've created an n-tier app where validation rules reside in the
business layer. When a webform is saved, a business object examines
its state, and if some property is invalid, throws a...
|
by: Ken Shimizu |
last post by:
I get an error when submitting an .ASPX page in Safari beta, MAC and PC
document.getElementbyId(‘FolderBrowser’).submit();
After the server side code has executed without problems I get the...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |