I have a gridview that has to be shown under different conditions depending on which tab is selected on a page.
For now I have tried to solve this using a UserControl and even though this has worked fine for me before, this one is causing me a pain. I think it is because it resides in the same directory which appears to be a big issue for ASP.NET
But its only on this page so I though if there is another way where one can define a section (Panel like) and refer to showing it more than one place. I control the conditions through the datasource, so this appears to be a valid choice.
soerenkbhg
Member
134 Points
75 Posts
Reusing gridview in same page but various tabs - is there an alternative to usercontrol?
Feb 24, 2012 01:56 PM|LINK
Hi
I have a gridview that has to be shown under different conditions depending on which tab is selected on a page.
For now I have tried to solve this using a UserControl and even though this has worked fine for me before, this one is causing me a pain. I think it is because it resides in the same directory which appears to be a big issue for ASP.NET
But its only on this page so I though if there is another way where one can define a section (Panel like) and refer to showing it more than one place. I control the conditions through the datasource, so this appears to be a valid choice.
TIA
Soeren Dalby
niksv
Contributor
5925 Points
1115 Posts
Re: Reusing gridview in same page but various tabs - is there an alternative to usercontrol?
Feb 25, 2012 02:49 PM|LINK
You mean a common tabpanel with grid that will be displayed for all the tabs! NO. Thats not possible with ajx tabcontainer.
ramiramilu
All-Star
95413 Points
14106 Posts
Re: Reusing gridview in same page but various tabs - is there an alternative to usercontrol?
Feb 26, 2012 11:55 AM|LINK
you might end up in writing your own tab container in this case...
Thanks,
JumpStart
niksv
Contributor
5925 Points
1115 Posts
Re: Reusing gridview in same page but various tabs - is there an alternative to usercontrol?
Feb 27, 2012 11:48 AM|LINK
In that case, stick to the user control which you have already created as it worked for you.