I have a few pages, in each page, I have a gridview which bind db tables and one button for export the gridview to a word doc. My export function works in the page.
My question is: is it possible that I can move the export function to a class file and in the file which can do the export?
the benefits are I only need to write the method once and it will applys all pages export (or maybe make a minor change). for example,
my pages are: page1, 2, 3, ... in each page my export code is:
protected voidButton2CSV_Click(object sender, ClickEventArgs e)
{
//do export...
}
Thanks.
Go to the complete details ...