当我使用Jquery ui和像这样的Textbox控件检查我的asp.net页面的源代码时:
<asp:TextBox ID="TextBoxNote" runat="server" TextMode="MultiLine" Text='<%#Bind("Note") %>' CssClass="textarea ui-widget-content ui-corner-all" />
它呈现两个文本区域。对于正在创建插件控件以使用我的页面的其他开发人员而言,这会导致问题。
<textarea class="textarea ui-widget-content ui-corner-all" cols="20" rows="2" style="overflow-y: hidden; position: absolute; top: 0px; left: -9999px; height: 56.8px; width: 899.8px; line-height: 15px; text-decoration: none; letter-spacing: normal; font-weight: normal;" tabindex="-1">A note</textarea>
<textarea id="ContentPlaceHolderContent_FormViewDetails_TextBoxNote" class="textarea ui-widget-content ui-corner-all" cols="20" rows="2" name="ctl00$ContentPlaceHolderContent$FormViewDetails$TextBoxNote" style="overflow-y: hidden; height: 56.8px; font-weight: normal;">A note</textarea>