473,466 Members | 1,314 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

validation control

Hello folks,
I have made a dynamic control from a database table. Now I want to
add validation to it from the same database table. Can some one please
assist me with this. Any useful tutorial links would help too...
Thanks
Nov 17 '05 #1
3 1305
Seelan,

What kind of validation are you trying to do? The problem with the way
that datasets are meant to be used in .NET is that the data that you select
your list from when the control is created might have been changed by the
time you want to persist that data back to the database. Because of this,
you should be validating your data in a transaction which includes the
update before you commit the changes.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Seelan" <se***********@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hello folks,
I have made a dynamic control from a database table. Now I want to add
validation to it from the same database table. Can some one please assist
me with this. Any useful tutorial links would help too...
Thanks

Nov 17 '05 #2
I'm a newbie at c# programming. So, articles on how to actually code
this would help...
I am loading dynamic controls from the database. and that table also has
corresponding validation coloumn. Example in row 1 i have: textbox
with validation property isRequired. How would I implement this in C#
coding?

Nicholas Paldino [.NET/C# MVP] wrote:
Seelan,

What kind of validation are you trying to do? The problem with the way
that datasets are meant to be used in .NET is that the data that you select
your list from when the control is created might have been changed by the
time you want to persist that data back to the database. Because of this,
you should be validating your data in a transaction which includes the
update before you commit the changes.

Hope this helps.

Nov 17 '05 #3
Testing the email notification

"Seelan" wrote:
I'm a newbie at c# programming. So, articles on how to actually code
this would help...
I am loading dynamic controls from the database. and that table also has
corresponding validation coloumn. Example in row 1 i have: textbox
with validation property isRequired. How would I implement this in C#
coding?

Nicholas Paldino [.NET/C# MVP] wrote:
Seelan,

What kind of validation are you trying to do? The problem with the way
that datasets are meant to be used in .NET is that the data that you select
your list from when the control is created might have been changed by the
time you want to persist that data back to the database. Because of this,
you should be validating your data in a transaction which includes the
update before you commit the changes.

Hope this helps.

Nov 17 '05 #4

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

Similar topics

4
by: Tim Meagher | last post by:
I am trying to use both validation controls and to add submit button attributes, but when I add the button attributes, the javascript fpr the validation controls is no longer created for the page. ...
6
by: Nedu N | last post by:
Hi, I want to have confirmation(Yes/No) on a button of the webform in which there are many validation controls. I want all the validation controls to be triggered first and then Yes/No...
7
by: A.M | last post by:
Hi, I have a validation control in my page that upon any invalid data, it disables all buttons in the page. basicly i don't have any postback in the page if the validator finds any error. How...
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
2
by: Martyn Fewtrell | last post by:
Dear All I have a Windows 2003 Server with IIS6 where the validation controls on ASP.Net pages no longer work. I believe it to be specific to the server as if I create an ASP.Net page on the...
2
by: Barbara Alderton | last post by:
I setup some standard Required Field Validation controls and one Custom validation control on an ASP.NET page (within a user control) to validate text entry. I also setup a Summary Control to post...
9
by: AFN | last post by:
I was just dropped into someone else's code (isn't that always so fun?). I can't figure out why a custom validation control's server event function is executing. There is nothing (that I see)...
9
by: Bill Long | last post by:
I have a control that simply displays a list of links. Following one of the links doesn't post back or redirect to another page, it simply hides the current panel and shows the one you selected......
2
by: Tim Frawley | last post by:
Source code attached indicates my problem with validation and a button bar save button. Fill the Textbox with some text then tab off the control. The message box will display the text in the...
1
by: Buddy Ackerman | last post by:
I don't know what the problem is. I have a form with several controls that need to be validated, I put a validation group in every form control, every validatoino control, the submit button and...
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
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
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...
0
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,...
0
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...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.