How to load a user control dynamically in runtime?
Control c = (Control)Page.LoadControl("~/usercontrol/MyUserControl.ascx");
Page.Form.Controls.Add(c);
How to get the authentication mode from web.config file programmatically at runtime?
System.Web.Configuration.AuthenticationSection section =
(AuthenticationSection)WebConfigurationManager.GetSection("system.web/authentication");
Label1.Text = section.Mode.ToString();
What’s the difference between Response.Write() and Response.Output.Write()?
Response.Output.Write() allows you to write formatted output.
What’s a bubbled event?
When you have a complex control, like DataGrid, writing an event processing routine for each object
(cell, button, row, etc.) is quite tedious. The controls can bubble up their event handlers, allowing the
main DataGrid event handler to take care of its con