I think many people mostly use quickpart to wrap the ascx user control when developing webpart in Sharepoint.
The advantage is that you can drag and drop controls to display them intuitively, especially when there are many interface elements.
However, there is also some dissatisfaction, that is, the debugging of the ascx control. It cannot be debugged in vs by appending the w3wp process like the webpart written in the code, we also encountered this problem. modify it, deploy it, and then make a mistake. Then, modify it, And then deploy it. Then, an error is reported ,......
It is a headache to see the correct results after several iterations.
But yesterday, my colleagues found a good way to debug such a webpart.
When we develop the ascx webpart, we create a new web site before we can add the ascx control. When publishing, we select single-page assembly for pagination, then copy the ascx file and its background code DLL to C: \ Inetpub \ wwwroot \ WSS \ virtualdirectories \ 80 \ wpresources and C: \ Inetpub \ wwwroot \ WSS \ virtualdirectories \ 80 \ bin directory.
1. Create a new web site, add the ascx control, support control, and write code.
2. Open IIS and create a virtual directory under your SharePoint application. For example, my application is built on port 80, then sharepoint-80 [Right-click] [new] [virtual directory], in the selection of the path to select the web site you created above, after the completion of the can be, that is to say, your website is in the SharePoint environment.
3. Open vs, choose to open the website, select the website you just created, set the breakpoint, start debugging, and you will see the breakpoint parked in the place you set. You can debug it.
In this way, we can not only enjoy the intuitive convenience of ascx control development, but also enjoy the benefits of debugging.
Below is the Web groupbox I found. If you forget it, put it here.
Http://www.w3school.com.cn/tags/tag_legend.asp
HTML <legend> label
Definition and usage
The legend element can define a title for fieldset.
Instance
<Fieldset>
<Legend> Health Information: </legend>
<Form>
<Label> Height: <input type = "text"/> </label>
<Label> weight: <input type = "text"/> </label>
</Form>
</Fieldset> Differences between HTML and XHTML
In HTML 4.01, The align attribute is not in favor of use.
In the XHTML 1.0 strict DTD, The align attribute is not supported.
Optional attributes
DTD indicates the DTD in which this attribute is allowed. S = strict, t = transitional, F = frameset.
Attribute value description DTD
Align top
Bottom
Left
Right
Defines the arrangement of content in fieldset. The default value is top. TF
Standard attributes
For complete descriptions of ID, class, title, style, Dir, Lang, XML: Lang, visit standard attributes.
Event attributes
Accesskey, onclick, ondblclick, onmousedown, onmouseup, onmouseover,
Onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
For a complete description, visit the event attributes.
Tiy instance
Source: http://www.cnblogs.com/virusswb/archive/2008/12/30/1365003.html