473,405 Members | 2,445 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,405 software developers and data experts.

Client side validation in aspx page

Can anyone tell me how I can perfor client side validation in javascript on
a form in an aspx page.

All the scripts I use to use in classic asp dont seem to stop the submision
of the form. Is this because of the runat="server" in the form tag ?

Any ideas, urls e.t.c would be much appreciated.

Cheers Big Ears
Nov 17 '05 #1
2 1316
Hi

Use Javascript code in Onsubmit event of Form.

<FORM NAME="F1" Onsubmit=test() >"

function test()
{
return true; //will submit the form

return false; //wont submit the form
}

HTH
Ravikanth

-----Original Message-----
Can anyone tell me how I can perfor client side validation in javascript ona form in an aspx page.

All the scripts I use to use in classic asp dont seem to stop the submisionof the form. Is this because of the runat="server" in the form tag ?
Any ideas, urls e.t.c would be much appreciated.

Cheers Big Ears
.

Nov 17 '05 #2
Why don't you use Validator Controls?
They validate the form both on client and server...

For details: http://localhost/quickstart (I hope you have a virtual
directory for quickstart)

"Paul" <pa**@themedialounge.com> wrote in message
news:e4**************@TK2MSFTNGP12.phx.gbl...
Can anyone tell me how I can perfor client side validation in javascript on a form in an aspx page.

All the scripts I use to use in classic asp dont seem to stop the submision of the form. Is this because of the runat="server" in the form tag ?

Any ideas, urls e.t.c would be much appreciated.

Cheers Big Ears

Nov 17 '05 #3

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

Similar topics

1
by: | last post by:
Dear Justin, Thanks for your reply! Let me explain you my concern in detail.... I have a login field which I am validating using RequiredValidator control. Now when a user omits this...
2
by: Dnna | last post by:
I have a table which is bound to an Internet Explorer XML data island. I'm using ASP.NET's client-side validators for an input field in the table. The problem is that if the input fields are in...
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)...
3
by: Earl Teigrob | last post by:
I wanted my "Terms and Conditions" Checkbox control to participate in my ASP.NET validation just like all the the other controls on the page. After some time of searching the web for an example of...
4
by: | last post by:
Hi Has anyone any experience using client side validation with asp.net forms. Specifically I'd like to know... 1. How do you attach client side code web controls (a button), like a...
5
by: Jim Brandley | last post by:
I have a required field with a client-side validator. It works as advertised until I try to add code to block double submits and replace the image on the submit button to give the users some...
1
by: Joe.Dattilo | last post by:
Hello, Does anyone know how I can stop the RequiredFieldValidator from validation OnBlur and OnChange. I only want it to validate when the user submits the form (but still want it to run client...
2
by: Fourge | last post by:
Hi, I have run into a very strange scenario. In developing an ASP.NET application on framework version 1.1, I found that certain client-side validation scripts were not being rendered. The...
8
by: John Dalberg | last post by:
I have an aspx page that was developed initially in Dreamweaver as a regular html file. I have added a few textboxes and required validators. The problem is that the client side validation is not...
1
by: Hong Hao | last post by:
Recently, I was trying to modify an existing aspx page when client-side validation on that page stopped working. I searched this group and the web in general and found that other people have had...
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: 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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,...

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.