Click here to Skip to main content
15,886,091 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I want to diplay label like this with textbox




Label ______________________________#
|
|
|
|
|
|
_______________________________#
This is the code Snippet
C#
<fieldset class="fldset">
              <legend>Comments</legend>
                <asp:Label ID="Label1" runat="server" Text="Label" >
              <asp:TextBox ID="txtpreComments" runat="server" Height="77px" Width="326px"  
                    TextMode="MultiLine" style="margin-left: 96px; margin-bottom:23px">
                <asp:Label ID="Label3" runat="server" Text="Label">
              <asp:TextBox ID="txtcurComments" runat="server" Height="74px" Width="312px"  
                    TextMode="MultiLine" style="margin-left: 114px; margin-bottom:23px">
             </fieldset>
Posted
Updated 20-Apr-14 22:42pm
v4
Comments
Ajith K Gatty 21-Apr-14 3:46am    
CSS is a good option for you.
Sampath Lokuge 21-Apr-14 4:08am    
Can you put the code snippet for your text box and label ?
Ni!E$H_WAGH 21-Apr-14 4:24am    
I have improved question with code snippet.

1 solution

Please try is as below.

Note: This is just an example.Adjust it according to your app. :)

XML
<table style="width:300px">
<tr>
  <td><label for="male">Male</label></td>
    <td><input type="text" name="mName"/></td>
  </tr>
    <tr>
  <td><label for="female">Female</label></td>
    <td><input type="text" name="fName"/></td>
  </tr>
</table>


LIVE DEMO : JSFiddle
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900