vbscript don't work in visual studio 2010?
-
Hi, I am using vs2010 in windows7 32bit. And i have below code and it does not work at all. What should i do? --------------------------- <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/vbscript"> Sub SelectItem2() MsgBox "test vbscript.", vbInformation, "OK" End Sub </script> <script type="text/javascript"> function SelectItem() { alert("test javascript"); } </script> </head> <body> <form id="form1" runat="server"> </form> </body> </html>
hi My english is a little. anyway, nice to meet you~~ and give me your advice anytime~
-
Hi, I am using vs2010 in windows7 32bit. And i have below code and it does not work at all. What should i do? --------------------------- <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/vbscript"> Sub SelectItem2() MsgBox "test vbscript.", vbInformation, "OK" End Sub </script> <script type="text/javascript"> function SelectItem() { alert("test javascript"); } </script> </head> <body> <form id="form1" runat="server"> </form> </body> </html>
hi My english is a little. anyway, nice to meet you~~ and give me your advice anytime~
buffering83 wrote:
What should i do?
the first thing I would suggest it don't post the same question in multiple forums - ASP.Net and VBScript - pick one forum - the most appropriate one Second
buffering83 wrote:
does not work at all
ok, so what does it do - what happens when you attempt to run it ?
-
Hi, I am using vs2010 in windows7 32bit. And i have below code and it does not work at all. What should i do? --------------------------- <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/vbscript"> Sub SelectItem2() MsgBox "test vbscript.", vbInformation, "OK" End Sub </script> <script type="text/javascript"> function SelectItem() { alert("test javascript"); } </script> </head> <body> <form id="form1" runat="server"> </form> </body> </html>
hi My english is a little. anyway, nice to meet you~~ and give me your advice anytime~
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<script type="text/javascript"> </script>
<script type="text/vbscript">
Sub SelectItem2()
MsgBox "test vbscript.", vbInformation, "OK"
End Sub
</script><script type="text/javascript">
function SelectItem() {
alert("test javascript")
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="return SelectItem2()" />
<asp:Button ID="Button2" runat="server" Text="Button22" OnClientClick="SelectItem()" />
</div>
</form>
</body>
</html> -
Hi, I am using vs2010 in windows7 32bit. And i have below code and it does not work at all. What should i do? --------------------------- <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/vbscript"> Sub SelectItem2() MsgBox "test vbscript.", vbInformation, "OK" End Sub </script> <script type="text/javascript"> function SelectItem() { alert("test javascript"); } </script> </head> <body> <form id="form1" runat="server"> </form> </body> </html>
hi My english is a little. anyway, nice to meet you~~ and give me your advice anytime~
buffering83 wrote:
OnClientClick="vbscript:SelectItem2()"
Try just the method call:
OnClientClick="SelectItem2()"
Sandeep Mewara Microsoft ASP.NET MVP 2012 & 2013 [My Blog] [My Latest Post]: How to extend a WPF Textbox to Custom Picker
-
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<script type="text/javascript"> </script>
<script type="text/vbscript">
Sub SelectItem2()
MsgBox "test vbscript.", vbInformation, "OK"
End Sub
</script><script type="text/javascript">
function SelectItem() {
alert("test javascript")
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="return SelectItem2()" />
<asp:Button ID="Button2" runat="server" Text="Button22" OnClientClick="SelectItem()" />
</div>
</form>
</body>
</html>thanks for answer!!
hi My english is a little. anyway, nice to meet you~~ and give me your advice anytime~