public static string GetCodeBehindClassName(ProjectFile file) { AspNetAppProject proj = file.Project as AspNetAppProject; if (proj == null) { return(null); } return(proj.GetCodebehindTypeName(file.Name)); }
public string GetUserControlTypeName(string virtualPath) { string typeName = null; if (project != null && doc != null) { string absolute = project.VirtualToLocalPath(virtualPath, doc.FileName); typeName = project.GetCodebehindTypeName(absolute); } return(typeName ?? "System.Web.UI.UserControl"); }