I want to load a user control like in a regular web part but in a mobile web part.
The regular method of doing it:
private const string _ascxPath = @"~/_CONTROLTEMPLATES/WP7.SP.MobileWebPart/MobileWebPart/MobileWebPartUserControl.ascx";
protected override void CreateChildControls()
{
Control control = Page.LoadControl(_ascxPath);
Controls.Add(control);
}
How do I do it in a mobile web part?