code in generated page (asp) do not correspond to the code i project file

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
michael@ojabiler.dk
 
 
Posts: 20
Joined: Wed Aug 29, 2018 2:00 pm

code in generated page (asp) do not correspond to the code i project file

Post by michael@ojabiler.dk » Sat Dec 15, 2018 6:25 pm

Hi experts

I am using an access database, classic asp and WB12 to show cars.
Now the website use iframes to show car data in coloums according to the screensize used

This works
http://leasebil.nu/bil-liste.asp?region ... audi&p=erh

In this test page, i have copy the asp code in to a html object inserted to the page
https://leasebil.nu/listetest.asp?regio ... audi&p=erh

and it seems like the generated code are missing the code in wb project?

The code in the project is
1 Function vis_bil
2 If (Bil = 1) And (skalvises = true) Then
3 Le = 12
4 Ls = "position:absolute;left:" & Le & "px;top:" & Top & "px;width:264px;height:198px;z-index:0;'"
5 Response.write("<div id='wb_bilImage1' style='" & Ls & ">")
6 Response.write("<a href=" & VisSti & " target='_parent'><img src=" & picpath & " id='bilImage1' alt='" & alttag & "'></a></div>")
7 end if
8 end function

but the generated asp file consist of

1 Function vis_bil
2 If (Bil = 1) And (skalvises = true) Then
3 Le = 12
4 Ls = "position:absolute;left:" & Le & "px;top:" & Top & "px;width:264px;height:198px;z-index:0;'"
5 Response.write("<div id='wb_bilImage1' & Ls & ">")
6 Response.write("<a href=" & VisSti & " target='_parent'><img src=" & picpath & " id='bilImage1' alt='" & alttag & "'></a></div>")
7 end if
8 end function

and gives an error because

style=" in line 5 is note generated (missing) when publishing??

Best regards and merry Christmas to all users of WB

Michael from Denmark

User avatar
Pablo
 
Posts: 20947
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: code in generated page (asp) do not correspond to the code i project file

Post by Pablo » Sat Dec 15, 2018 9:43 pm

This is most likely because you have enabled one of the HTML formatting options in Tools->Options->HTML
But you can prevent the 'style=' from being moved by using a different casing.
For example, use 'Style=' instead of 'style='

Post Reply