Javascript-codebehind
-
hi how to write javascript function in html part and how to call it in codebehind in asp.net using c# pls reply me. thanku gayatri Gayatri
Why would you need to call a javascript function from a code-behind page?
Mark, http://aspnetlibrary.com
-
hi how to write javascript function in html part and how to call it in codebehind in asp.net using c# pls reply me. thanku gayatri Gayatri
wrote:
how to write javascript function in html part
Start <script> tag and write your functions like this
<script language="javascript">
function Sample()
{
alert("Hi Javascript");
}
</script>Put the above code on your head section.
wrote:
and how to call it in codebehind in asp.net using c#
Each control will be having one property called attributes. Use
ControlName.Attributes.Add("OnClick","Sample();");
string Cheers = "Navaneeth!!" www.w3hearts.com
-
hi how to write javascript function in html part and how to call it in codebehind in asp.net using c# pls reply me. thanku gayatri Gayatri
Standard explanation #1 (Client vs Server) needed!
"Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
-
hi how to write javascript function in html part and how to call it in codebehind in asp.net using c# pls reply me. thanku gayatri Gayatri
Javascript is scripting language run at client side it run first before going to server
Thanks and Regards Sandeep If you want something you never had, do something you have never done!
-
Standard explanation #1 (Client vs Server) needed!
"Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
RichardGrimmer wrote:
Standard explanation #1 (Client vs Server) needed!
Sorry but not understoo:rolleyes:d
Thanks and Regards Sandeep If you want something you never had, do something you have never done!