473,320 Members | 1,979 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

explanation of excerpt from article

hey all,

i was reading this article on validation controls and came across this
paragraph:

Server Side Validation

ASP.NET will always execute validation checks on the server when a button
click event arrives requiring validation. You can disable any of the
validation controls by setting the Enabled property to false.

What does the first sentence mean?

thanks,
rodchar
Nov 19 '05 #1
8 911
When you use validation controls, the data is checked to be valid as soon as
the request arrives at the server.
(BTW, it's also checked for validity on the client when possible.)

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:C7**********************************@microsof t.com...
hey all,

i was reading this article on validation controls and came across this
paragraph:

Server Side Validation

ASP.NET will always execute validation checks on the server when a button
click event arrives requiring validation. You can disable any of the
validation controls by setting the Enabled property to false.

What does the first sentence mean?

thanks,
rodchar

Nov 19 '05 #2
so when you say "the data is checked to be valid" does that mean the data is
assumed to be valid?

I mean where would I put my validation code on the server?

"Steve C. Orr [MVP, MCSD]" wrote:
When you use validation controls, the data is checked to be valid as soon as
the request arrives at the server.
(BTW, it's also checked for validity on the client when possible.)

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:C7**********************************@microsof t.com...
hey all,

i was reading this article on validation controls and came across this
paragraph:

Server Side Validation

ASP.NET will always execute validation checks on the server when a button
click event arrives requiring validation. You can disable any of the
validation controls by setting the Enabled property to false.

What does the first sentence mean?

thanks,
rodchar


Nov 19 '05 #3
actually is not checked until you reference Page.IsValid

-- bruce (sqlwork.com)
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:uZ**************@TK2MSFTNGP14.phx.gbl...
| When you use validation controls, the data is checked to be valid as soon
as
| the request arrives at the server.
| (BTW, it's also checked for validity on the client when possible.)
|
| --
| I hope this helps,
| Steve C. Orr, MCSD, MVP
| http://Steve.Orr.net
|
|
| "rodchar" <ro*****@discussions.microsoft.com> wrote in message
| news:C7**********************************@microsof t.com...
| > hey all,
| >
| > i was reading this article on validation controls and came across this
| > paragraph:
| >
| > Server Side Validation
| >
| > ASP.NET will always execute validation checks on the server when a
button
| > click event arrives requiring validation. You can disable any of the
| > validation controls by setting the Enabled property to false.
| >
| > What does the first sentence mean?
| >
| > thanks,
| > rodchar
|
|
Nov 19 '05 #4
If you're using the validation controls, this is all handled automatically
for you, so you wouldn't really have any validation code.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:4C**********************************@microsof t.com...
so when you say "the data is checked to be valid" does that mean the data
is
assumed to be valid?

I mean where would I put my validation code on the server?

"Steve C. Orr [MVP, MCSD]" wrote:
When you use validation controls, the data is checked to be valid as soon
as
the request arrives at the server.
(BTW, it's also checked for validity on the client when possible.)

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:C7**********************************@microsof t.com...
> hey all,
>
> i was reading this article on validation controls and came across this
> paragraph:
>
> Server Side Validation
>
> ASP.NET will always execute validation checks on the server when a
> button
> click event arrives requiring validation. You can disable any of the
> validation controls by setting the Enabled property to false.
>
> What does the first sentence mean?
>
> thanks,
> rodchar


Nov 19 '05 #5
No, you don't need to explicitly reference anything when using validation
controls. It's done automatically.
Maybe there's a reference like that in the auto-generated code section or
something, but that's mostly irrelevant.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"bruce barker" <no***********@safeco.com> wrote in message
news:ui****************@TK2MSFTNGP12.phx.gbl...
actually is not checked until you reference Page.IsValid

-- bruce (sqlwork.com)
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:uZ**************@TK2MSFTNGP14.phx.gbl...
| When you use validation controls, the data is checked to be valid as
soon
as
| the request arrives at the server.
| (BTW, it's also checked for validity on the client when possible.)
|
| --
| I hope this helps,
| Steve C. Orr, MCSD, MVP
| http://Steve.Orr.net
|
|
| "rodchar" <ro*****@discussions.microsoft.com> wrote in message
| news:C7**********************************@microsof t.com...
| > hey all,
| >
| > i was reading this article on validation controls and came across this
| > paragraph:
| >
| > Server Side Validation
| >
| > ASP.NET will always execute validation checks on the server when a
button
| > click event arrives requiring validation. You can disable any of the
| > validation controls by setting the Enabled property to false.
| >
| > What does the first sentence mean?
| >
| > thanks,
| > rodchar
|
|

Nov 19 '05 #6
All validation controls are checked when Page.Validate is called. This is
usually called before any postback events are processed, but you can
manually set it off by calling Page.Validate.

Bruce,

For your records, IsValid checks to ensure Page.Validate() was called, then
steps through the validators collection. It checks each validator; when it
finds a false, it returns immediately. Otherwise, true is assumed and
returned.

bill

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:Oo**************@TK2MSFTNGP10.phx.gbl...
No, you don't need to explicitly reference anything when using validation
controls. It's done automatically.
Maybe there's a reference like that in the auto-generated code section or
something, but that's mostly irrelevant.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"bruce barker" <no***********@safeco.com> wrote in message
news:ui****************@TK2MSFTNGP12.phx.gbl...
actually is not checked until you reference Page.IsValid

-- bruce (sqlwork.com)
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:uZ**************@TK2MSFTNGP14.phx.gbl...
| When you use validation controls, the data is checked to be valid as
soon
as
| the request arrives at the server.
| (BTW, it's also checked for validity on the client when possible.)
|
| --
| I hope this helps,
| Steve C. Orr, MCSD, MVP
| http://Steve.Orr.net
|
|
| "rodchar" <ro*****@discussions.microsoft.com> wrote in message
| news:C7**********************************@microsof t.com...
| > hey all,
| >
| > i was reading this article on validation controls and came across this | > paragraph:
| >
| > Server Side Validation
| >
| > ASP.NET will always execute validation checks on the server when a
button
| > click event arrives requiring validation. You can disable any of the
| > validation controls by setting the Enabled property to false.
| >
| > What does the first sentence mean?
| >
| > thanks,
| > rodchar
|
|


Nov 19 '05 #7
i apologize if i'm being unclear (very new to this) so please allow me to
restate purpose of question:

How do I perform what is considered server-side validation?
I've read that it's a good idea to perform both client-side and server-side
validation. I understand the validation control takes care of the client-side
but do the validation controls have anything to do with server-side
validation?

thanks,
rodchar

"William F. Robertson, Jr." wrote:
All validation controls are checked when Page.Validate is called. This is
usually called before any postback events are processed, but you can
manually set it off by calling Page.Validate.

Bruce,

For your records, IsValid checks to ensure Page.Validate() was called, then
steps through the validators collection. It checks each validator; when it
finds a false, it returns immediately. Otherwise, true is assumed and
returned.

bill

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:Oo**************@TK2MSFTNGP10.phx.gbl...
No, you don't need to explicitly reference anything when using validation
controls. It's done automatically.
Maybe there's a reference like that in the auto-generated code section or
something, but that's mostly irrelevant.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"bruce barker" <no***********@safeco.com> wrote in message
news:ui****************@TK2MSFTNGP12.phx.gbl...
actually is not checked until you reference Page.IsValid

-- bruce (sqlwork.com)
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:uZ**************@TK2MSFTNGP14.phx.gbl...
| When you use validation controls, the data is checked to be valid as
soon
as
| the request arrives at the server.
| (BTW, it's also checked for validity on the client when possible.)
|
| --
| I hope this helps,
| Steve C. Orr, MCSD, MVP
| http://Steve.Orr.net
|
|
| "rodchar" <ro*****@discussions.microsoft.com> wrote in message
| news:C7**********************************@microsof t.com...
| > hey all,
| >
| > i was reading this article on validation controls and came across this | > paragraph:
| >
| > Server Side Validation
| >
| > ASP.NET will always execute validation checks on the server when a
button
| > click event arrives requiring validation. You can disable any of the
| > validation controls by setting the Enabled property to false.
| >
| > What does the first sentence mean?
| >
| > thanks,
| > rodchar
|
|



Nov 19 '05 #8
please disregard my last post, after reviewing replies again i think my
question was answered. i'll look at them a few more times. thanks, this
helped.

"rodchar" wrote:
i apologize if i'm being unclear (very new to this) so please allow me to
restate purpose of question:

How do I perform what is considered server-side validation?
I've read that it's a good idea to perform both client-side and server-side
validation. I understand the validation control takes care of the client-side
but do the validation controls have anything to do with server-side
validation?

thanks,
rodchar

"William F. Robertson, Jr." wrote:
All validation controls are checked when Page.Validate is called. This is
usually called before any postback events are processed, but you can
manually set it off by calling Page.Validate.

Bruce,

For your records, IsValid checks to ensure Page.Validate() was called, then
steps through the validators collection. It checks each validator; when it
finds a false, it returns immediately. Otherwise, true is assumed and
returned.

bill

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:Oo**************@TK2MSFTNGP10.phx.gbl...
No, you don't need to explicitly reference anything when using validation
controls. It's done automatically.
Maybe there's a reference like that in the auto-generated code section or
something, but that's mostly irrelevant.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"bruce barker" <no***********@safeco.com> wrote in message
news:ui****************@TK2MSFTNGP12.phx.gbl...
> actually is not checked until you reference Page.IsValid
>
> -- bruce (sqlwork.com)
>
>
> "Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
> news:uZ**************@TK2MSFTNGP14.phx.gbl...
> | When you use validation controls, the data is checked to be valid as
> soon
> as
> | the request arrives at the server.
> | (BTW, it's also checked for validity on the client when possible.)
> |
> | --
> | I hope this helps,
> | Steve C. Orr, MCSD, MVP
> | http://Steve.Orr.net
> |
> |
> | "rodchar" <ro*****@discussions.microsoft.com> wrote in message
> | news:C7**********************************@microsof t.com...
> | > hey all,
> | >
> | > i was reading this article on validation controls and came across

this
> | > paragraph:
> | >
> | > Server Side Validation
> | >
> | > ASP.NET will always execute validation checks on the server when a
> button
> | > click event arrives requiring validation. You can disable any of the
> | > validation controls by setting the Enabled property to false.
> | >
> | > What does the first sentence mean?
> | >
> | > thanks,
> | > rodchar
> |
> |
>
>


Nov 19 '05 #9

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

Similar topics

0
by: Premshree Pillai | last post by:
Hey, For the uninitiated: an explanation of makeExe.py (http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/266471), in the form of an article, “Create Python Executables Automatically”, is...
0
by: Premshree Pillai | last post by:
Hello, An explanation of makeExe.bat (http://premshree.resource-locator.com/j/post.php?id=152) has been appended to (http://www.devx.com/opensource/Article/20247/0/page/3) "Create Python...
70
by: rahul8143 | last post by:
hello, 1) First how following program get executed i mean how output is printed and also why following program gives different output in Turbo C++ compiler and Visual c++ 6 compiler? void main()...
1
by: rodchar | last post by:
Hey all, I read the following at the conclusion of an article: Data binding has finally come of age. The implementation of data binding in both Web Forms and Windows Forms is practical and...
14
by: Akhil | last post by:
plz c d following code #include<stdio.h> void main() { int x=4,y=1; y=x++++; //gives error message lvalue required y=x++ + ++y;//no errors
9
by: deepunayak | last post by:
I need complete explanation on constant pointers. e.g char *const ptr ; const char *ptr ; char *const* ptr; please explain me the differences.
12
by: jacob navia | last post by:
Hi I am writing this tutorial stuff again in the holidays and I came across this problem: The "width" field in printf is a minimum width. Printf will not truncate a field. for instance:...
2
by: Randima | last post by:
Hi All, I would like to know the unix command to display excerpt of rows from line number n to n+10 of a given file. ex: display rows from 35624612 to 35624615 of a file. thanks in advance
7
by: Jeroen | last post by:
Hi all, On more than one occasion I stumbled upon an explanation here that talks about the 'P/Invoke layer'. Although I've got a general idea what it's about, I'm having trouble grasping what it...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

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.