Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User vs Server Control

Status
Not open for further replies.

JSpicolli

Programmer
Apr 2, 2004
208
US
Hi,

I am pretty sure I need a server control for what I woul dlike to do, but perhaps I can get it done with a user control, thatis what I am looking for help with.

basically, I want to make a visual control that I can treat like an instance object.

For instance:

Poll myPoll = new poll(14);

Is that something I can accomplish with a user control, or will it ned to be a server control?

Also, if anyone has any links to free C# Server control resources, I would apprciatte it if you passed them on to me.
 
User controls are always defined as abstract which means they cannot be directly instantiated. You can dynamically load them using the LoadControl method though. If you want a control which can be instantiated using

MyControl control1 = new MyControl();

then it will have to be a server control.

For server control resources check out..

(Control Library)

and


Rob

Go placidly amidst the noise and haste, and remember what peace there may be in silence - Erhmann 1927
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top