I have an asp menu control with menu items navigateUrl set to come back to
the same aspx page but with different values in a url token. this works, but
it is causing all my asp controls to loose their values.
Why is this happening? I thought I was "posting back" and my web controls
with viewState=true should retain their values?
Is this not the way to go about an aspx page coming back to itself?
--
Jay 9 1374
From the .Net SDK:
"When the user clicks a menu item, the Menu control can either navigate to a
linked Web page or simply post back to the server. If the NavigateUrl
property of a menu item is set, the Menu control navigates to the linked
page; otherwise, it posts the page back to the server for processing."
A menu item that navigates "to a linked Web page" is simply directing the
browser to make a Request for that page's URL. This is a GET Request,
similar to typing in the URL in the browser's address box. And of course,
that means that PostBack does not occur. I would recommend using the
PostBack option for your menu control instead.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.
"Jay" <gu*****@ommunity.nospam> wrote in message
news:EE**********************************@microsof t.com... I have an asp menu control with menu items navigateUrl set to come back to the same aspx page but with different values in a url token. this works, but it is causing all my asp controls to loose their values. Why is this happening? I thought I was "posting back" and my web controls with viewState=true should retain their values? Is this not the way to go about an aspx page coming back to itself? -- Jay
Thanks Kevin.
That was the answer.
Jay
"Kevin Spencer" wrote: From the .Net SDK:
"When the user clicks a menu item, the Menu control can either navigate to a linked Web page or simply post back to the server. If the NavigateUrl property of a menu item is set, the Menu control navigates to the linked page; otherwise, it posts the page back to the server for processing."
A menu item that navigates "to a linked Web page" is simply directing the browser to make a Request for that page's URL. This is a GET Request, similar to typing in the URL in the browser's address box. And of course, that means that PostBack does not occur. I would recommend using the PostBack option for your menu control instead.
-- HTH,
Kevin Spencer Microsoft MVP ..Net Developer You can lead a fish to a bicycle, but it takes a very long time, and the bicycle has to *want* to change.
"Jay" <gu*****@ommunity.nospam> wrote in message news:EE**********************************@microsof t.com...I have an asp menu control with menu items navigateUrl set to come back to the same aspx page but with different values in a url token. this works, but it is causing all my asp controls to loose their values. Why is this happening? I thought I was "posting back" and my web controls with viewState=true should retain their values? Is this not the way to go about an aspx page coming back to itself? -- Jay
> I would recommend using the PostBack option for your menu control instead.
Except that would require a dependance on Javascript, correct?
If so, you may want to reconsider if you are concerned with accessibility at
all.
-Darrel
The use of JavaScript in an HTML document in and of itself does not
necessarily have any impact on Accessibility. What exactly do you think is
going to be affected by this?
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.
"darrel" <no*****@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... I would recommend using the PostBack option for your menu control instead.
Except that would require a dependance on Javascript, correct?
If so, you may want to reconsider if you are concerned with accessibility at all.
-Darrel
> The use of JavaScript in an HTML document in and of itself does not necessarily have any impact on Accessibility. What exactly do you think is going to be affected by this?
Anyone without javascript...those using screen readers, certain PDAs, text
browsers, indexing bots, people that just get annoyed with it...etc.
..net tends to assume that every app developed is for an internal IE web
application for sighted people with full motor control skills ;o)
Which, to be fair, is fine, as a lot of apps are done that way. But if you
are designing public facing sites, a lot of the built-in controls are less
than ideal much of the time.
-Darrel
darrel wrote: .net tends to assume that every app developed is for an internal IE web application for sighted people with full motor control skills ;o)
I strongly disagree with this statement. ASP.NET adaptive rendering is a
powerful method for dealing with these issues.
--
Jim Cheshire
JIMCO Software http://www.jimcosoftware.com
Merry Christmas from JIMCO Software!
You didn't answer my question. You stated that using JavaScript in a menu
would affect accessibility. I asked you to be specific about how
Accessibility would be affected. If you want to be believed, you have to
provide some evidence that supports what you say. "Accessibility" is a term
with a meaning. The W3C has written a lot about it. Have you read any of it?
Here's a good place to start: http://www.w3.org/WAI/ http://www.w3.org/WAI/guid-tech.html http://www.w3.org/TR/1998/WD-WAI-PAGEAUTH-0203
You'll note that the W3C doesn't seem to think that JavaScript is bad for
accessibility. Instead, they have published guidelines about how to use it
in ways that do not harm accessibility.
After reading through that, come on back and tell me again how JavaScript
will affect accessibility in a menu, and specifically, in the ASP.Net Menu
Control.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.
"darrel" <no*****@nowhere.com> wrote in message
news:ua*************@TK2MSFTNGP15.phx.gbl... The use of JavaScript in an HTML document in and of itself does not necessarily have any impact on Accessibility. What exactly do you think is going to be affected by this?
Anyone without javascript...those using screen readers, certain PDAs, text browsers, indexing bots, people that just get annoyed with it...etc.
.net tends to assume that every app developed is for an internal IE web application for sighted people with full motor control skills ;o)
Which, to be fair, is fine, as a lot of apps are done that way. But if you are designing public facing sites, a lot of the built-in controls are less than ideal much of the time.
-Darrel
> You didn't answer my question. You stated that using JavaScript in a menu would affect accessibility. I asked you to be specific about how Accessibility would be affected. If you want to be believed, you have to provide some evidence that supports what you say. "Accessibility" is a term with a meaning. The W3C has written a lot about it. Have you read any of it?
Yes. Quite a bit, in fact.
I'm not sure why it's so hard to understand that javascript-based navigation
is inaccessible to anyone without javascript.
JIMCO mentioned Adaptive Rendering. I haven't played with that, but will
take a look at it (not sure how it handles postbacks, though without
javascript...)
You'll note that the W3C doesn't seem to think that JavaScript is bad for accessibility. Instead, they have published guidelines about how to use it in ways that do not harm accessibility.
And relying solely on javascript for navigation certainly harms
accessibility.
Also, there's a large difference between the technical recommendations and
actual implementation of accessibility (and usability, for that matter)
issue.
Ie, being bobby-validated doesn't necessarily mean your site is actually
accessible to a person.
After reading through that, come on back and tell me again how JavaScript will affect accessibility in a menu, and specifically, in the ASP.Net Menu Control.
Does the ASP.net menu control generate javascript-based postback triggers
for navigation? If so, does it do it unobtrusively or will the menu not work
if one doesn't have javascript?
We haven't upgraded to .net 2.0 so haven't taken a look at this control in
detail yet. MS may very well have made accessibility improvements to their
controls. I'd love to see one of these controls in actual use on a site. Do
you know of any examples?
-Darrel
> We haven't upgraded to .net 2.0 so haven't taken a look at this control in detail yet. MS may very well have made accessibility improvements to their controls. I'd love to see one of these controls in actual use on a site. Do you know of any examples?
I jsut watched this: http://channel9.msdn.com/Showpost.aspx?postid=130659
And there are some definite improvements to .net in 2.0 in terms of
accessibility. Alas, it just glossed over the menu control, so I'm still a
bit uncertain as to what new accessibility features it added.
I did a bunch of research this past season looking for an accessible, usable
drop-down menu script and of the dozen or so I looked at, the only one that
really passed the test was this one: http://www.udm4.com
Unfortunately, fly-out navigation, by it's very nature, is less accessible
than menus that don't fly out, but this was a pretty good script if one
really needed the fly-out navigation.
-Darrel This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Sisnaz |
last post by:
I'm working with 2005 Beta 2 and I'm sure this is a trivial question but for
the life of me I can't figure out.
I placed a menu navigation componet on my master page and defined the
navigation...
|
by: Rickie |
last post by:
Dear fellow software engineers,
Is the web menu in asp 2.0 essentielle a useless control ?
How many people( including msdn itself) are using server menu
controls?
Its a menu which always...
|
by: clintonG |
last post by:
I haven't learned this control yet but I do need to know if it can be
configured to drop down instead of fly-out?
// Like this...
-------------------
Static Root Label
-------------------...
|
by: Leon |
last post by:
Hi Everybody.
I have my website developed in VS 2003. Now I want to upgrade my website to
VS 2005 and develop new web pages in a new environment. What steps should I
take to upgrade? I cannot find...
|
by: Rob R. Ainscough |
last post by:
I can't seem to locate the appropriate area in VS 2005 where I can
accomplish this -- is this a C# only option?
Thanks, Rob.
|
by: larrybud2002 |
last post by:
I've read about this error in this group and others from early 2006 but
without any resolution, so I thought I'd bump it up to see if there's a
solution.
Trying to build a website on
...
|
by: Annie |
last post by:
Hi guys,
I am having a weired situation that don't know how to handle it ...
I have master pages, the master page contains a dynaic menu which is set up
in the database
and has page url, name,...
|
by: cj |
last post by:
In 2003 I had
Public Class Form1
Inherits System.Windows.Forms.Form
In 2005 I've seen it with and without the Inherits
System.Windows.Forms.Form. Is it supposed to be there? I'm wondering...
|
by: AG |
last post by:
I realize that the obvious suggestion would be malware, but my definitions
are up to date and I have already scanned for it.
I have also tried disabling all IE add-ons.
I just rebuilt and...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
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...
|
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...
|
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,...
| |