2017-06-10 39 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目錄。