Wrox Programmer Forums
|
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4
This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040
Please indicate which version of the book you are using when posting questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 26th, 2005, 11:08 PM
Authorized User
 
Join Date: Jan 2005
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default End If Question.

Just wondering.....
What is the difference between

End If

and
<% End If %>

We use one of each on home.asp page of the Soccer site..

Thanks!!
Lori.

 
Old February 27th, 2005, 05:29 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It depends on whether you're already inside a server side script block or not. For example:

<%

If Something = SomethingElse Then

Else

End If

%>

In this example, the entire code block is between the <% and %> markers, so everything between the If and End If is pure ASP. Now consider this:

<% If Something = SomethingElse %>
<h1>Hi there, Something</h1>
<% End If %>

In this example, ASP is mixed with plain HTML. When Something is Something, the ASP code block is closed and plain HTML is sent to the browser.
The h1 will not be sent when Something does not equal SomethingElse.

HtH

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old February 27th, 2005, 11:20 PM
Authorized User
 
Join Date: Jan 2005
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh, that makes sense!!

Thanks Imar!!

Are you sick of my questions yet?? ;);)

 
Old March 2nd, 2005, 05:06 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You're welcome. And no, not sick of your questions yet.....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Front end Vs Back end ricmar Access VBA 3 May 27th, 2008 02:36 PM
Ms Access front End with Oracle 10g Back End rahul123 Oracle 1 July 9th, 2007 01:03 AM
Oracle back-end MS-Access 2003 client front-end Corey Access 2 February 16th, 2007 08:31 AM
Oracle Back End - MS Access Front End - Multi User ckaliveas Oracle 1 February 1st, 2007 06:00 AM
unexpected end of file question Spivonious C++ Programming 4 September 15th, 2004 02:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.