| Author |
Topic Search Topic Options
|
haxor2
Newbie
Joined: 16 April 2006
Status: Offline
Points: 5
|
Post Options
Thanks(0)
Quote Reply
Topic: New to asp and VBscript Posted: 16 April 2006 at 10:23pm |
|
I am new to asp and vbscript in general. I have had a programming class in C++ and want to start coding asp pages. Can anyone recomend a good reference for VB code to refer to when writing. I think I have the basic concept of VB and asp down I just need some code to write.
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 16 April 2006 at 11:37pm |
ASP is really just a subset of VB. Primary reference source on the web is http://www.w3schools.com/asp/aspfaq.com is another good source. Their search facility turns up a lot of solutions for errors you'll encounter while developing.
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
haxor2
Newbie
Joined: 16 April 2006
Status: Offline
Points: 5
|
Post Options
Thanks(0)
Quote Reply
Posted: 17 April 2006 at 6:39pm |
Thanks for the reply dpyers. I checked out the w3schools link and found a lot of what I am looking for. I have read some of there tutorial before and like the way they present the material. I am hoping to find a complete (or as complete as possible) list of all VB script objects and methods. I have read in several sites that VB is a work in progress and that a complete list is impossible to get. At any rate I will take what I can get my hands on.
Thanks again
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 17 April 2006 at 7:58pm |
|
Well, vbscipt pretty much has access to all of the ms windows objects and to most of the windows api. ASP on the other hand contains about a half dozen embedded oject methos - stuff like the request object, the response object, the session object, etc.
You can still hit most windows com objects but due to the differences between a subset of the language and the full language, many objects are not useable. Most of what is useable would fall into a category that used to be called dcom object - no screen UI. Other objects are executable through WSH but hittting WSH from the web side is usually verboten in a shared hosting environement. And many objeects just can't be referenced through IIS.
If you're looking a developing in a language that can be used to create either windows apps or web apps you would be better off checking out .net. Object oriented framework that would fit in well with a C++ background.
A lot of us .net dilettantes use vb/asp.net but most of the really serious apps are done in C#.net. You'll find that the syntax of C# is similar to C/C++.
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
haxor2
Newbie
Joined: 16 April 2006
Status: Offline
Points: 5
|
Post Options
Thanks(0)
Quote Reply
Posted: 18 April 2006 at 1:53am |
|
I am interested in all the languages C, C++, C#, PERL, ASP. VB, etc. ASP just is the one that I am currently the most interested in because it seems to be able to accomplish the project I am currently looking to complete.
Thank you for all the useful information. I am gonna go read up at w3schools.com and learn all that I can
|
 |
wistex
Mod Builder Group
Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
|
Post Options
Thanks(0)
Quote Reply
Posted: 20 April 2006 at 4:24am |
dpyers wrote:
ASP is really just a subset of VB. |
Not entirely accurate. ASP is really a framework in which you can use many different languages including VBScript, JScript, PerlScript and even PHPScript!
VBScript, however, IS a subset of VB.
Most people use VBScript in ASP applications, and assume ASP is VBscript, which is not true.
I was actually surprised to learn that you could install support for PHPScript and use PHP directly within an ASP page! I haven't tried it, but I'm tempted to. Especially since there are some PHP apps I'm itching to integrate into my ASP/VBScript website.
|
|
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 20 April 2006 at 4:41am |
|
Yup, you're right. I've used javascript but mostly the vbscript subset. The PHP thing is interesting. There was a discussion a while back about passing session stuff between asp and php. Couldn't figure out how to do it but this vould have been the way.
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
wistex
Mod Builder Group
Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
|
Post Options
Thanks(0)
Quote Reply
Posted: 20 April 2006 at 5:00am |
With the PHPScript, you are still using the ASP session variable, because the PHPScript is running in the ASP page itself. PHP does not even have to be installed, from what I understand. PHPScript is an add-on to ASP, and PHPScript pages have an .asp extension.
The method I have used to date is including a PHP script in an ASP page using the MSXML control which allows me to scrape the results of the PHP page and present it in the ASP page. This is good for some things, like displaying data on a page or two, but would be cumbersome if you tried to do this with an large PHP app (i.e. you would have to build an ASP wrap-around page for every PHP page that is called in a browser, and cookies set by the PHP pages probably would not work).
With PHPScript, you can execute PHP directly in ASP and all you would have to do is specify the language like you do now with ASP/VBScript or ASP/JScript. PHPScript might be the solution to the session issue people were talking about before. It would require some modifications to the PHP (i.e. surrounding it with ASP tags that specify its PHPSccript, and changing the extensions to .asp instead of .php, for example). But it may be worth it if there are no other easy solutions.
|
|
|
 |