3
Reply

Doubts on Static method

prabhu p

prabhu p

Nov 1 2016 7:33 AM
214
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)