473,390 Members | 1,301 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,390 software developers and data experts.

edit in place for data grid columds

can anyone send me to some good examples of edit in place for data frid
columns

i see dot net let me assign a control in the IDE

any good sources of reading on editing columns with controls and setting
styles

thanks

steve
Jun 9 '07 #1
6 2385
hi i'm new to .net field, i'm developing one application using ASP.NET
and C#.NET in that i get one problem that is how to validate user
entered date and time formate, for this problem wheather i have to use
RegularExpressionValidator or any other Code, Give the response soon
i'm waiting for reply

Jun 11 '07 #2
I'm sure there are good reasons for doing this client side, but I've never
found one.

Data entry validation always needs to be done server-side when the user
submits the form: so why not just settle for that and do the validation
server side? You're doing a postback anyway, so there's no extra time taken
worth talking about.

I know that some people like to do validation as the data is entered, but I
don't really like that - as a user or as a designer: but I know opinions
vary. However, good practice determines that all the data is checked
server-side on submit anyway, so checking client-side is just doing the job
twice IMHO.

[In case anyone asks, the reason that data entry has to be checked server
side anyway is because you cannot be certain that the data was submitted
from the form exactly as you wrote it. People can turn off scripting; they
can save the page and modify it. All sorts of nefarious stuff can go on
between the server and client]

I'm tempted to sign off as Paranoid Peter, but I'll just make do with my
usual

HTH

Cheers
Peter

<ne********@gmail.comwrote in message
news:11**********************@n15g2000prd.googlegr oups.com...
hi i'm new to .net field, i'm developing one application using ASP.NET
and C#.NET in that i get one problem that is how to validate user
entered date and time formate, for this problem wheather i have to use
RegularExpressionValidator or any other Code, Give the response soon
i'm waiting for reply

Jun 11 '07 #3
"Peter Bradley" <pb******@uwic.ac.ukwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
I'm sure there are good reasons for doing this client side, but I've never
found one.
To minimise the number of round trips to the server and back...
Data entry validation always needs to be done server-side when the user
submits the form: so why not just settle for that and do the validation
server side? You're doing a postback anyway, so there's no extra time
taken worth talking about.
Not true at all...

E.g. if you are writing a subscription site where users need to register,
and one of the criteria for registration is that registrants needs to be at
least 18 years old, then a simple client-side validation is perfectly fine -
there's no need for a round trip just to do that...

Or for checking that a date value is greater or less than another date value
e.g. today's date...

Or, even more importantly, to validate that mandatory fields actually do
contain a value...
--
http://www.markrae.net

Jun 11 '07 #4


"Mark Rae" <ma**@markNOSPAMrae.netwrote in message
news:Ov**************@TK2MSFTNGP03.phx.gbl...
"Peter Bradley" <pb******@uwic.ac.ukwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>I'm sure there are good reasons for doing this client side, but I've
never found one.

To minimise the number of round trips to the server and back...
>Data entry validation always needs to be done server-side when the user
submits the form: so why not just settle for that and do the validation
server side? You're doing a postback anyway, so there's no extra time
taken worth talking about.

Not true at all...

E.g. if you are writing a subscription site where users need to register,
and one of the criteria for registration is that registrants needs to be
at least 18 years old, then a simple client-side validation is perfectly
fine - there's no need for a round trip just to do that...

Or for checking that a date value is greater or less than another date
value e.g. today's date...

Or, even more importantly, to validate that mandatory fields actually do
contain a value...
--
http://www.markrae.net
I would have to agree with Peter on this one. For the reason that the
submittal of the form may be from a source that has script disabled, or
posted from another screen, or something similar....the client-validation
would never run, yet the postback would...or maybe the postback wouldn't
with script turned off....hmm...I'll check it out.

HTH,
Mythran
Jun 11 '07 #5


"Mark Rae" <ma**@markNOSPAMrae.netwrote in message
news:Ov**************@TK2MSFTNGP03.phx.gbl...
"Peter Bradley" <pb******@uwic.ac.ukwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>I'm sure there are good reasons for doing this client side, but I've
never found one.

To minimise the number of round trips to the server and back...
>Data entry validation always needs to be done server-side when the user
submits the form: so why not just settle for that and do the validation
server side? You're doing a postback anyway, so there's no extra time
taken worth talking about.

Not true at all...

E.g. if you are writing a subscription site where users need to register,
and one of the criteria for registration is that registrants needs to be
at least 18 years old, then a simple client-side validation is perfectly
fine - there's no need for a round trip just to do that...

Or for checking that a date value is greater or less than another date
value e.g. today's date...

Or, even more importantly, to validate that mandatory fields actually do
contain a value...
--
http://www.markrae.net
Glad I double-checked. A form submittal is caused (usually) by a "submit"
input button and not through script, unless you are using a control that has
the AutoPostBack set to True or a LinkButton (or similar) control, which
then uses script and will not perform a postback if script is disabled on
the client...

HTH,
Mythran
Jun 11 '07 #6
On 11 Jun., 12:09, neeraja...@gmail.com wrote:
hi i'm new to .net field, i'm developing one application using ASP.NET
and C#.NET in that i get one problem that is how to validate user
entered date and time formate, for this problem wheather i have to use
RegularExpressionValidator or any other Code, Give the response soon
i'm waiting for reply
Use the RegEx-validator, e.g.:

<asp:RegularExpressionValidator ID="myRegExValidator" runat="server"
ControlToValidate="myBtn" ErrorMessage="Wrong input, you need to write
a date in format dd/mm/yyyy" ValidationExpression="^\d{1,2}\/\d{1,2}\/
\d{4}$" ></asp:RegularExpressionValidator>

You can find examples of different date and time expressions here:

http://regexlib.com/(A(eJE4ziet-S-qk...4&categoryId=5

Regards;)

Jun 11 '07 #7

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

Similar topics

3
by: Rameshika | last post by:
Hi All How can I select a particular row in a datagrid.Where when the user double clicks the data in that row should appear in the corresponding text boxes in runtime And how can the user...
2
by: Sky | last post by:
Hello: Another question about trying to wring functionality from a DataGrid... Have a DB table of "Contacts" -- 14 or more fields per record Show in datagrid -- but only 5 columns (First,Last,...
2
by: Gary | last post by:
Hello All, I have an editable data grid in my web form, this grid allows the user to add new records, edit existing records and also delete them. When a user adds a record the grid goes in to...
1
by: Bharathi Kumar | last post by:
Hi, Iam working on a window application using vb.net 2005. There is a control "DataGridView" in vs 2005 instead of data grid control. After binding the datagridview, When we click on any...
0
by: bh | last post by:
I'm trying to edit data in a datagrid through a dropdown list with different id/text values. The problem comes in when I click the edit button & nothing appears to be happening. Did I do...
1
by: cyningeston | last post by:
OS: WinXP Pro, VB/ASP/ADO.NET I'm building a web-based supplier management application. For each supplier we are required by the FDA to track certain documents. I've managed to pull them from...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
8
by: =?Utf-8?B?bWlrZWc=?= | last post by:
Hi, I am building a small Help Desk application for my company and need to be able to edit "open" help desk issues. I use a simple datagrid to display each issue (6 per page) , with an Edit...
6
by: Romulo NF | last post by:
Greetings again to everyone, Im back to show this grid componenet ive developed. With this grid you can show the data like a normal table, remove the rows that you need, add rows, import data,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
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
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
0
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...

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.