Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

VBscript syntax in ASP.net?

I'm trying to use ASP.NET 2.O in VS2005. and there's so many different explenations for different cases of using VBscript with ASP files (*.aspx).

ie: in <% %>'s
defining it <script="VBscript"></script>

I've tried all these different ways but none of them seem to work.

By this point I really don't mind whether I use "codebehind" or have it all in one file.

Doing just the <html> markup tags seem to generate errors in Visual Studio, so I've often been using the defualt markup tags which are

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" /></div>
</form>
</body>
</html>

Any links to source code for using VBscript w/ these tags would be much appreciated!
[1321 byte] By [tristanolas] at [2007-11-11 9:59:39]
# 1 Re: VBscript syntax in ASP.net?
I'm not entirely sure what you're asking, but it sounds like you're trying to move from ASP to ASP.net... Here's a video that might help:

http://msdn.microsoft.com/msdntv/episode.aspx?xml=episodes/en/20050310aspnetss/manifest.xml
waterjock2000 at 2007-11-11 23:12:08 >