473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

menu controls on 2.0 ..

As I surf the net I see so many cool drop down menus.. I'm wondering
are most of those non .net or third party? Perhaps I just don't know
what I'm doing in vs.net, but the delivered menus do seem kinda lame.

I've read there is no way to remove that little arrow when there are
sub menu items? True?

Also, how do build a horizontal menu where individual items have a
border around them and transparent or blank spaces between them? do I
have to insert my own image to do this? I hope not.

Sep 25 '06 #1
13 1392
There are a variety of menu controls out there that you could use to spiff
up a web site.
Here are some free ones:
http://SteveOrr.net/freecontrols/menus.aspx

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
<ja***@cyberpine.comwrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
As I surf the net I see so many cool drop down menus.. I'm wondering
are most of those non .net or third party? Perhaps I just don't know
what I'm doing in vs.net, but the delivered menus do seem kinda lame.

I've read there is no way to remove that little arrow when there are
sub menu items? True?

Also, how do build a horizontal menu where individual items have a
border around them and transparent or blank spaces between them? do I
have to insert my own image to do this? I hope not.

Sep 25 '06 #2
Steve, nice site.

Off topic, regarding the NumericTextbox example on the site, I'm kinda
noob, how do I implement that?

I tried adding in a new class and importing the new namespace into the
codebehind and then doing this on the aspx page.

<asp:textbox runat="server" OnKeyPress="ValidateNumeric()"/>

but 2.0 does not like OnKeyPress

I also tried,
<asp:NumericTextbox runat="server" OnKeyPress="ValidateNumeric()"/>

but that did not work either.

Perhaps I needed to add it as a new web component or something.. it was
not clear to me, maybe I missed something in the docs.

Thanks.
Steve C. Orr [MVP, MCSD] wrote:
There are a variety of menu controls out there that you could use to spiff
up a web site.
Here are some free ones:
http://SteveOrr.net/freecontrols/menus.aspx

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
<ja***@cyberpine.comwrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
As I surf the net I see so many cool drop down menus.. I'm wondering
are most of those non .net or third party? Perhaps I just don't know
what I'm doing in vs.net, but the delivered menus do seem kinda lame.

I've read there is no way to remove that little arrow when there are
sub menu items? True?

Also, how do build a horizontal menu where individual items have a
border around them and transparent or blank spaces between them? do I
have to insert my own image to do this? I hope not.
Sep 26 '06 #3
<ja***@cyberpine.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
Off topic, regarding the NumericTextbox example on the site, I'm kinda
noob, how do I implement that?

I tried adding in a new class and importing the new namespace into the
codebehind and then doing this on the aspx page.

<asp:textbox runat="server" OnKeyPress="ValidateNumeric()"/>

