> So:
>
> protected System.Web.UI.HtmlControls.HtmlGenericControl BodyTag;
>
> BodyTag.Attributes.Add("onload", "machWas(<%=foo%>)");
>
geht irgendwie nicht :-(
In der Klasse
protected System.Web.UI.HtmlControls.HtmlGenericControl body;
In der verarbeitenden Funktion:
if(clientByID == false)
{
this.temp = "templates/anmeldung.ascx";
}
else
{
HtmlGenericControl body = new HtmlGenericControl("body");
body.Attributes.Add("onload", "UserList();");
this.temp = "templates/webchat.ascx";
}
this.main.Controls.Add(LoadControl(this.temp));
In der JS-Funktion UserList():
alert("aufruf userlist-func");
Die alert-Box erscheint nie.
Wei� einer warum?
Danke
Rene
------------------
Professionelles .NET Hosting auf leistungsf�higen Servern.
ASP.NET, VS.NET, XML, CDO, SQL 2000 und vieles mehr.
Informieren Sie sich jetzt unter http://www.aspnet.de
_______________________________________________
Asp.net mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/asp.net