Quote:
Originally Posted by Imar
Hi there,
I think it's wise to post the relevant code, error messages and so on. Without that, this is quite difficult to solve....
If you post code, please use the code tags and the "Remove Text Formatting" button on the toolbar of the message editor.
Cheers,
Imar
|
Thanks
Problem is solve thanks for Support
using pass Webcontrol as parameter in static method
Method-1
private static void Getlist(Gridview Gvlist)
{
datatable Dtlist;
.
.
.
Gvlist.Datasource=Dtlist
Gvlist.Databind()
}
Method-2
Call non static Method in static Method with Class Instance
Code:
private static void getData()
{
TestClass a=new testclass();
a.nonstaticGetdata();
}