【发布时间】:2015-08-07 06:42:31
【问题描述】:
我正在尝试使用 Visual Studio 2013 中的 ASP.NET Web 表单模板在 GitHub Pages 上创建个人网站。(我正在尝试学习 ASP.NET/C#)
但看起来 GitHub 页面只会加载一个名为“index.html”的文件作为主页。
我将 index.html 文件重定向到我的 Default.aspx 文件,但这只会导致我的浏览器下载该文件。这是我目前的 index.html 文件:
<html>
<head>
<title></title>
<meta http-equiv="refresh" content="1;url=/JoeWebsite/Default.aspx">
<meta name="keywords" content="automatic redirection">
</head>
<body>
If your browser doesn't automatically go there within a few seconds,
you may want to go to
<a href="/JoeWebsite/Default.aspx">My Website</a>
manually.
</body>
</html>
ASP.NET 项目位于 github 的正确存储库中。从上面的代码 sn-p 可以看出,该项目的文件夹名为“JoeWebsite”。
是否可以在 GitHub 中拥有 ASP.NET 网站?怎么样?
如果没有,是否有替代的免费托管服务?
【问题讨论】:
标签: c# html asp.net git github-pages