G
Guest
I am using Visual Studio 2003 and in order not to repeat body tag details in
every page
<body leftmargin=0 topmargin=0 ....
I put those details as an variable in my class:
public class WebRoot: System.Web.UI.Page {
public String my_body = "leftmargin=0 topmargin=0";
......
}
and then use the following in the default.aspx page:
<body MS_POSITIONING="GridLayout" <%=my_body%>>
Now, the problem is I cannot use "DESIGN" mode anymore, VS2003 gives me
error saying "Could not open in Design View. Please quote around a '<%%>'
block used as an attribute value or within a <SELECT> element.
However, if I put <%=my_body%> in other places in the aspx page, it works.
Only <Body> tag is the problem.. help!!!
Any solutions?
every page
<body leftmargin=0 topmargin=0 ....
I put those details as an variable in my class:
public class WebRoot: System.Web.UI.Page {
public String my_body = "leftmargin=0 topmargin=0";
......
}
and then use the following in the default.aspx page:
<body MS_POSITIONING="GridLayout" <%=my_body%>>
Now, the problem is I cannot use "DESIGN" mode anymore, VS2003 gives me
error saying "Could not open in Design View. Please quote around a '<%%>'
block used as an attribute value or within a <SELECT> element.
However, if I put <%=my_body%> in other places in the aspx page, it works.
Only <Body> tag is the problem.. help!!!
Any solutions?