473,785 Members | 2,924 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2401
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
RegularExpressi onValidator 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********@gma il.comwrote in message
news:11******** **************@ n15g2000prd.goo glegroups.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
RegularExpressi onValidator 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******** ********@TK2MSF TNGP02.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**@markNOSPA Mrae.netwrote in message
news:Ov******** ******@TK2MSFTN GP03.phx.gbl...
"Peter Bradley" <pb******@uwic. ac.ukwrote in message
news:%2******** ********@TK2MSF TNGP02.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**@markNOSPA Mrae.netwrote in message
news:Ov******** ******@TK2MSFTN GP03.phx.gbl...
"Peter Bradley" <pb******@uwic. ac.ukwrote in message
news:%2******** ********@TK2MSF TNGP02.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...@gmai l.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
RegularExpressi onValidator or any other Code, Give the response soon
i'm waiting for reply
Use the RegEx-validator, e.g.:

<asp:RegularExp ressionValidato r ID="myRegExVali dator" runat="server"
ControlToValida te="myBtn" ErrorMessage="W rong input, you need to write
a date in format dd/mm/yyyy" ValidationExpre ssion="^\d{1,2} \/\d{1,2}\/
\d{4}$" ></asp:RegularExpr essionValidator >

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
2466
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 insert,delete and edit fields in a datagrid at runtime Please be kind enough to help me Thanks Rameshika
2
2339
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, Fax, Phone, Category). Put an Edit column at the end... Now what?! If you go into Edit mode -- you can only edit 5 cells -- not all the rest of the Record's fields...not enough!
2
1805
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 edit mode and four text boxes appear, one is for the start date, another for an end date and the other two are for other data, the user fills in the fields and saves the data, all is great at this point, an entry is added ok. However the problem I...
1
2411
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 cell to modify the data (or anything) the entire cell will be selected.
0
1204
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 something wrong in the EditItemTemplate or should I be binding, somehow, separately in the vb code? Please view my code, below, and the notes in green for clarification of what I've done, and what is/is not working, here. Thanks in advance.
1
12229
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 Access into a Gridview (Gridview1), in which I have AutoGenerateEditButton set to True. What I want is this: when a user clicks "Edit" on a line and it goes to edit mode, I want to grab the supplier's category (4th column of the grid, named...
9
2729
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 code: <script runat="server"> Dim sqlConn As New SqlConnection(".....") Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) If Not (Page.IsPostBack) Then FillDataGrid()
8
1984
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 button. There are a lot of fields across, and my Network Admins would like a way of editing/updating each issue seperately in a a vertical form. I need a way of clicking on the edit button ,bringing up a form with the record, editng the fields, and...
6
7997
by: Romulo NF | last post by:
Greetings again to everyone, Im back to show this grid componenet i´ve developed. With this grid you can show the data like a normal table, remove the rows that you need, add rows, import data, call determined functions, and edit the data already present What will you need to use the grid? A table with standard markup and an ID to call the script that will turn the table into a grid Parameters: tabelaID => id of the table that will...
0
9480
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,...
0
10147
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 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...
0
9947
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
agi2029
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...
1
7494
isladogs
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...
0
6737
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();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
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...

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.