Mark said:
This is the ASP.NET newsgroup, for questions about developing web
applications using ASP.NET. If your question relates to the <asp:TextBox
/> web control or the <input type="text" /> HTML control (though I
suspect it doesn't), you're in the right newsgroup.
Hi Mark,
Yes, this is what it relates to - that's why I thought the framework
group was the correct one(?) here is my current code:
this is a part of the page (OI_testdetails.ascx) (it is actually a Web
User Control, but AFAIK that should behave the same as a page):
<div class="hbox">
<div id="OI_Details" runat="server" class="hpanel">
<table class="FormLblTxt">
<tr><td><asp:Label ID="lblPriority" runat="server"
Text="Priority:"></asp:Label></td>
<td><asp:TextBox ID="txtPriority" runat="server"
Enabled="false"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label ID="lblStatus" runat="server"
Text="Status:"></asp:Label></td>
<td><asp:TextBox ID="txtStatus" runat="server"
Enabled="false"></asp:TextBox></td>
</tr>
</table>
</div>
</div>
What I would like is the asp:Textbox controls to be so that the users
can highlight text contained in the textbox to copy it to the clipboard,
but they can not change the text. The above code create INPUTs with the
disabled attribute:
<table style="width: 100%; min-width: 300px">
<tr>
<td class="leftlabel">
Customer:</td>
<td>
<input
name="ctl00$ContentPlaceHolder1$OI_Details1$txtCustomer" type="text"
value="GE Plastics"
id="ctl00_ContentPlaceHolder1_OI_Details1_txtCustomer"
disabled="disabled" class="stdTextbox"
style="width: auto; margin-right: auto;min-width: 200px" /></td>
</tr>
In my browser I can not select / highlight the text at all... could this
be a problem with my skin file or is this behavior by design?
thanks in advance
Axel