Solved

ASP.NET 2.0 - Text Box - 100% Width Does Not Work When Blank!

Posted on 2007-11-21
6
166 Views
Last Modified: 2013-11-26
Experts,
I have a text box that its width is set to 100%. If the text box is empty, it goes to a very minimized size! I need to do something like the one in this page EE Question Wizard text box (title for example) it is full width even when it's empty.

How?
0
Comment
Question by:feesu
  • 3
  • 2
6 Comments
 
LVL 23

Expert Comment

by:Ashish Patel
ID: 20326491
put size property to something and try
0
 

Author Comment

by:feesu
ID: 20326494
My size property is already set to 100%
0
 
LVL 23

Expert Comment

by:Ashish Patel
ID: 20326561
not to 100% it should be in numbers like 35 to represent no of characters. Try putting size="35" and check
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 50 total points
ID: 20326627
set Width="100%"  and also set the Width for table , td , tr tags properly
0
 

Author Comment

by:feesu
ID: 20345204
It works for HTML input, but not for ASP text box.
0
 
LVL 23

Expert Comment

by:Ashish Patel
ID: 20348274
in asp text box there is a size property which you will have to set a value to like size="35" and not in % or px.
0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
.net and XML report from SCCM 5 41
C# Gridview 1 45
Function after success of Jquery/AJAX action 9 27
JSON Deserialize issue 6 26
A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question