my intention is to get webpart list attached in asp.net page. In sharepoint web page, we can do like this :
SPWeb web = SPContext.Current.Web;
SPLimitedWebPartManager webPartManager = web.GetLimitedWebPartManager(
Page.Request.Path,
PersonalizationScope.Shared);
for (int i = 0; i < webPartManager.WebParts.Count; i++)
{
// We can do checking here or whatever we want......
}
But how to do it in asp.net page ? Thank you.