|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
about "intro.css"
Quote:
hi, i'm new asp.net , can u please explain what "intro.css" will contain here? please give me the code. |
|
#4
|
|||
|
|||
|
Quote:
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 |
|
#5
|
||||
|
||||
|
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 ![]() ![]()
|
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > Embarrassing Question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|