Posted on: 11/27/2013 6:48:00 AM | Views : 593

Hi,
I am working on an asp.net/C# project and I am a beginner in webprogramming. I get the below error on runtime:
"Object reference not set to an instance of an object."
Below is my code:
protected void Page_Load(object sender, EventArgs e) { txtUsername.Focus(); if (cmbThemes.SelectedItem.Text=="Red") { pnlSignin.Border.BorderColor = Color.Orange; } } cmbThemes is a combobox.
I am getting the error inside the if condition. pnlSignin is the panel i am using and getting the error there.

Thanks in advance

Go to the complete details ...