Author: sparco87 | Posted on: 7/29/2008 1:15:56 PM | Views : 268

Hi everyone, I am doing a site in .net 2.0 I did one in 1.1 and I used the following code to set my background properties

 
CType(c, HtmlGenericControl).Style("background-color") = colors
CType(c, HtmlGenericControl).Style("background") = "url(" & myreader.GetValue(5) & "); background-repeat: no-repeat; backgrouond-attachment:scroll"

 and it worked fine. I am now doing the EXACT same thing but in the 2.0 frame work and I get the following error....

System.NullReferenceExcepti ...

Go to the complete details ...