but 2.0 does not like OnKeyPress
Hmm - maybe I'm missing something too, but I can't see how this can ever
work, because this will be looking for the OnKeyPress event server-side.
However, the following should work (I haven't tested it...):

<asp:TextBox ID="txtNumericTextBox" runat="server" />

Then, in your Page_Load event:

txtNumericTextBox.Attribtes.Add("onKeyPress", "ValidateNumeric()";);
Sep 26 '06 #4
I'm trying this. my Page_load is in the codebehind file of course which
is in the page directive. It's a masterpage not sure that matters.

know why I might be getting a "does not exsist in the current context"
error for txtNumericTextBox? I checked and thats the same textbox id on
the page.

I also tried calling the javascript function from ontextchanged=, but
that did not work either.
Mark Rae wrote:
<ja***@cyberpine.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
Off topic, regarding the NumericTextbox example on the site, I'm kinda
noob, how do I implement that?

I tried adding in a new class and importing the new namespace into the
codebehind and then doing this on the aspx page.

<asp:textbox runat="server" OnKeyPress="ValidateNumeric()"/>

but 2.0 does not like OnKeyPress

Hmm - maybe I'm missing something too, but I can't see how this can ever
work, because this will be looking for the OnKeyPress event server-side.
However, the following should work (I haven't tested it...):

<asp:TextBox ID="txtNumericTextBox" runat="server" />

Then, in your Page_Load event:

txtNumericTextBox.Attribtes.Add("onKeyPress", "ValidateNumeric()";);
Sep 26 '06 #5
<ja***@cyberpine.comwrote in message
news:11********************@d34g2000cwd.googlegrou ps.com...
I'm trying this. my Page_load is in the codebehind file of course which
is in the page directive. It's a masterpage not sure that matters.
Ah...
know why I might be getting a "does not exsist in the current context"
error for txtNumericTextBox? I checked and thats the same textbox id on
the page.
Is the <asp:TextBox also in the MasterPage?

Where is the ValidateNumeric() JavaScript function...?
I also tried calling the javascript function from ontextchanged=, but
that did not work either.
No - it won't for the same reason that onKeyPress isn't working...
Sep 26 '06 #6

the javascript function is on the master page, but I'm testing the
masterpage.. if that worked, I would have tried one of the content
pages.

Mark Rae wrote:
<ja***@cyberpine.comwrote in message
news:11********************@d34g2000cwd.googlegrou ps.com...
I'm trying this. my Page_load is in the codebehind file of course which
is in the page directive. It's a masterpage not sure that matters.

Ah...
know why I might be getting a "does not exsist in the current context"
error for txtNumericTextBox? I checked and thats the same textbox id on
the page.

Is the <asp:TextBox also in the MasterPage?

Where is the ValidateNumeric() JavaScript function...?
I also tried calling the javascript function from ontextchanged=, but
that did not work either.

No - it won't for the same reason that onKeyPress isn't working...
Sep 26 '06 #7
<ja***@cyberpine.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
the javascript function is on the master page, but I'm testing the
masterpage.. if that worked, I would have tried one of the content
pages.
How can you "test" a MasterPage without a ContentPage...?
Sep 26 '06 #8
True. It has to be in the contentpages' page_load.

It compiled cleanly, but there does appear to be some more work when
working with javasript and master pages - many posts on this. In some
cases javascript must be generated dynamically and clientid must be
used.

In this simple example, I have the javascript block in masterpage and
the
TextBox1.Attributes.Add("onKeyPress", "ValidateNumeric()");
line in the page_load of the contentpage.

The minute I strike a key in the text box, I get a javascript error
"Object Expected"

I check the page source and I do see the javascript function.

<script language="javascript" type="text/javascript ">
function ValidateNumeric()
{
var keyCode = window.event.keyCode;
if (keyCode 57 || keyCode < 48)
window.event.returnValue = false;
}
</script>
Any ideas?

Mark Rae wrote:
<ja***@cyberpine.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
the javascript function is on the master page, but I'm testing the
masterpage.. if that worked, I would have tried one of the content
pages.

How can you "test" a MasterPage without a ContentPage...?
Sep 27 '06 #9
<ja***@cyberpine.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
In this simple example, I have the javascript block in masterpage and
the
TextBox1.Attributes.Add("onKeyPress", "ValidateNumeric()");
line in the page_load of the contentpage.

The minute I strike a key in the text box, I get a javascript error
"Object Expected"

I check the page source and I do see the javascript function.

<script language="javascript" type="text/javascript ">
function ValidateNumeric()
{
var keyCode = window.event.keyCode;
if (keyCode 57 || keyCode < 48)
window.event.returnValue = false;
}
</script>

Any ideas?
You need to set a breakpoint (or insert the word debugger;) at the top of
your ValidateNumeric function and step through it...
Sep 27 '06 #10
I had a similar problem on this subject. I replaced my javascript
block with an include js file and it worked great. I'm trying to find
an answer as to why, but it did the trick with me!

Sep 27 '06 #11
<ty**********@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
>I had a similar problem on this subject. I replaced my javascript
block with an include js file and it worked great. I'm trying to find
an answer as to why, but it did the trick with me!
Hmm - that's interesting. I have several standard JavaScript routines
(validation, formatting etc) which I usually put in my MasterPages, but they
are in include files...

I'd be really interested to know why this makes a difference...
Sep 27 '06 #12
Its working now. If figured out what it was

<script language="javascript" type="text/javascript ">

The space before the last doublequote believe it or not.
Mark Rae wrote:
<ty**********@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
I had a similar problem on this subject. I replaced my javascript
block with an include js file and it worked great. I'm trying to find
an answer as to why, but it did the trick with me!

Hmm - that's interesting. I have several standard JavaScript routines
(validation, formatting etc) which I usually put in my MasterPages, but they
are in include files...

I'd be really interested to know why this makes a difference...
Sep 28 '06 #13
<ja***@cyberpine.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Its working now. If figured out what it was

<script language="javascript" type="text/javascript ">

The space before the last doublequote believe it or not.
Wow! That's weird...!
Sep 28 '06 #14

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

Similar topics

4
by: Dacian | last post by:
Hi, I´m trying to place a javascript navigation menu inside a cell of a table in my page, the problem is that the constructor of the menu object has parameters for menu positioning and size and...
7
by: cefrancke | last post by:
I cant seem to find a straight answer on the following. I want to programmatically hide all menus except a basic custom report menu (during report preview) and right click pop-up A-Z sorting on...
4
by: jesse.hartwick | last post by:
Hey group! I have a toolbar with a "DEVELOPER" menu. I have it so that it when the menu title is clicked, a pop-up form will appear if the user has not yet verified that he or she has developer...
2
by: Jacques | last post by:
Hello, I am creating a menu for an Office Add-in. The menu displays OK. But, each time I run the Office App (Word) it adds another menu item. The Word menu bar looks like: File | Edit |...
4
by: paula | last post by:
I've got a problem with asp.net i am trying to make a menu control. and have searched the web for serveral controls but they don't work correctly. I am pretty new to asp.net building. What am i...
1
by: stinehelferw | last post by:
I need a right-click menu on a form list control with combobox controls. I used View->Toolbars->Customize to create a toolbar. I added ComboBox through commands tab. I set properties to Popup...
17
by: GS | last post by:
the main menu in the application seemed to disappeared all together until I click on an control and select mainmenu1 in designer. then the mainmenu1 displays where it should be but running it or...
3
by: John | last post by:
Hi there, I was reading an article (http://avenuea-razorfish.com/articles/TheAll-MenuNavigation_Turbek.pdf) on 'all-menu navigation' and I'd like to try and implement this in my site. Can...
0
by: Academia | last post by:
Here's the scenario: A form contains two user controls. Each user control has its own context menu and the form has a main menu. I use the older menu controls and each user control has a...
2
by: fjohnson | last post by:
Hello, I have a CSS Horizontal dropdown menu and the drop down menu is pushed to the right instead of directly underneath the heading. I am completely new to CSS and I do not yet know exactly what...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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,...

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.