Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Form Validation


Message #1 by "Hovik Melkomian" <melvik@b...> on Mon, 28 Oct 2002 08:46:57 +0330
  Hi, 
1.     I have attached a test aspx page which tells u how to do it.I have sent mail to melvik@b... also. The code behind is in
vb. If u want it in c# then write below code 
Button1.Attributes["OnClick"]="funName();" 
2. If u r using validation control(validators) as well as javascript then u r javascript will not be triggered . 
Let me know the status of u r doubt 
Ramprasad 
 
 Hovik Melkomian <melvik@b...> wrote: Hi again:
Its great! I didnt khow how to run a JavaScript function from Code Behinde Page.
Well, now I got it but there's still a problem, When I put Validation Control it
doesnt fire function.

Tnx again, & awaiting,
Hovik.

----- Original Message -----
From: "ramprasad upadhyaya" 
To: "ASPX_Professional" 
Sent: Monday, October 28, 2002 12:16 PM
Subject: [aspx_professional] Re: Form Validation



Hi,
U better use javascript. Because from u r problem statement it is clear
that u r not checking for any specific format in the value entered by the user.
Just do below things.
1. in page onload add below code
button1.Attributes("OnClick")="fnValidate();"
in this fnValidate is a javascript function where u r going to write
validation code.
Get back to me if u have any clarification.
Ramprasad



---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces 
for developers who are already familiar with using ASP.NET. 
There is no trivial introductory material or useless .NET 
hype and the presentation of the namespaces, in an easy-to use 
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes, 
giving you those real-world tips that the documentation doesn't 
offer, and demonstrating complex techniques with simple 
examples. 

---


Regards,

Ramprasad Upadhyaya



---------------------------------
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site

  Return to Index