2017-06-10 40 views
1

我已经发布了一个使用VB的azure HTML页面,但我想将我的源代码放在云(天蓝色)中,从那里启动必须发生,而不是放置在我的本地系统。Azure网站使用Visual Basic - Html页面

有人可以帮我解决这个问题。 在此先感谢。

回答

0

Azure Web App内置支持经典的ASP页面。我用下面的代码创建了一个简单的asp页面(home.asp)。

<%@ language="VBScript" %> 
<html> 
<head> 
    <title>Classic ASP Page</title> 
</head> 
<body> 
    <h1>VBScript Powered ASP page on Azure Web Apps </h1> 
    <% 
     Dim dtmHour 
     dtmHour = Hour(Now()) 
     If dtmHour < 12 Then 
     strGreeting = "Good Morning!" 
     Else 
     strGreeting = "Hello!" 
     End If  
    %> 

    <%= strGreeting %> 
</body> 
</html> 

复制后它的wwwroot Azure的Web应用程序的文件夹,我可以用这个URL http://myapp.azurewebsites.net/home.asp

enter image description here

查看此页面,但我想向我的源代码在云(天青)

要发布您的VB代码和html页面,您只需要将所有文件复制到哟的wwwroot文件夹你的Azure Web App。更简单的方法是使用FTP。以下步骤供您参考。

第1步。从Azure Web App的属性概述页面获取FTP URL和帐户名称。

enter image description here

第2步:从您的FTP客户端(Visual Studio中,FileZilla中,等),使用您收集到的连接信息,连接到您的应用程序。

第3步。将您的文件及其各自的目录结构复制到Azure中的/ site/wwwroot目录。