Microsoft KB Archive/817031

= PRB: Properties Window Displays First Paragraph Tag Property When You Modify an ASP.NET Control Property =

Article ID: 817031

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft ASP.NET 1.1
 * Microsoft ASP.NET 1.0

-



SYMPTOMS
When you change the property of a control in an ASP.NET application by using the list in the Properties window in Microsoft Visual Studio .NET, the Properties window automatically changes to display the property of the first paragraph tag () on the Web page. The problem occurs only one time, and it occurs when you switch from HTML view to Design view. The problem does not occur on later changes in the property.



RESOLUTION
You can use one of the following methods to resolve the problem:
 * Instead of selecting the property value from the list, click the property, and then press the DOWN ARROW key to move to the next value of the property.
 * If possible, remove the paragraph tags. If you cannot remove the paragraph tags, make sure that the first pair do not enclose a control. Instead, make sure the first pair is are grouped together ().
 * Select the ASP.NET server control again, and then modify the property again.



STATUS
This behavior is by design.



Steps to Reproduce the Behavior
 In Microsoft Visual Studio .NET, create a new ASP.NET Web Application Project by using Visual Basic .NET or Visual C# .NET. By default, WebForm1.aspx is created. Right-click the WebForm1.aspx page, and then click Properties. Under Page Layout, select FlowLayout, and then click OK. Drag a Label control from the Toolbox to WebForm1.aspx. Right-click WebForm1.aspx, and then click View HTML Source.</li>  Add paragraph tags around the control as follows: <asp:Label id=&quot;Label1&quot; runat=&quot;server&quot;>Label</asp:Label></P> </li> In the Toolbox, click the Data tab, and then add an object such as a SqlDataAdapter object. By default, SqlDataAdapter1 is created.</li> Switch from Design view of WebForm1.aspx to HTML view, and then switch back to Design view.</li> Select and right-click SqlDataAdapter1, and then click Properties.</li> Edit any of the properties that have a combo box, and then select any property. For example, select MissingMappingAction, expand the list, and then select Passthrough.</li></ol>

<div class="references_section">