473,776 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I need vertical label ( ASP.NET )

Hi,

i need vertical label.
C# or VB

thanks
Nov 19 '05 #1
8 5016
Hekim MUKUS wrote:
Hi,

i need vertical label.
C# or VB

thanks


You can do this only with graphics: html doesn't support the notion
of vertical tekst (as far as I know). Or maybe, if

t
h
i
s

is enough, add a <br> after each character.

--
Hans Kesting
Nov 19 '05 #2
See http://www.codeproject.com/aspnet/VerticalLabel.asp
for example code.

You 'll need to register (free) with the Code Project
to be able to download source code.

It's worthwhile, though.
Tons of interesting code up for grabs there.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Hekim MUKUS" <mh*****@hotmai l.com> wrote in message
news:OQ******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi,

i need vertical label.
C# or VB

thanks

Nov 19 '05 #3

"Hekim MUKUS" <mh*****@hotmai l.com> wrote in message
news:OQ******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi,

i need vertical label.
C# or VB

thanks

With CSS you can also use .... writing-mode:tb-rl
Here is a little example

<%@ Page Language="VB" Strict=True %>

<%@ import Namespace="Syst em.Data" %>

<script language="VB" runat="server">
Sub Page_Load(byVal obj As Object, byVal e As EventArgs)
if not IsPostback
BindData()
end if
End Sub

sub BindData()
Dim dt As New DataTable()
Dim dr As DataRow
dt.Columns.Add( New DataColumn("Str ingValue", GetType(String) ))
Dim i As Integer
For i = 0 To 9
dr = dt.NewRow()
dr(0) = "Item " & i.ToString()
dt.Rows.Add(dr)
Next i
Dim dv As New DataView(dt)
os0.datasource = dv
os0.databind

End sub
</script>
<style>
..test { writing-mode:tb-rl}
</style>

<html>
<body>
<div class="test">
Hello there
<form runat="server">
<asp:DataList id="os0" repeatcolumns=" 2" repeatDirecttio n="horizontal "
runat="server">
<ItemTemplate >
<asp:label class="test" text='<%#
(DataBinder.Eva l(Container.Dat aItem, "StringValu e")) %>' runat="server" />
</ItemTemplate>
</asp:DataList>

</form>
<div>
</body>
</html>

Nov 19 '05 #4
Microsoft provides DirectX Transformations that allow you to rotate
text. This may produce the effect you need however it will only work
with IE 5.5 and up, as all other browsers feel the need to shun any
technology that could be useful to web developers of all sorts.

Nov 19 '05 #5
Is this what you need?

style="writing-mode:tb-rl;"

it makes horizontal text vertical. i think that its really for handling
languages where text flows vertically, but it works great for those narrow
text headers!

jb

"Hekim MUKUS" wrote:
Hi,

i need vertical label.
C# or VB

thanks

Nov 19 '05 #6
> Microsoft provides DirectX Transformations that allow you to rotate
text. This may produce the effect you need however it will only work
with IE 5.5 and up, as all other browsers feel the need to shun any
technology that could be useful to web developers of all sorts.


Or, rather, most all browser feel the need to adhere to web standards, which
is arguably much more useful than rogue browsers like IE whipping out
features willy-nilly (and, as always IE/PC centric...)

I do believe CSS3 has some provisions for rotated text. But, that's a ways
off...

-Darrel
Nov 19 '05 #7
You can rotate a label to any degree you wish by using Transitions.
It only works in IE.

Put this label on your page:

