Nov 6, 2003 #1 James1981 Programmer Nov 2, 2002 76 US Hi I want to add an attribute at runtime to the body tag e.g. <body myAttribute=1> How do I go about doing this? Thanks James
Hi I want to add an attribute at runtime to the body tag e.g. <body myAttribute=1> How do I go about doing this? Thanks James
Nov 7, 2003 1 #2 Custom24 Programmer Nov 27, 2001 591 GB Create a databinding in the HTML <body myAttribute=<%# MyFunction%>> and in your code behind Protected Function MyFunction() as integer Return 1 End Function and in the code behind for your page load Me.DataBind Hope this solves it for you Mark Upvote 0 Downvote
Create a databinding in the HTML <body myAttribute=<%# MyFunction%>> and in your code behind Protected Function MyFunction() as integer Return 1 End Function and in the code behind for your page load Me.DataBind Hope this solves it for you Mark