| | |
label property problem in asp.net
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
0
#2 Oct 12th, 2009
•
•
•
•
hello all,
am using asp.net vb . i have a label named label1 but i am passing data into it at runtime which depends on what the user clicks.
My problem now is that
1. How do i do autosize for the label because its not in the label properties
2. how do i align the text in the label
please help
I think, you don't need anything to autosize it, because it's automatically autosize. Make Width property null or blank.
for #2:
In my way, I use ClassCSS property.
I created CSS file (Style.css) like this:
ASP.NET Syntax (Toggle Plain Text)
Span.RFS { direction:rtl; background-color:White; }
than in ASPX designer form
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Browse.aspx.vb" Inherits="Browse" EnableSessionState="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Browse</title>
<link href="../Style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<form id="form1" runat="server" >
<asp:Label ID="Label1" runat="server" BackColor="#FFFFC0" CssClass="RFS"></asp:Label>
</form>
</body>
</html> NEVER NEVER NEVER GIVE UP
![]() |
Similar Threads
- ASP.NET MVC redirect problem (ASP.NET)
- Problem in asp.net server? (ASP.NET)
- ASP.NET - session objects Problem (ASP.NET)
- ASP.NET/SQL Developer/Programmer (Web Development Job Offers)
- ASP.Net perm full time programmer wanted (Web Development Job Offers)
- Problem with ASP.Net control or JavaScript ??? (ASP.NET)
- ASP.Net / C# Web Developer (Web Development Job Offers)
Other Threads in the ASP.NET Forum
- Previous Thread: Textbox DataBinding
- Next Thread: insert into two tables
| Thread Tools | Search this Thread |
.net 2.0 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox click commonfunctions compatible confirmationcodegeneration content contenttype courier css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dropdownmenu dynamically edit expose fill flash flv formatdecimal forms formview gridview homeedition iframe iis javascript jquery listbox login menu microsoft mono mouse mssql multistepregistration news numerical objects opera order panelmasterpagebuttoncontrols radio ratings registration reportemail rotatepage save schoolproject search security serializesmo.table silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking unauthorized validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webapplications webarchitecture webdevelopemnt webprogramming webservice xml xsl youareanotmemberofthedebuggerusers





