![]() ![]() | ||
You can write HTML to a Web form at run time with the Write method of the ASP .NET Response object. For example, to write the <h1> header "Welcome to my page!" in a Web form at run time (not design time), place this line in the Page_Load event handler:
Response.Write("<h1>Welcome to my page!</h1>")
You can see this at work in the WriteHTML example on the CD-ROM, as you see in Figure 14.18.
![]() ![]() | ||