When you put other HTML or ASP.NET controls inside the
MultiPage controls then you can't directly access them in server side. But in
client side you can directly access them using document.getElementById.
Server Side Access
Suppose you have placed an Asp.NET Label control in one of
the tabs. This control is not directly under the Page control. So you can't
directly access it. You have to do the following:
MultiPage multipage = (MultiPage)Page.FindControl("MultiPage1");
PageView PageView1 = (PageView)multipage.FindControl("PageView1");
Label lblName = (Label)PageView1.FindControl("lblName");
lblName.Text = "Dynamically generated text";
As you can see, first we have to access the MultiPage
control. Then under that the PageView control and after that our Label.
Client Side Access
There is no problem for accessing the controls in client
side. You can directly access them as other normal controls, because while
rendering the controls in HTML ComponentArt doesn't change the ID of the
controls. They remain the same as specified while designing. So you can use the
following line to access the Label :
document.getElementById("lblName").innerHTML = "Client text ";