Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 6th, 2003, 01:34 AM
johnmmcglynn johnmmcglynn is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Sydney Australia
Posts: 1 johnmmcglynn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Embarrassing Question

I am V.V.Very.New to ASP and have downloaded a few samples to test. I can't even get "Hello World!" to work.
The problem is that the html in my script gets used, but not the vbscript. Here's an example: (I have removed the <,> from this as it kept getting interpreted. I added code /code tags to no avail)

%@ Page Language="VB" %
html
head
link rel="stylesheet"href="intro.css"
/head

body

center

form action="intro2.aspx" method="post"

h3 Name: input id="Name" type=text

Category: select id="Category" size=1
optionpsychology/option
optionbusiness/option
optionpopular_comp/option
/select

/h3

input type=submit value="Lookup"

p

% Dim I As Integer
For I = 0 to 7 %
font size="%=I%" Welcome to ASP FREE /font br
% Next %

/form

/center

/body
/html


When I put this on my machine as D:\Inetpub\wwwroot\test2.html and then try http://johnm/test2.html from another machine, the part which is supposed to run the vb loop is ignored. I get the form and all the combo choices, but the Welcome text is only run once.

This is what it looks like:
<%@ Page Language="VB" %>
<html>
<head>
<link rel="stylesheet"href="intro.css">
</head>

<body>

<center>

<form action="intro2.aspx" method="post">

<h3> Name: <input id="Name" type=text>

Category: <select id="Category" size=1>
<option>psychology</option>
<option>business</option>
<option>popular_comp</option>
</select>

</h3>

<input type=submit value="Lookup">

<p>

<% Dim I As Integer
For I = 0 to 7 %>
<font size="<%=I%>"> Welcome to ASP FREE </font> <br>
<% Next %>

</form>

</center>

</body>
</html>

I have set up IIS and when I log into http://johnm it shows "Page Under Construction".

I am running Win2K with SP 4. My IE is 6. My Patience is AAEND.

What else do I need to do?

Thanks,

John

Last edited by johnmmcglynn : November 6th, 2003 at 02:07 AM.

Reply With Quote
  #2  
Old December 21st, 2003, 03:52 PM
rptasiuk rptasiuk is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 26 rptasiuk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 29 sec
Reputation Power: 0
Change the first line declaration to: Page Language="VBScript"
Save the page with .asp extension.

aspx extension is for .NET applications. If you are only using ASP don't use this extension. NET requires a different approach when using code blocks and is not as forgiving. You also have to have the .NET Framework installed on the IIS machine.

Reply With Quote
  #3  
Old August 28th, 2006, 02:38 AM
vprashanth_ms vprashanth_ms is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 1 vprashanth_ms User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 54 sec
Reputation Power: 0
about "intro.css"

Quote:
Originally Posted by rptasiuk
Change the first line declaration to: Page Language="VBScript"
Save the page with .asp extension.

aspx extension is for .NET applications. If you are only using ASP don't use this extension. NET requires a different approach when using code blocks and is not as forgiving. You also have to have the .NET Framework installed on the IIS machine.



hi,

i'm new asp.net , can u please explain what "intro.css" will contain here?

please give me the code.

Reply With Quote
  #4  
Old September 7th, 2006, 09:11 AM
minirich minirich is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 2 minirich User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 59 sec
Reputation Power: 0
Quote:
Originally Posted by vprashanth_ms
hi,

i'm new asp.net , can u please explain what "intro.css" will contain here?

please give me the code.


Hi!
This has nothing todo with ASP. Every file with an css extension depends to the style of your page css -> Cascading Style Sheets.
It counts more to the html part of your page than anything else.

Minirich

Reply With Quote
  #5  
Old September 7th, 2006, 09:49 AM
nofriends's Avatar
nofriends nofriends is offline
Senior Water Wizard
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Aug 2004
Location: Cape Town, RSA
Posts: 10,186 nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 107805 Folding Title: Super Ultimate Folder - Level 1Folding Points: 107805 Folding Title: Super Ultimate Folder - Level 1Folding Points: 107805 Folding Title: Super Ultimate Folder - Level 1Folding Points: 107805 Folding Title: Super Ultimate Folder - Level 1Folding Points: 107805 Folding Title: Super Ultimate Folder - Level 1Folding Points: 107805 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 2 Weeks 2 Days 7 h 36 m 24 sec
Reputation Power: 699
Please dont resurect old threads, if you have a query, rather
create a new thread.

the css file is a external style sheet that is used to format the appearance
of the website, have a look here for more info.
__________________
Look! Its a ShemZilla



Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Embarrassing Question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT