Hi,
I am using asp.net. In that i used both master page and aspx page. what is my problem is, I have written the script in master page and in aspx page i have used the onclientclick event. here is my code.

MasterPage.Mast er:
Code:
    <script type="text/javascript">
        function LoginValid() {
            alert("hai");
                var UserName = document.getElementById("ctl00_ContentPlaceHolder1_txtUserName");
...