M
Marc
Comming from JSP-HTML when I hear 'script' I think of JavaScript or perhaps
VBScript. But I think in ASP.NET they mean something else? I am bit confused
now.
Reading a book I see the following:
A simple Web page may look like the following.
<!-page directives-->
<%@ Page Language="VB" %>
<!--script-->
<script runat="server">
Private Sub SayHi(ByVal sender As Object, ByVal args As EventArgs)
Response.Write("Hello " + txtName.Value) End Sub
</script>
<!--layout-->
<html>
<head> <title>Say Hi Page</title> </head>
<body>
<form id="form1" runat="server"> <input runat="server" id="txtName"
type="text" /> <input runat="server" id="btnSayHi" type="button"
value="Say Hi" onserverclick="SayHi" />
</form>
</body>
</html>
Hence script refers to a piece of Visual Basic code here. Appearantly.
My question hence are:
1. Can you use javascript in ASP.NET pages?
2. Can you use VBScript in ASP.NET pages?
3 Does 'script' refer to the .NET C# or Visual Basic code, or to what I
should call real /scripting/ lanuguage code, like code in JavaScript of
VBScript?
4 Can anyone tell me if and what the difference would be with Java in a JSP
page and f.e. C# in an ASP.NET page
Marc Wentink
N.B. The question refers to the book I am reading Self Pace Training Kit for
the 70-528 Exam written by Glen Johnsson
VBScript. But I think in ASP.NET they mean something else? I am bit confused
now.
Reading a book I see the following:
A simple Web page may look like the following.
<!-page directives-->
<%@ Page Language="VB" %>
<!--script-->
<script runat="server">
Private Sub SayHi(ByVal sender As Object, ByVal args As EventArgs)
Response.Write("Hello " + txtName.Value) End Sub
</script>
<!--layout-->
<html>
<head> <title>Say Hi Page</title> </head>
<body>
<form id="form1" runat="server"> <input runat="server" id="txtName"
type="text" /> <input runat="server" id="btnSayHi" type="button"
value="Say Hi" onserverclick="SayHi" />
</form>
</body>
</html>
Hence script refers to a piece of Visual Basic code here. Appearantly.
My question hence are:
1. Can you use javascript in ASP.NET pages?
2. Can you use VBScript in ASP.NET pages?
3 Does 'script' refer to the .NET C# or Visual Basic code, or to what I
should call real /scripting/ lanuguage code, like code in JavaScript of
VBScript?
4 Can anyone tell me if and what the difference would be with Java in a JSP
page and f.e. C# in an ASP.NET page
Marc Wentink
N.B. The question refers to the book I am reading Self Pace Training Kit for
the 70-528 Exam written by Glen Johnsson