开发者

Microsoft JScript runtime error: Object expected OnClientClick

开发者 https://www.devze.com 2023-01-07 06:49 出处:网络
I was just doing a quick test of something, and before I could really get started I got this error. I have no C# code yet and this is my aspx code:

I was just doing a quick test of something, and before I could really get started I got this error. I have no C# code yet and this is my aspx code:

 <script language=javascript type="text/javascript">
        function myOnClick() {
            //if (TextBox1.Text != null)
                //DropDownList1.Visible = true;
            return false;
        }
    </script>
    <title>TEST</title>

and

<asp:Button ID="Button1" OnClientClick="return showMore();" runat=server  Text="V" />

And I get the error a开发者_StackOverflow社区t this line:

<input type="submit" name="Button1" value="V" onclick="return showMore();" id="Button1" />

while debugging...

Any ideas?

THANKS!!!


There is no function named "showMore()".

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号