C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Validations in asp.net


Posted Date: 05 Sep 2008      Total Responses: 2

Posted By: Reddy       Member Level: Gold     Points: 1



Hi frndz,

im unable to do validations using java script ONLY...

NOT WITH standard
controls like Required Field,Range or Custom or any one.


think that i have one TextBox,one DropDownList and some other

we have three files opening

---------> name.vb (Coding Page)
---------> name.aspx.vb (Design page)
---------> name.aspx.vb (HTML page )

some are suggested me to write function in HTML page that too in
<body> tag

and im calling the function in button On_Click event

but not working fine....
MY ERROR: Myfunction is not a member of current application.

Please give me the solution in detail where i need to write the
function and where to call?






Responses

Author: vipul    05 Sep 2008Member Level: DiamondRating:     Points: 2

hi,
first of all you write your javascript function between header
and if you used asp.net button control then you used onclientclick event of calling javscript button and if you used html button then used onclick event to calling javascript function.


vipul,
http://dongavipul.blogspot.com

Patel Vipul
Web Developer
Ahmedabad ( Gujarat )



Author: kalaimanichozhan    05 Sep 2008Member Level: GoldRating:     Points: 3

I hope this coding will helps you.

<header>
<script language="javascript">
function fun1()
{
alert("This is from javascript");

}

</script>
</header>
<form id="form1" action="default2.aspx">
<input type=text name="txtbox1" Onclick="fun1()">
</form>



regards kalai.



Post Reply
You must Sign In to post a response.
Next : Report viewer and charts
Previous : remote file system
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use