|
|
 |
| ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.1 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|

August 6th, 2005, 04:07 AM
|
|
Authorized User
|
|
Join Date: May 2004
Location: Chennai, Tamil Nadu, India.
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
client side validation without postback
Hi..all,
Im new to dotnet. I want to know how to do client script validation (say..javascript) without submitting the page. RequiredFieldValidator is useful when the user omits any entry.
But while clicking the submit button of the page, i want to do a validation in javascript as the text box entry should be a number and should not exceed the value 1000. since the button is a server control, after the javascript, control is not getting terminated. page continues to server side script and got submitted. how to overcome this without going to server side script?
Thanks in advance.
Best Regards,
Saravanan.
__________________
Best Regards,
Saran.
|

August 6th, 2005, 05:28 AM
|
|
Authorized User
|
|
Join Date: Dec 2004
Location: teaneck, , USA.
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|

August 7th, 2005, 01:22 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Tehran, Iran
Posts: 922
Thanks: 0
Thanked 1 Time in 1 Post
|
|
u can use validation using JavaScript (Client Side or Server Side)
create funtion for validation & put it in form tag like
Code:
<script language="JavaScript">
function valid_form()
{
if ....
else .....
return false/true
}
</script>
then put it in form tag like
Code:
<form name="yyy" method="post" action="xxx.aspx" language="javascript" onsubmit="if (!valid_form()()) return false;" id="iii">
HTH.
Always:),
Hovik Melkomian.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |