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 1552
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 requiredFieldVa lidator and
regularExpressi onValidator 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******** ******@TK2MSFTN GP10.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
requestValidati on="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****@PeterBlu m.com
Creator of "Profession al Validation And More" at http://www.peterblum.com/vam/home.aspx
"Lloyd Dupont" <net.galador@ld > wrote in message
news:eH******** ******@TK2MSFTN GP10.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.in fo> wrote in message
news:uL******** ******@TK2MSFTN GP12.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 requestValidati on="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****@PeterBlu m.com Creator of "Profession al Validation And More" at http://www.peterblum.com/vam/home.aspx
"Lloyd Dupont" <net.galador@ld > wrote in message news:eH******** ******@TK2MSFTN GP10.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 possible?").
But looking deeper I run into a problem:
Kirk said, that "validation works as expected", but in my experience it
works only to a certain degree "as expected".
|
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 control perform some client-side validation if username or
password are empty
|
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 invoked. I am probably wrong about that.
If I am suppose to use this function, the edits seemed to be invoked even when you have pressed the cancel and the "CausesValidation" is set to false. Is there a way to get around this (might just be an...
|
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 the
Page.Validate and Page.IsValid in the events that I want to use the
validation, but the validation always occurs. I am using version 1.14
Thanks
Troutbum
| |
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 have
a separate submit button which should validate the other fields.
This page on MSDN does what I want - almost!
...
|
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 linkbuttons which must not cause validation. I have
found a setting "causeValidation" to disable the validation.
Also on the page, I have a datagrid that I will edit lines on. I can click
|
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 custom exception
(ValidationException)
The exception bubbles up to the UI where it gets trapped:
Private Sub Page_Error(ByVal sender As Object, ByVal e As
|
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 following error.
Server Error in '/FileWayTest' Application.
--------------------------------------------------------------------------------
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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,...
|
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |