Coding the Page_Load Event Handler
n
void Page_Load(Object sender, EventArgs EvArgs)
{
StringBuilder Out = new StringBuilder("");
int Count = 0;
// Iterate over component's strings and concatenate
Out.Append("Strings from C# Component<br>");
CompCS.StringComponent myCSStringComp = new
CompCS.StringComponent();
for(int index = 0; index < myCSStringComp.Count;
index++)
{
Out.Append(myCSStringComp.GetString(index));
Out.Append("<br>");
}
// …
Message.InnerHtml = Out.ToString();
}