Hi Scott, (and everyone else)
Thanks for your reply. Got it solved.
In my .aspx
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1">
<StaticItemTemplate>
<%# formatMenuItem(Eval("Text"))%>
</StaticItemTemplate>
</asp:Menu>
In my .aspx.vb
Public Function formatMenuItem(ByVal itemText As String) As String
Return UCase("<span style=""font:14px Verdana"">" & Left(itemText, 1) & "</span><span style=""font:9px Verdana"">" & Right(itemText, (Len(itemText) - 1)) & "</span>")
End Function
Again, thanks.
J.Jespersen
Denmark
"Scott Allen" <sc***@nospam.odetocode.com> skrev i en meddelelse news:1m********************************@4ax.com...
You'll want to use a menu template. Like template columns in a
DataGrid you can use data binding expressions to format the apperance
and content of the node. A simple template would look like:
<StaticItemTemplate>
<%# Eval("Text") %>
</StaticItemTemplate>
You could throw in some <span> and Substring calls to get what you
need.
HTH,
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Mon, 26 Sep 2005 19:07:04 +0200, "J. Jespersen"
<jd*@jdjfjerndette.dk> wrote:
Hi people,
I'm trying to build a menu i asp.net 2.0 (RC) using the Menu control and an
XmlSiteMapProvider.
I want all letters of my menuitems to be capitalized, but i want the first
letter in every menuitem to be in a larger font.
Any ideas, clues, pointers?
J. Jespersen
Denmark
ps. Example illustration what i want: http://www.netkoder.dk/menuitem.jpg