I'm using this code on the "Page_Load" code-behind to make the page tilte:
Label lblProdcucer = (Label)fvAdditionalInformation.FindControl("Label1");
Label lblItemName = (Label)fvAdditionalInformation.FindControl("Label3");
Page.Title = string.Concat("Now Viewing: Item Information", " >",
" ", lblProdcucer.Text, " ", lblItemName.Text);
This
works great if I'm viewing a page that has information for
the "label1 and Lable3" to display. But what If there isn't anything
in the database for either of these (null values) it will error with: "System.NullReferenceException: Object referen ...
Go to the complete details ...