Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi...I have small question on the textbox control. How do we assign the width of the textbox to be the width of the table cell it is in. I thought "width=100%" takes care of it.

 

<td width="100"><asp:textbox id="some" width="100%"></asp:textbox></td>

 

But this is not giving what I want. What I understood from the results is the textbox width is such that the whole string that i am loading into it is occupied. Trying to explain it in a different way:

 

In the example above, even though the width of the table cell is 100px, if the string to be loaded into the textbox is 150px, the textbox is automatically expanding to 150px!!!

 

I hope u understood what the problem is!! Is there any way to get around this??

 

Thanks

SJ

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...