Forums
This topic is locked
Include problem with UltraDEV?
Posted 17 Jul 2002 03:17:32
1
has voted
17 Jul 2002 03:17:32 aegis kleais posted:
I want to use seperate .ASP files to produce output in multiple parts of my pages so that I can change the code remotely and it'll update on all pages. I use the format:<!--#include file="includes/filename.asp"-->
Sure enough when you view the page in a browser, filename.asp's output is shown. However, when I goto view the page in UltraDEV, the include comment tag TAGS (in highlite yellow) many tags in the document (ie, the same thing that happens to the </b> tag if you remove the <b> tag; it get's highlited to tell you that it's a broken tag)
The website itself is then broken up very bad in the UltraDEV development window to a point where I can't mess with developing it anyfurther. Removing the include fixes the UltraDEV window look. Any fixes/workarounds?
Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])
Replies
Replied 17 Jul 2002 07:43:49
17 Jul 2002 07:43:49 aegis kleais replied:
nm, fixed it.
UltraDEV would rather have you place your SUBS in 1 include and just use CALL Subname in the ASP file to reference that include.
Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])
UltraDEV would rather have you place your SUBS in 1 include and just use CALL Subname in the ASP file to reference that include.
Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])
Replied 23 Jul 2002 12:30:06
23 Jul 2002 12:30:06 Dave Thomas replied:
Can you give us a bit more on the Sub / call Sub?
Have these probs myself and would like to know how you sorted it.
I was under the impression that if you use an include in a seperate directory, you had to call it using a :
<!-- #include virtual=........-->
instead of
<!-- #include file=........-->
"Get the kettle on, time for a brew"
Have these probs myself and would like to know how you sorted it.
I was under the impression that if you use an include in a seperate directory, you had to call it using a :
<!-- #include virtual=........-->
instead of
<!-- #include file=........-->
"Get the kettle on, time for a brew"
Replied 23 Jul 2002 16:53:29
23 Jul 2002 16:53:29 aegis kleais replied:
Well, what I was doing was that, everytime I wanted dynamic content there, I would place the following code:
<!--#include file="includes/file.asp"-->
And then later on in the page where i wanted different dynamic data, I'd place:
<!--#include file="includes/file2.asp"-->
Well, when you save it and preview it in browser, it works fine; the dynamic includes from each file are where they show up; however, when you go back to design view, your page layout is destroyed.
So the way around it was to place all the dynamic coding you want into 1 file and include that under the language directive set (<% @LANGUAGE = VBSCRIPT %><img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
Inside the 1 include are subs like:
Sub Alpha
'alpha code
End Sub
Sub Beta
'beta code
End Sub
.....
So where I wanted dynamic data from the include file, I just placed the code:
<% Call Sub Alpha %>
or
<% Call Sub Beta %>
(You can substitute <% Call Alpha %> but I like placing the keyword SUB there to show people that you're calling a function there)
And boom, the dynamic data showed up where it was called, and the page structure was not ruined in UltraDEV
Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])
<!--#include file="includes/file.asp"-->
And then later on in the page where i wanted different dynamic data, I'd place:
<!--#include file="includes/file2.asp"-->
Well, when you save it and preview it in browser, it works fine; the dynamic includes from each file are where they show up; however, when you go back to design view, your page layout is destroyed.
So the way around it was to place all the dynamic coding you want into 1 file and include that under the language directive set (<% @LANGUAGE = VBSCRIPT %><img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
Inside the 1 include are subs like:
Sub Alpha
'alpha code
End Sub
Sub Beta
'beta code
End Sub
.....
So where I wanted dynamic data from the include file, I just placed the code:
<% Call Sub Alpha %>
or
<% Call Sub Beta %>
(You can substitute <% Call Alpha %> but I like placing the keyword SUB there to show people that you're calling a function there)
And boom, the dynamic data showed up where it was called, and the page structure was not ruined in UltraDEV
Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])
Replied 23 Jul 2002 19:52:23
23 Jul 2002 19:52:23 Dave Thomas replied:
Thanx m8 <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
"Get the kettle on, time for a brew"
"Get the kettle on, time for a brew"