Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The problem is that I've got web site in *.asp format . I tried to configure apache and everything suppose to be just fine, but instead graphical website
I see source code on my browser.
What should I do to get it on the way how it suppose to be.
The problem is that I've got web site in *.asp format . I tried to configure apache and everything suppose to be just fine, but instead graphical website
I see source code on my browser.
What should I do to get it on the way how it suppose to be.
.ASP pages are normally for Frontpage extensions. If you need Frontpage extensions, try googling for the perl modules that will emulate a IIS server.
Otherwise, you need to find the line that says:
.asp pages are Microsoft Active Server Page scripts, which require their ASP engine (shipped with IIS + therefore requires Windows) to run - There are linux versions of ASP such as ChiliSoft ASP (I think Sun do it now) - but they aren't free (or weren't last time I looked).
Consider doing the website in php as that will work fine with apache on linux.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/connection.asp" -->
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "S"
If (Request("MM_EmptyValue") <> "") Then
Recordset1__MMColParam = Request("MM_EmptyValue")
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_connection_STRING
Recordset1.Source = "SELECT TOP 2 SKU, ID, LIST_PRICE, PIC_FILENAME, SKUGROUP_DESC FROM dbo.Items WHERE ITEM_TYPE = '" + Replace(Recordset1__MMColParam, "'", "''") + "'"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Dim Recordset2__MMColParam
Recordset2__MMColParam = "F"
If (Request("MM_EmptyValue") <> "") Then
Recordset2__MMColParam = Request("MM_EmptyValue")
End If
%>
<%
Dim Recordset2
Dim Recordset2_numRows
Set Recordset2 = Server.CreateObject("ADODB.Recordset")
Recordset2.ActiveConnection = MM_connection_STRING
Recordset2.Source = "SELECT TOP 2 SKU, ID, LIST_PRICE, PIC_FILENAME, SKUGROUP_DESC FROM dbo.Items WHERE ITEM_TYPE = '" + Replace(Recordset2__MMColParam, "'", "''") + "'"
Recordset2.CursorType = 0
Recordset2.CursorLocation = 2
Recordset2.LockType = 1
Recordset2.Open()
Recordset2_numRows = 0
%>
<html><!-- InstanceBegin template="/Templates/main.dwt.asp" codeOutsideHTMLIsLocked="false" -->
<head>
<!--#include file="Connections/connection2.asp" -->
<%
Dim Categories
Dim Categories_numRows
Set Categories = Server.CreateObject("ADODB.Recordset")
Categories.ActiveConnection = MM_connection_STRING2
Categories.Source = "SELECT DISTINCT SECTION FROM dbo.Items ORDER BY SECTION"
Categories.CursorType = 0
Categories.CursorLocation = 2
Categories.LockType = 1
Categories.Open()
Categories_numRows = 0
%>
<%
Dim Categories__numRows
Dim Categories__index
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.