Forum Moderators: open

Message Too Old, No Replies

closing div tags being added in error

any thoughts?

         

HelenDev

9:13 am on May 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm working with a .NET developer to create some pages. These pages have a header and footer html file and the dynamic stuff is loaded in the middle of these, and I want it to go into a div.

There seems to be a problem however. The opening div tag is in the header file, and the closing one in the footer, but it looks like a closing div tag is automatically being added to the header file, resulting in the page layout getting screwed.

My developer colleague says he doesn't know how to stop it doing this, and my knowledge of all things .NET isn't particularly advanced. Can anyone here shed any light on this?

mrMister

10:59 am on May 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



My developer colleague says he doesn't know how to stop it doing this,[...] Can anyone here shed any light on this?

Yes, your developer is useless :-p

Seriously though, there's not much anyone here can do without seeing the code.

Don't let your developer fob you off with such a flimsy excuse. If they don't know why the bug is occuring, and they expect to get paid then they need to work it out out. It should be them scouring the documentation and posting requests on forums, not you. If they can't fix it, they should outsource it.

HelenDev

4:21 pm on May 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, your developer is useless :-p

He he he, OK, I don't think I'll tell him that exactly ;)

Seriously though, there's not much anyone here can do without seeing the code.

Point taken. I think he's doing some research of his own, it's just that I thought it might ring some immediate bells with someone here.

Not to worry :)

Easy_Coder

7:05 pm on May 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Tell your developer to stop opening the user controls in visual studio. VS is automatically closing what it sees as open tags. One way to prevent this is using some codebehind to generate this html.

TheNige

7:28 pm on May 19, 2006 (gmt 0)

10+ Year Member



I agree, it is probably happening in Visual Studio when he uses the WSYWIG view of the files. Possibly.

I would highly doubt that the tags are getting closed automatically at runtime.