Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Building Controls (http://www.velocityreviews.com/forums/f59-asp-net-building-controls.html)
-   -   custom datagrid sample code (http://www.velocityreviews.com/forums/t757171-custom-datagrid-sample-code.html)

Gopal Krish 10-25-2004 05:18 PM

custom datagrid sample code
 
Folks,

I have created a fully reusable, sortable, pageable datagrid as a
composite control (Compiled to a DLL). It works great.

I took that fully working code and tried to implement it as a derived
custom control and it does not display anything on the Browser. I
debugged in line by line and all the logic is executed correctly but
when the control goes to the browser, it just displays a blank screen.
I'm sure I'm doing something silly in my derived control.

Can anyone post a very simple derived datagrid control code or point
me to a sample code on the internet?

Thanks much

Gopal Krish 10-25-2004 11:53 PM

Re: custom datagrid sample code
 
All,

I finally figured out. It was a stupid mistake. However I'm now facing
a new problem.

I have a statement like this which caches a dataview and retrieves
like the following

Cache.Insert(DataViewCacheName, myDataView, null,
DateTime.Now.AddMinutes(_CACHEDURATION),Cache.NoSl idingExpiration);

myDataView = (DataView)Cache[DataViewCacheName];

The above lines works perfectly in a typical web page. But I coded the
same lines inside a derived dtatgrid control, it thorws and error
saying

"C:\Inetpub\wwwroot\BugTracker\ControlsClasses\Con trolsClasses\ICCDataGrid.cs(214):
'System.Web.Caching.Cache' denotes a 'class' where a 'variable' was
expected"

Any thoughts how to make cache work inside the derived control's code?

Thanks


geeksgk@yahoo.com (Gopal Krish) wrote in message news:<8b4092e6.0410250918.2723adfe@posting.google. com>...
> Folks,
>
> I have created a fully reusable, sortable, pageable datagrid as a
> composite control (Compiled to a DLL). It works great.
>
> I took that fully working code and tried to implement it as a derived
> custom control and it does not display anything on the Browser. I
> debugged in line by line and all the logic is executed correctly but
> when the control goes to the browser, it just displays a blank screen.
> I'm sure I'm doing something silly in my derived control.
>
> Can anyone post a very simple derived datagrid control code or point
> me to a sample code on the internet?
>
> Thanks much



All times are GMT. The time now is 02:20 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.