<asp:Label id="Label1" STYLE="position :absolute;
filter:progid:D XImageTransform .Microsoft.Matr ix(sizingMethod ='auto
expand')"
runat="server" onClick="fnSetR otation(this,90 )">Label</asp:Label>

And put this Javascript in your page:
<SCRIPT><!-- fnSetRotation function -->
//oObj input requires that a matrix filter be applied.
//deg input defines the requested angle of rotation.
var deg2radians = Math.PI * 2 / 360;
function fnSetRotation(o Obj, deg)
{ rad = deg * deg2radians ;
costheta = Math.cos(rad);
sintheta = Math.sin(rad);

oObj.filters.it em(0).M11 = costheta;
oObj.filters.it em(0).M12 = -sintheta;
oObj.filters.it em(0).M21 = sintheta;
oObj.filters.it em(0).M22 = costheta;

}
</SCRIPT>

Run it and click on the label to watch it change to vertical.
Here's more info:
http://msdn.microsoft.com/library/de...ies/filter.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"Hekim MUKUS" <mh*****@hotmai l.com> wrote in message
news:OQ******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi,

i need vertical label.
C# or VB

thanks

Nov 19 '05 #8

Thanks John Bankhead,

I'm a windows programmer. I learn ASP.NET (begginer).

Hekim MUKUS


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3896
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at http://home.pacific.net.sg/~jacksony ? (the drop down bar could not work at www.apchosting.net but can drop at home.pacific.net.sg. I suspect it is a server problem but was told it is not possible, therefore assuming it is a client script problem? the script works last time...
10
2940
by: John Baker | last post by:
Hi: I have a user who has labels that are set up 3 across and 11 vertical (which is unusual at best), and he wants me to print names and addresses on them. I have already set up for labels 10 vertical and 3 across (Avery 5160)which are another standard the user has, but can't find any in the setup for labels that show 11 vertical. I am therefore using the Avery 5160 as a start, and modifying the top and bottom margins (the margins on the...
5
2393
by: MFC | last post by:
Ok, after three C# books, (C# How to Program, Programming in the Key of C#, and C# Weekend Crash Course) and three weeks, I believe I have tried everything to make a certain form function correctly. I am trying to learn C# after playing around for a bit with procedural programming with PHP, not OOP, and believe I have learned quite a bit in three weeks, just not enough to accomplish this one task. If anyone has a bit of free time and...
2
19408
by: Kay | last post by:
Hello, I have a asp lable control, which I use to display text in, I would like to have the text display aligned in the center and vertical alignment left however when I add the following style to the lable it does not work <asp:label id="lblBanner" style="text-aligh:left;vertical-align:middle;" runat="server" Width="100%" ></asp:label> could someone please tell me how to display the text valign middle and text
1
2213
by: gibsonsgman | last post by:
I am having a problem with a vertical label. I change the label property 'vertical' to yes and then my label caption disappears and i cannot figure out why. any suggestions?
2
20538
by: Wilfried Mestdagh | last post by:
Hi, I want to add a Label on a panel programatically. No problem. But I can't seems to manage that the label is centered horizontal and vertical in the panel. I experimented with TextAlign and Dock but no real success. I probably forget something. Some hints really welcome :) -- rgds, Wilfried http://www.mestdagh.biz
1
2711
by: Jeff | last post by:
ASP.NET 2.0 This picture is based on the markup you see in this message.: http://home.online.no/~au-holme/pub/768/vetical.JPG The problem is that I want the text vertically centered and also I want the space between those 2 rows of text to be narrower.... I don't know how to go about fix that... Hope maybe you have some suggestions for me Here is the code:
4
6225
by: AshishMishra16 | last post by:
HI friends, I am using the Flex to upload files to server. I m getting all the details about the file, but I m not able to upload it to Server. Here is the code i m using for both flex & for Struts: import java.io.File; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Enumeration; import java.util.Iterator;
2
1485
by: christopherlmarshall | last post by:
I am trying to figure out how to stack two widgets in a frame vertically so that they both expand horizontally and during vertical expansion, the top one sticks to the top of the frame and the bottom one consumes the remaining vertical space. I thought this would do it but it doesn't. What am I missing? from Tkinter import * class AFrame(Frame): def __init__(self,master,**config):
0
9464
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10289
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10120
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8952
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7471
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6722
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5367
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5493
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.