ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

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 Dev Shed Forums Sponsor:
Dell PowerEdge Servers
  #1  
Old May 31st, 2003, 10:59 AM
r00miss r00miss is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 4 r00miss User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Newbie in ASP

Hello!
I've never programmed in ASP, but now I have to, and I don't understand this line:
Server.CreateObject("Scripting.Dictionary")

and this line:
<%language = vbscript%>

can anyone explain me what they do?
thank you very much!

Reply With Quote
  #2  
Old May 31st, 2003, 06:56 PM
vb.net vb.net is offline
Demonic Swordsman DGQB
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Posts: 974 vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 7 h 49 m 4 sec
Reputation Power: 76
Hi,

the second line specifies that the Scripting language to use for your page will be VBScript. ASP can be written in VBScript, JavaScript, Perl, or Python. (ASP.NET can be written in C#, VB.NET, or JScript.NET)

The first line I can't tell you for sure, but it looks like you're creating a Scripting.Dictionary object. So if you do
Code:
dim variable 1
Set variable1 = Server.CreateObject("Scripting.Dictionary")

you can then do some manipulation with that obj, which inherits the properties of the Dictionary class.

You should have some basic programming experience before diving into ASP.

Reply With Quote
  #3  
Old May 31st, 2003, 08:11 PM
r00miss r00miss is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 4 r00miss User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you very much!
I still didn't get the second one line

By the way I have programming experience in PHP, VB and Java I need to know ASP now because i gotta rewrite a web-site from ASP to PHP.. but anyways thanx!

Reply With Quote
  #4  
Old May 31st, 2003, 09:36 PM
vb.net vb.net is offline
Demonic Swordsman DGQB
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Posts: 974 vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 7 h 49 m 4 sec
Reputation Power: 76
For the second line <%language = vbscript%>

the alternatives would be <%language = javascript%> or <%language = perl%>

This line specifies which language the interpreter should interpret. The default is VBScript. So if you don't have this line, the interpreter assumes you are writing in VBScript (I think). However, if you specify the language = Javascript, then the interpreter will interpret everything in javascript.

For example, consider this code, written in vbscript:
Code:
<%@Language="vbscript">
dim script
if script = "vbscript" then
    response.write("vbscript")
end if


You would write the same thing in javascript with different syntax:

Code:
<%@Language="javascript">
var script;
if script == "vbscript"
{
    document.write("vbscript");
}


Hopefully, you can see the purpose of the line. You CANNOT do this:

Code:
<%@Language="VBScript">
var script;
if script == "vbscript"
{
    document.write("vbscript");
}


Here, The line specifies vbscript as the language, but in fact the code is written in Javascript. The interpreter would give an error.

Reply With Quote
  #5  
Old May 31st, 2003, 09:43 PM
r00miss r00miss is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 4 r00miss User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Oh ok.. now i get it
thank you VERY much!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Newbie in ASP


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway