473,804 Members | 3,074 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Opinion on validating a WebForm

i would like the comunity's opinion on validating a Webform. I was wondering
should i validate data that the user enters on a Webform via a Backend
process like SQL Server 2000 or should I use Javascript to validate the data?
Or is there another option such as creating .neT classes?

I can use Javascript files to validate the data. If I use this method I
eliminate of having to go to the server, validate the data, then come back
and redraw the screen.

if I use SQL Server 2000, I can validate the data, but if there is an error
in the code I can fix the problem without installing anything and the fix
will be instantaneuos.

If I use .NET classes, i do not know if there is a benefit there...

so if anyone can give me some opinion on what direction I should go, and
what the industry really recomends i would greatly appreciate it...

Thanks in advance
Nov 19 '05 #1
0 964

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

Similar topics

6
5803
by: Alex Bink | last post by:
Hi, I have a validating event on a textbox in which I want to prevent the user to leave the textbox without entering the right data. Only if he clicks on another specific control he is allowed to leave the textbox without entering the right information. Is there a way to determine which other control was clicked in the validating event of the textbox? Thanks
1
1522
by: Newbie | last post by:
i need to validate a dropdownlist (ddlState) in a c# asp.net webform. in other words, i need to make sure that the user selects an item in the dropdownlist. it contains the items: Items Index (Select a state) 0 Arizona 1 California 2 .....
1
318
by: Newbie | last post by:
i have a textbox in a c# asp.net webform. i am using a regularexpressionvalidator control to validate the textbox. only numbers are allowed in it. in my regularexpressionvalidator control property window, i couldnt find the right validation expression to use to make it work properly. thanks in advance.
4
1491
by: John | last post by:
Hi I have a web control text box on my webform which I want to use for entering dates. Is there a way to validate this text box field for valid dates? May be using a validators such as regular expression validator? Thanks Regards
5
990
by: nicholas | last post by:
got 1 asp.net page with 1 webform on that webform there are 2 textboxes and 2 buttons each button submits the associated textbox. each button should validate only the associated textbox problem is that in asp.net 1.1 the whole page is validated. any ideas ??
0
1555
by: Joe | last post by:
Hi For a while now I have been finding postings of problems with the validating event not firing on controls properly. I too had this problem. The event would fire when clicking on another control which had it's causes validation property set to true however if I tabbed on to this control the event wouldn't fire. So after playing around with my code I figured out how to get it to work. I am not sure what the reason behind it is but it...
0
2441
by: Gary Shell | last post by:
I am experiencing some strange behavior between a UserControl's validating event and a treeview control. Initially, I thought it was related to an issue in the Knowledgebase article 810852 (http://support.microsoft.com/kb/810852), but then I realized that the hotfix mentioned was in .Net v1.1, which I am using. I took the sample from that article and recreated the situation I see in my application. (Code included below.) If you run the...
2
1626
by: VMI | last post by:
Is there an easy way for me to validate what's entered in a webForm textbox? For example, how can I check that the user only enters a number (and not letters) in a textbox? I have VS 2005. Thanks.
11
1367
by: Jack White | last post by:
Hi there, Is there a general approach for preventing users from selecting a menu item in an SDI or MDI application whenever the current field on your form is invalid (assuuming the app consists of a data entry form). In my case, I'm working with a "DataGridView" which occupies the entire child window of an MDI app but the problem likely applies to any control. If you've entered invalid data into a "TextBox" field of a form for instance...
0
9704
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10558
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10302
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,...
0
10069
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...
1
7608
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
5503
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
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
3
2975
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.