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 January 17th, 2006, 10:44 AM
Authorized User
 
Join Date: Jan 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP icon in design view

Hi,

I sync'd down a website and while viewing in design view all I see is a little "ASP" graphic in the upper left side of page. If i preview in browser the site comes up fine. When I right click on that "Asp" icon it highlights the following code. I cannot find any errors in the code. IIS user account has full control to the "start.mdb" database as well. ANy ideas? Thanks

<%
strConnect = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\Inetpub\wwwroot\Start\data\start.mdb;" & _
"Persist Security Info = False"

Dim oConn
set oConn=Server.CreateObject("ADODB.Connection")
oConn.open strConnect

Dim adOpenDynamic
Dim adLockPessimistic
adOpenDynamic = 2
adLockPessimistic = 2

%>

 
Old January 17th, 2006, 10:52 AM
Authorized User
 
Join Date: Jan 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just to add to the above post. Within tag inspector the above code says "Locked Region" and will not allow me to edit

 
Old January 17th, 2006, 10:53 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Dreamweaver displays an ASP icon in Design View for all server side ASP blocks, so there is nothing to worry about.

If the entire site is built-up with ASP (e.g. lots of Response.Write statements for example), you'll have no design view at all, but you'll only see ASP icons.

You can hide non-visual stuff in Design View by pressing Ctrl+Shift+I.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old January 17th, 2006, 10:58 AM
Authorized User
 
Join Date: Jan 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If I remove the above code the design view comes back. There is also an at the very top of the page. I am wondering if whoever made this site created a "Locked" region and if they did how would I unlock it?


 
Old January 17th, 2006, 11:01 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 can lock regions in a few ways.

One is through the DW template feature. If you create a template, any non-editable regions will appear locked in pages using the template.

ALso, code can get locked if it's the result of a server behavior. In that, you'll have to change the code through the Server Behaviors tab.

There is no easy way to unlock a page based on a template. I usually take the page outside Dreamweaver, remove all the comment tags related to templates and then open the page in DW again...

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot view the design of the .aspx page sansircar ASP.NET 1.0 and 1.1 Professional 1 October 24th, 2006 01:31 PM
Report change in Design View echovue Access VBA 4 March 3rd, 2006 04:31 PM
Blank Design View ??? smuger Dreamweaver (all versions) 4 October 11th, 2004 04:40 PM
how to enable the design view yylee Access VBA 2 October 4th, 2004 02:23 PM
Could not open in design view!! texasraven ASP.NET 1.x and 2.0 Application Design 4 March 17th, 2004 03:22 PM





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