Home
Manage Your Code
Snippet: Attributes (C#)
Title: Attributes Language: C#
Description: Adding attributes Views: 130
Author: Ramachandran Melarcode Date Added: 6/27/2008
Copy Code  
1<body id="bodyHomePage" Runat="Server">
2
3And then in your Page_Load do something like this:
4
5bodyHomePage.Attributes.Add("onLoad", "alert('Welcome visitor')")
6
7<%=string%>