How to use javascript code in master page of ?

<%@ Page Language=”C#” MasterPageFile=”~/MasterPage.master” AutoEventWireup=”true” CodeFile=”JavaScript.aspx.cs” Inherits=”Default3″ Title=”Untitled Page” %>

<asp:Content ID=”Content1″ ContentPlaceHolderID=”ContentPlaceHolder1″ Runat=”Server”>
<script language=”javascript”>
function checkno(as)

var x=document.getElementById(‘<%=TextBox1.ClientID%>’).value;



<asp:TextBox ID=”TextBox1″ onkeyup=”checkno(‘TextBox1’)” runat=”server”></asp:TextBox><br />
<asp:TextBox ID=”TextBox2″ runat=”server”></asp:TextBox>
<br />



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.