New answers tagged application-pages
Nevermind! Make sure the feature is included in Package.package. In my case, at least.
Go to your .cs designer file. Change: protected global::System.Web.UI.HtmlControls.HtmlGenericControl FinalScoreframe; To: protected global::System.Web.UI.HtmlControls.HtmlIframe FinalScoreframe; Will solve your problem. :)
Have you tried to use SPFieldUser.GetFieldValueAsHtml method? Update You can try use this code, but I'm not sure about details because it from my head and I cannot test it now. SPUser user = SPContext.Current.Web.CurrentUser; SPFieldUser userField = SPContext.Current.Web.Fields[SPBuiltInFieldId.AssignedTo] as SPFieldUser; string userLookup = ...
This has been mentioned before, but something I am about to dive into as well. This post should help in shedding some light... How to put custom user control on page layout
In SharePoint designer, copy the Register and User tag from your application page into the site page (.aspx). Or, just create them manually with this syntax. You should put the Register tag up top below the others and instantiate wherever makes sense to you <%@Register Tagprefix="ucSA" TagName="SysAlerts" ...
You don't need to use Page.Form.Enctype = "multipart/form-data";. When you are working with Application pages you have to use Page.Request.Files which gives you a HttpFileCollection object. This contains all files from all fileupload controls that has the runat="server" attribute on the page.
Top 50 recent answers are included