Object reference not set to an instance of an object
Posted: Thu Aug 27, 2015 2:46 pm
Hi..
I am using following code get value from UI " objName.Element.GetAttributeValue("Value").ToString=strTextValue " but it is giving run time error
"Object reference not set to an instance of an object" when the object value is blank in UI. But my requirement is to fetch even blank values..
Instead if i use " objName.Element.GetAttributeValue("Value")=strTextValue " it works but gives a warning "Implicit Conversion from Object to String"
Plz help to resolve this issue..
I am using following code get value from UI " objName.Element.GetAttributeValue("Value").ToString=strTextValue " but it is giving run time error
"Object reference not set to an instance of an object" when the object value is blank in UI. But my requirement is to fetch even blank values..
Instead if i use " objName.Element.GetAttributeValue("Value")=strTextValue " it works but gives a warning "Implicit Conversion from Object to String"
Plz help to resolve this issue..