Tutorials to .com


ASP.NET Development Articles


Can't Find What You're Looking For?

Tutorials to .com » Dotnet » Development » How to use the asp + to dynamically create page elements

How to use the asp + to dynamically create page elements

Print View , by: iSee ,Total views: 6 ,Word Count: 112 ,Date: Tue, 25 Aug 2009 Time: 4:08 AM

/ *
Tofu is fine
technical points such as tofu reproduced http://www.asp888.net Please keep copyright information
* /
<SCRIPT LANGUAGE=C# RUNAT=Server>

void Page_Load (Object o, EventArgs e) (
for (int i = 0; i <3; i + +) (
CheckBox cb = new CheckBox ();
cb.ID = "test" + i;
cb.Attributes [ "Test"] = "test";
MyDiv.Controls.Add (cb);
)
)

</ SCRIPT>

<div id="MyDiv" runat="server">

</ div>


Author: tofu ()


Google
 

Rating: Not yet rated

Comments

No comments posted.