Hi everyone,
I'm having a problem with UserControls. Specifically, they don't show up and I'm getting null reference exceptions during load. protected void Page_Load(object sender, EventArgs e) {
lblScore.Text = q.Score.ToString();
lnkQuote.Text = "#" + q.QuoteID;
lblTime.Text = q.Submitted.ToString( "yyyy-mm-dd" );
divBody.InnerText = q.Text;
divComm.InnerText = q.Comment;
}Each of the controls are null, and I don't know why. "q" is defined as it should be. The ASPX page is the following <%@ Control Language="C#" AutoEventWireup="true" CodeFile="QuoteControl.ascx.cs" Inherits="QuoteControl" %>
<asp:ScriptManager Go to the complete details ...