TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Arun Kurmi
NA
104
103.8k
validation using javascript in asp.net
Apr 28 2013 8:12 AM
hi friends,
How are you all ???
-----------------------
I have a assignment question-Perform validation by using javascript (without using validation tool from visual studio)
i take textbox for input and button for submit on webform.
i tried following but there are some error in this code-
<head runat="server">
<script language="javascript" type="text/javascript">
function RequireFieldValidation()
{
var x=document.forms["testJavascript"]["TextBox1"].value;
if(x=""||x==null)
{
alert("Please enter you name");
return false;
}
}
</script>
</head>
<body>
<form id="form1" runat="server" onsubmit="return RequireFieldValidation()">
<asp:Button ID="Button1" runat="server" onclick="Button1_Click"
Text="Register"/>
</body>
Reply
Answers (
1
)
drop down list ???
hi