paparazzo
paparazzo

Reputation: 45096

WebForms Server Controls

I know this is basic but I have trouble connecting marketing words with the technology.

On the APS.NET web site there are references to WebForms Server Controls
Is that the controls in System.Web.UI Namespace?

If I am porting a (non-MVVM) WPF business application to ASP.NET I am assume WebForms would be the likely candidate.

Upvotes: 0

Views: 493

Answers (3)

Win
Win

Reputation: 62290

More precise, ASP.Net Web Server Controls are under -

System.Web.UI.WebControls namespace.

In addition, all ASP.Net Web Server controls inherit from WebControl.

Upvotes: 1

MyItchyChin
MyItchyChin

Reputation: 14031

WebForms is the web based analog to WinForms and shares a similar event model. WebForms has an extensive set of base controls for handling routing data capture (e.g. date, file upload, form inputs) and display tasks (e.g. data tables, repeaters, labels). In addition to that you can create your own controls either from scratch or from inheriting other controls. When developing your own controls you have the option of developing User Controls or Server Controls. Both have strengths and weaknesses. User Controls are usually easier to develop but are intended to be application specific and aren't easily shared between projects. Server Controls on the other hand are more complex to develop and can easily be embedded into libraries that can easily be shared between libraries.

If you're porting an application from WPF or WinForms, you'll probably be using a lot of the base controls and only creating User or Server controls when a base control doesn't provide the needed functionality.

Upvotes: 0

Icarus
Icarus

Reputation: 63964

On the APS.NET web site there are references to WebForms Server Controls Is that the controls in System.Web.UI Namespace?

Yes.

Upvotes: 1

Related Questions