Forum Moderators: open

Message Too Old, No Replies

ASP and templates

won't accept code

         

humpg

7:52 pm on Nov 29, 2004 (gmt 0)

10+ Year Member



I have a set of layers which I am trying to put some asp code into but the editable region in dreanweaver won't accept it.

Here is the layer layout:

<div id="main_content_container">
<!-- InstanceBeginEditable name="edit_content" -->

<% trying to insert ASP code right here to create a recordset %>

<!-- Main Content Header -->
<div id="main_content_hdr"></div>

<!-- Main Content Container -->
<div id="main_content"> </div>

<!-- Main Content Footer -->
<div id="main_content_ftr"></div>

<!-- InstanceEndEditable -->
</div>

runre

3:38 am on Dec 2, 2004 (gmt 0)

10+ Year Member



What do you mean by... "but the editable region in dreanweaver won't accept it"? Can you be more descriptive?

humpg

12:43 pm on Dec 2, 2004 (gmt 0)

10+ Year Member



Not an ASP problem.

When ever I try to put code into the editable region with dreamweaver and try to save a window pops up saying:

"Making this change would require changing code that is locked by a template or translator. The change will be discarded."

I have narrowed it done to one line in my stylesheet that is causing the problem. It seems to be having a problem with position: relative;. Which is weird because I have this in several spots troughout the stylesheet. If I comment out this line it works fine.

Any Ideas?

humpg

12:47 pm on Dec 2, 2004 (gmt 0)

10+ Year Member



Here is the css:

#mainmenu_container{
position: relative; <---- Problem?
z-index: 4;
width: 670px;
height: 37px;
top: -35px;
left: 59px;
margin: 0px;
padding: 0px;
}

runre

2:40 pm on Dec 2, 2004 (gmt 0)

10+ Year Member



humpg, I wonder if the negative value [top: -35px;] is trying to position the object outside of the editable region boudaries.

humpg

2:59 pm on Dec 2, 2004 (gmt 0)

10+ Year Member



Well making that a positve value worked. But that part that the css is attached to is in a locked region in the template. My editable region is in a totally different location.

I'm confused?

runre

3:23 pm on Dec 2, 2004 (gmt 0)

10+ Year Member



It seems that you are positioning this object into an area that Dreamweaver has been told to freeze. I'll bet that you could make the area that you are trying to place this object into "editable" and all would be well.

humpg

4:05 pm on Dec 2, 2004 (gmt 0)

10+ Year Member



Just updated to Dreamweaver MX 2004 from just MX. And don't seem to have a problem with it now.

I was hoping the design view would look a little better in the new one. But of course, no go.

If there is one do you know of a good editor that can display above average css properly?

Kinda of getting tired of doing a simple little change and having to go check it out in a browser just too make sure it worked.

Thanks for you're help though, I was on the dreamweaver forum yesterday and they couldn't figure it out. You nailed it right on the head.

Thanks Again,
Gary

runre

4:52 pm on Dec 2, 2004 (gmt 0)

10+ Year Member



Glad to help, Gary.

I have the same gripe about switching to a browser to get a good look at the page. I have had good luck with HomeSite ver.5x. ASP includes aren't visible, but the CSS renders pretty well :<)