Click here to Skip to main content
15,867,835 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionControls in other page Pin
yaminilatha11-Apr-07 22:24
yaminilatha11-Apr-07 22:24 
AnswerRe: Controls in other page Pin
gauthee11-Apr-07 22:29
gauthee11-Apr-07 22:29 
AnswerRe: Controls in other page Pin
Chetan Ranpariya12-Apr-07 21:40
Chetan Ranpariya12-Apr-07 21:40 
GeneralRe: Controls in other page Pin
yaminilatha13-Apr-07 1:32
yaminilatha13-Apr-07 1:32 
GeneralRe: Controls in other page Pin
Chetan Ranpariya13-Apr-07 1:39
Chetan Ranpariya13-Apr-07 1:39 
QuestionSetting master page values Pin
Brendan Vogt11-Apr-07 22:05
Brendan Vogt11-Apr-07 22:05 
Questionhow to set the width of a label webcontrol at runtime Pin
MissionSuccess11-Apr-07 21:43
MissionSuccess11-Apr-07 21:43 
AnswerRe: how to set the width of a label webcontrol at runtime [modified] Pin
thomasa12-Apr-07 0:04
thomasa12-Apr-07 0:04 
Your lable should looc something like this
asp:label id="lblMyLabel" runat="server">Some text<br />
/asp:label>


Be shore to have the id and runat attribute on the lable.
This will bring a
protected System.Web.UI.WebControls.Label lblMyLabel;
in the code behind file for this page(if not, add it).

Now you can set the lables width by
lblMyLabel.Width = Unit.Parse("50%");<br />
or<br />
lblMyLabel.Width = Unit.Parse("64px");<br />
or<br />
lblMyLabel.Width = 54;<br />


If you don't sett the with of the label it will autosize it to the length of the
text, thus the tablecell of the table the lable is in, will of course have a mather to say on the length of the lable.

Hope it helps
Thomas


-- modified at 4:49 Tuesday 17th April, 2007
QuestionNeed help in DropDownList in Grid View Pin
Jia Fang11-Apr-07 21:30
Jia Fang11-Apr-07 21:30 
AnswerRe: Need help in DropDownList in Grid View Pin
gauthee11-Apr-07 22:40
gauthee11-Apr-07 22:40 
AnswerRe: Need help in DropDownList in Grid View Pin
thomasa11-Apr-07 22:49
thomasa11-Apr-07 22:49 
QuestionTree view remove child node Pin
J Liang11-Apr-07 20:39
J Liang11-Apr-07 20:39 
AnswerRe: Tree view remove child node Pin
Naveed Kamboh11-Apr-07 22:37
Naveed Kamboh11-Apr-07 22:37 
GeneralRe: Tree view remove child node Pin
J Liang11-Apr-07 22:50
J Liang11-Apr-07 22:50 
QuestionScreenscraping Real Time Stock Quotes ?? Pin
vivek_r11-Apr-07 20:16
vivek_r11-Apr-07 20:16 
AnswerRe: Screenscraping Real Time Stock Quotes ?? Pin
Paddy Boyd11-Apr-07 23:07
Paddy Boyd11-Apr-07 23:07 
QuestionHelp Me soon Pin
Mkanchha11-Apr-07 19:53
Mkanchha11-Apr-07 19:53 
AnswerRe: Help Me soon Pin
Sophia Rekhi11-Apr-07 22:47
Sophia Rekhi11-Apr-07 22:47 
QuestionImport from excell to SQL 2005 Pin
samerh11-Apr-07 19:53
samerh11-Apr-07 19:53 
AnswerRe: Import from excell to SQL 2005 Pin
Mayank Parmar12-Apr-07 0:26
professionalMayank Parmar12-Apr-07 0:26 
QuestionI will created dynamic check boxes in panel but it losing the checked values when i reloads Pin
haneef111-Apr-07 19:49
haneef111-Apr-07 19:49 
Questionfull text search Pin
Utkarsh sharma11-Apr-07 18:17
Utkarsh sharma11-Apr-07 18:17 
AnswerRe: full text search Pin
thomasa11-Apr-07 23:01
thomasa11-Apr-07 23:01 
QuestionHow to import Excel file to mySQL ? Pin
cheeken2u11-Apr-07 16:04
cheeken2u11-Apr-07 16:04 
AnswerRe: How to import Excel file to mySQL ? Pin
Naveed Kamboh11-Apr-07 22:35
Naveed Kamboh11-Apr-07 22:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.