Use of java script in asp.net pages
C#
2
Posts
2
Posters
0
Views
1
Watching
-
There are many ways you can use Javascript in your asp.net ASP.Net come with some validation of controls did you looked to them if no one of them have what you need you can use
CustomValidator
control and write your javascript for validating the control for example look at Allowing Only Numbers in ASP. NET TextBoxes[^] If You want to call JavaScript code when you click Button for example you can write somthing likeButton1.Attributes.Add("onClick","DoIt();");
this allowed DoIt script function to be called when the user click theButton
or write the code directly likeButton1.Attributes.Add("onClick","alert('Test Test');");
MCAD -- modified at 21:30 Friday 23rd September, 2005