Tanpa berpanjang lebar berikut cara men-setting mod_aspdotnet pada xampp :
1. Install Xampp , download via xampp web
2. Install mod_aspdotnet , download via source_mode_aspdotnet
3. Copas kode berikut di httpd-xampp pada folder apache
# ASP.NET di XAMPP
LoadModule aspdotnet_module "C:/xampp/apache/modules/mod_aspdotnet.so"
AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo
<IfModule mod_aspdotnet.cpp>
AspNetMount /quotecode_folder "c:/xampp/quotecode_folder"
Alias /quotecode_folder "c:/xampp/quotecode_folder"
<Directory "c:/xampp/quotecode_folder">
Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
DirectoryIndex index.htm index.aspx index.asp
</Directory>
AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
<Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
Options FollowSymlinks
Order allow,deny
Allow from all
</Directory>
</IfModule>
# /ASP.NET di XAMPP
4. buat folder quotecode_folder di folder xampp.
5. Untuk mengetes gunakan kode tes_teks.aspx berikut:
<%@ Page Language="C#"%>
<html>
<head>
<title>ASP.NET Test Page</title>
</head>
<body>
<%
for(int fontSize = 1; fontSize < 7; fontSize++)
{
Response.Write("<p style=\"font-size: " + (fontSize * 10) + "pt; text-align: center;\">It Works!</p>");
}
%>
</body>
</html>
Sumber : Metode Delapan
1. Install Xampp , download via xampp web
2. Install mod_aspdotnet , download via source_mode_aspdotnet
3. Copas kode berikut di httpd-xampp pada folder apache
# ASP.NET di XAMPP
LoadModule aspdotnet_module "C:/xampp/apache/modules/mod_aspdotnet.so"
AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo
<IfModule mod_aspdotnet.cpp>
AspNetMount /quotecode_folder "c:/xampp/quotecode_folder"
Alias /quotecode_folder "c:/xampp/quotecode_folder"
<Directory "c:/xampp/quotecode_folder">
Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
DirectoryIndex index.htm index.aspx index.asp
</Directory>
AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
<Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
Options FollowSymlinks
Order allow,deny
Allow from all
</Directory>
</IfModule>
# /ASP.NET di XAMPP
4. buat folder quotecode_folder di folder xampp.
5. Untuk mengetes gunakan kode tes_teks.aspx berikut:
<%@ Page Language="C#"%>
<html>
<head>
<title>ASP.NET Test Page</title>
</head>
<body>
<%
for(int fontSize = 1; fontSize < 7; fontSize++)
{
Response.Write("<p style=\"font-size: " + (fontSize * 10) + "pt; text-align: center;\">It Works!</p>");
}
%>
</body>
</html>
Sumber : Metode Delapan
No comments:
Post a Comment