In asp.net,how to use both code behind code and java script to the same control?
Mallika
Select an image from your device to upload
Please use the following method for using both the code behing and java script in the same control:
<%
<!
<
alert(
}
{
Response.Write(
</
You have to define two separate code blocks for writing server side and client side code. And also need to associate the sever events to the server side methods/events and client events to the client side method/functions.
Hi Mallika
You can use code behind nad JavaScript on a same page like as follows:
Example: