This is huge pain.
It is a very well known bug.
I ended up inheriting from Page and adding that section to my base class in
code.
Then you can set properties and not worry about the designer messing up that
part of the page.
This problem is fixed in 2005 but will not be addressed in 2003. It is too
big of a design change.
Many people NEVER switch from HTML view to Design once the have dropped
object on the initial page design.
They just do everything in HTML. Others use Dreamweaver so that when the
designer makes a mess of your HTML, you can restore it.
--
Joe Fallon
"Carlo Marchesoni" <Carlo
Ma********@disc ussions.microso ft.com> wrote in
message news:EB******** *************** ***********@mic rosoft.com...
Some days ago I asked this forum whether it is possible to set up the
<title> from the code-behind. A couple of poeple helped me and in fact it is
quite ease: a) change the HTML, e.g.:
<title id="titAV0010" runat="server"> </title>
b) define the field as GenericControl:
protected System.Web.UI.H tmlControls.Htm lGenericControl titAV0010;
c) change modifying the innerText property:
titAV0010.Inner Text = rm.GetString("A V0010.Title");
This works fine, but the pitty is that from time to time VS.NET just
removes the runalt="server" attribute from the <title> tag - it looks like a
bug of the Designer. Is there a workaround to this ?