C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing | Talk to Us |



My Profile

Gifts

Active Members
TodayLast 7 Days more...







Enter characters in textbox with out spaces causing page width increase


Posted Date: 13 May 2008      Total Responses: 4

Posted By: qqqqqqqqq       Member Level: Bronze     Points: 1


hi
i have a textbox when i enter characters without spaces then the width of my entire page is increasing .
below is the code which i have written
i got a answer from u saying that to use width i already used the width
that is not solving my problem
can u send the useful answer

<asp:text box id="txtDescrizioneUIAssociata" text mode="multi line" Wrap="true" run at="server" max length="50" Width="70%"></asp:text box>






Responses

Author: shakti singh tanwar    13 May 2008Member Level: DiamondRating:     Points: 2
Please paste the complete page code so that we might have a better idea about the problem


Author: qqqqqqqqq    13 May 2008Member Level: BronzeRating:     Points: 2
<table width="100%">
<tr>
<td style="width:70%">
<asp:Label ID=lblDestinazione runat=server Text="<%$ Resources:MarketAnalysis, lblDestinazione %>"></asp:Label><br />
<asp:TextBox id="txtDescrizioneUIAssociata" TextMode="MultiLine" Wrap="true" runat="server" MaxLength="50" Width="70%"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtDescrizioneUIAssociata"
ErrorMessage="<%$ Resources:MarketAnalysis,DescriptionRequired%>"><img src="../Data/images/excl.gif" /></asp:RequiredFieldValidator>
</td>
<td style="width:30%"> </td>
</tr>

</table>


Author: MuthuKumar    13 May 2008Member Level: SilverRating:     Points: 2
don't set the value as % in width. bcoz if u give 70% it will take the width of 70% from the page width. for ex if u give 1000px as page width, the textbox width will be 750px. so always give the width in px format like 100px.


Author: qqqqqqqqq    13 May 2008Member Level: BronzeRating:     Points: 2
thank you very much for you help now its working properly.


Post Reply
You must Sign In to post a response.
Next : methods
Previous : HttpResponse & HttpRequest Classes
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



Read TATA Nano reviews.
dotNet Slackers   BizTalk Adaptors    Web Design   Scripts
Are you waiting for engineering entrance result? Watch here for engineering entrance results.
internet fax

Contact Us    Privacy Policy    Terms Of Use