scmbgx
scmbgx

Reputation: 81

Replicate ASP.NET Control/Functionality over pages with a single control

I got multiple pages (not all) with the same functionality (a control for send Contact info) even for Dekstop and Mobile websites.

I want to create just one control and declare it as something like: "<asp:MySendInfo />" wherever I want to display all the TextBoxes, Lables, load events, etc, etc; that compose the hole functionality.

I can't use iframes or a masterpage.

Upvotes: 0

Views: 145

Answers (1)

the berserker
the berserker

Reputation: 1594

As a comment from Yuriy above says, you are looking for User Controls (they usually have an .ascx extension). They work pretty much the same as ASP.NET Pages (.aspx). For a quick start this is how you add them to your project and how you register and call them in your page.

Upvotes: 1

Related Questions