Use VisualWebDeveloper, create a web user control (WebUserControl) and create a asp.net page as simple as that.
steps are as follows:
1, open an already created user control to add a Web site project.
2, right-click the project, in the context menu, select “Add New item”, open the “New Item” dialog, which have VisualStudio installed templates list. As shown below, select the “web user control”
498) this.style.width = 498; “>
3. Click Add to add a web user control to a Web site project, you can open the control in Design view, and then add controls from the toolbox to a web user control.
4. In addition to the. ascx as extension, Asp.net in web user control and Asp.NetWeb page looks very similar at the same time, there is a @ Control directive, rather than the @ Page directive @ Control directive looks like the following that
5, in a web page up for web user control is very simple in design mode from the Solution Explorer drag to the desired web user control page can be, VisualStudio automatically registered web user control on the page, the page to add a @ Register directive

May 7, 2011 at 11:23 pm by admin
Category: Uncategorized
Tags: