3
Answers

Doubts on Static method

prabhu p

prabhu p

8y
230
1
I have one static method which called from  javascript
 
In that static method i want write Gridview bind coding
 
GridView1.DataSource = Objdt;
GridView1.DataBind();
 
 but it shows this error , How to overcome it,Please reply with code
"An object reference is required for the non-static field, method, or property "
Answers (3)