| | |
label property problem in asp.net
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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
Views: 411 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 3.5 ajax appliances application asp asp.net beginner box browser businesslogiclayer button c# cac chat checkbox child class compatible complex content contenttype control countryselector courier database datagrid datagridview datalist deployment development dgv dialog dropdown dropdownmenu dynamic dynamically edit embeddingactivexcontrol feedback fileuploader fill findcontrol flash flv folder form gridview gudi identity iis image javascript languages list maps menu mobile mssql nameisnotdeclared novell opera order problem profile ratings redirect refer registration relationaldatabases response.redirect rows search security select serializesmo.table sessionvariables silverlight smoobjects software sql ssl tracking treeview typeof validatedate validation vb vb.net vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment wizard xsl





