I followed the Code
protected override void CreateChildControls()
{
XmlFormView formView;
formView = new XmlFormView();
formView.Width = ASP.Unit.Percentage(100);
formView.Height = ASP.Unit.Pixel(100);
formView.XsnLocation = "Path to form XSN";
formView.ShowHeader = false;
formView.ShowFooter = false;
this.Controls.Add(formView);
base.CreateChildControls();
}
for showing the InfoPath form in a webpart. I am a getting valid InfoPath form in the SharePoint webpart.
But when I follow the same code for showing InfoPath form in the Custom Master page application, I could not able to show the InfoPath form. How can I acheive this?