Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How to correctly load a dynamic control c#

Thread Tools

How to correctly load a dynamic control c#

Posts: n/a

This is best-practise question, I am very keen to hear your thoughts.

I have a method that accepts a DataSet. The method then builds a table
structure using data from the Dataset. As the table builds I add
linkButtons to certain cells and associate them with an onClick event.

If I place a call to the method in the onLoad() or init() events
(which I know I have to in order to have viewstate) all is well
ASSUMING the dataset that populates my original method is available
but if not obviously the call to the method will fail.

I assume that I just do a check to see if the dataset is there, and
then call the method from the page_load() - but maybe I'm missing

I would be glad of some input

Many thanks

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
IE6 doesn't load correctly M. Fisher Javascript 4 03-06-2007 04:32 PM
placement of dynamic control depends on VALUE of dynamic control Larry Bud ASP .Net 1 01-10-2007 10:07 PM
edit attribute values of a web control just before control rendered to the page (control's Load event?) TJ ASP .Net Web Controls 4 04-07-2006 01:30 AM
Cant correctly load .js files when creating page dynamically in IE Jake Lewis Javascript 4 10-16-2004 01:48 PM