View Single Post
 
Old September 1st, 2009, 07:50 AM
Kirti.darji
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Imar View Post
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();

}

Last edited by Kirti.darji; September 1st, 2009 at 07:53 AM..