Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# MichiM 10/13/2006 4:56 AM
Hi there,

After the Upgrade from 0.91 to 1.0 a side is shown in a different way. I have a Common User Control and a Datagrid. In the old Version these 2 controls were shown in the right order (1st Common UC the Datagrid), after the update the datagrid is shown before the usercontrol (means in the opposite order).

I didn't change anything in the CSS but I had to change my template because my old template header didnot work because of following line
header

bracket-open :link id="CssStyleSheet" rel="stylesheet" type="text/css" runat="server" / bracket-close
			bracket-open: style type="text/css" - bracket-close
			body {background:#ffffff; margin:0px; padding:0px;}
			bracket-open /style bracket-clsoe

So I took the new template header (from the file cuhahoga.ascx) which seemed to work fine.

I am quite a newbie in web programming and sometimes it seems to me that i hardly know what i am doing or why things sometimes are working and sometime not.

Could someone help me please.

Greets, Michi

p.s i had to replace the brackets < and > with bracket open and braket close 'cos the server wont let me post the code
# MichiM 10/13/2006 8:38 AM
Somehow know it works although i didn't changed a bit of code which seems relevant to me.

So keep tuned ..... possibly it depends on weather its morning or afternoon.

# martijnb 10/13/2006 8:51 AM
From 0.9 to 1.0 we changed the way Stylesheets are inserted into the template to allow multiple stylesheets. From the 1.0 release notes:
Allow modules to insert their own stylesheets.
BREAKING CHANGE: In custom template controls
&lt;link id="CssStyleSheet" rel="stylesheet" type="text/css" runat="server" /&gt;
must to be replaced with
&lt;asp:literal id="Stylesheets" runat="server" /&gt;.

Btw, you can't post angle brackets in the forum because ASP.NET thinks it is dangerous by default. I usually work around this by manually replacing the brackets with their htmlencoded representation ( & lt; & gt; without the spaces after the &).