Hi people,
I'm trying to build a menu i asp.net 2.0 (RC) using the Menu control and an
XmlSiteMapProvi der.
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 2 1382
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:
<StaticItemTemp late>
<%# Eval("Text") %>
</StaticItemTempl ate>
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*@jdjfjernde tte.dk> wrote: Hi people,
I'm trying to build a menu i asp.net 2.0 (RC) using the Menu control and an XmlSiteMapProv ider. 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
Hi Scott, (and everyone else)
Thanks for your reply. Got it solved.
In my .aspx
<asp:Menu ID="Menu1" runat="server" DataSourceID="S iteMapDataSourc e1">
<StaticItemTemp late>
<%# formatMenuItem( Eval("Text"))%>
</StaticItemTempl ate>
</asp:Menu>
In my .aspx.vb
Public Function formatMenuItem( ByVal itemText As String) As String
Return UCase("<span style=""font:14 px Verdana"">" & Left(itemText, 1) & "</span><span style=""font:9p x Verdana"">" & Right(itemText, (Len(itemText) - 1)) & "</span>")
End Function
Again, thanks.
J.Jespersen
Denmark
"Scott Allen" <sc***@nospam.o detocode.com> skrev i en meddelelse news:1m******** *************** *********@4ax.c om... 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: <StaticItemTemp late> <%# Eval("Text") %> </StaticItemTempl ate> 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*@jdjfjernde tte.dk> wrote: Hi people,
I'm trying to build a menu i asp.net 2.0 (RC) using the Menu control and an XmlSiteMapPro vider. 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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: RCS |
last post by:
All,
OK, so I'm working on a template for our new ASP.NET applications. Part of
this, includes using the new menu and breadcrumbs control in ASP.NET 2.0
(I'm using beta 2).
I put the hierarchy of the applications and navigation in a database, and am
able to pull that into the app by inheriting StaticSiteMapProvider. So
that's set and works great.
|
by: RCS |
last post by:
Does anyone know of a tabbed navigation control that supports
SiteMapProvider (the same way the menu, breadcrumbs and treeview do in
2.0)??
I'm looking for www.amazon.com style tabbed navigation, but something that
will plug it seamlessly with my exisitng navigation provider. Thanks!
|
by: dhurwitz |
last post by:
Hi,
I have written a custom SiteMapProvider to retrieve site map data from a SQL
Server database table. It works fine when used as the data source for a Menu
control, so I am confident that all the nodes are being correctly populated.
However, when used with a TreeView control, only the first node displays. Any
suggestions on why this might be the case?
Thanks.
|
by: Adrian Sharp |
last post by:
I've got a pretty basic sitemap setup, but am getting a runtime error: "The
SiteMapProvider 'MySiteMap' cannot be found."
This occurs only when I access my website under IIS 5.1. When I run my app
under the debugger (localhost:1946) I have no problem. I thought of trying
IIS6.0, but am running XP, so can't upgrade to 6.0. Any ideas?
my web.config relevant lines
<siteMap>
<providers>
|
by: shapper |
last post by:
Hello,
How to make a SiteMapDataSource to use a SiteMapProvider defined in
Web.Config?
I think I should use something like:
MySiteMapDataSource.Provider = ...
However I don't know what to place in "...".
I tried to use a string with the name of the provider but it didn't
| |
by: shapper |
last post by:
Hello,
I need to create a custom SiteMapProvider.
I searched in Google for examples but I am still completly lost.
The custom SiteMapProvider I need to create is exactly the same as the
Asp.Net SiteMapProvider:
The only difference is:
attribute Visible = "True".
|
by: Alex Brown |
last post by:
Is it a problem to attach Non-static site map providers under one that
inherits from StaticSiteMapProvider ?
We are implementing a custom site map provider for a website that is being
converted to ASP.NET 2.0. The conversion is going well because some of the
features, like Master Pages and Site Maps, of ASP.NET 2.0 allow us to migrate
away from a "top frame" style of navigation to a standard dynamic cascading
top menu with minimal...
|
by: Steve Harclerode |
last post by:
Hi,
I have implemented a working SiteMapProvider as shown on an msdn page:
http://msdn.microsoft.com/en-us/library/ms178434(VS.80).aspx
My question is: Can I make the TreeView that uses a SiteMapProvider show the
heirarchy from the current node down, instead of from the root?
My scenario is that I have a website with several thousand folders, each
folder containing less than 100 pages. What I would like is that if you are
|
by: =?Utf-8?B?QnJvb2s=?= |
last post by:
Hey everyone,
My scenario is as follows:
In my website the users session id is constantly passed from page to page on
the URL. I have one main menu that appears the same on each page, one of the
menu items has a set of child items that only appear on hover over.
Essentially, no matter which page the user is on, i want the user id to be
appended to each of the urls in the menu. A further complication is that my
child menu items are...
|
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,...
|
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...
| |
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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...
|
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();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |