|
I assume then that each submenuitem has a database ID number too, so you could just append that to the URL of each item when binding it....
eg, menuitems could link to:
page1.aspx?id=123
page2.aspx?id=34
etc
You can then read this value on the next page through a simple Request("id") call. If you really want to pass the actual menuitem text you could pass that instead, but you ought to Server.URLEncode it first...
How you set about this depends on how you are doing things - if using the Menu control in VS2005 your best bet is the MenuItemDataBound Event[^]
Fred
|
|
|
|
|
i have tried this also.i was appending the submenuitem.text with the url.
on run time,some time when i click on sub menuitem ,an alert box appear
indicating "this website cannot be opened.operation aborted."i am using master/content page.
last time for this purpose,i have used context object to transfer data
context("papername")=menu1.selectedvalue on menuitem.click and used server.transfer
but this time i have to click on the submenuitem for this there is no event.
can you suggest me how can i store the value of selected submenuitem in context object.
|
|
|
|
|
How can i compile and execute my classic asp pages (ASP 3) on IIS 7? The virtual directory is created but it is not run on my browser.
|
|
|
|
|
On IIS 6 (Windows Server 2003), ASP needs to be enabled in the Web Service Extensions. This should be the same on IIS 7 also right?
|
|
|
|
|
hai every one,
i need to disable IE back button using javascript,
please give to me solution
Thanks & regards
Dhatchinamoorthy.R
9894824838
|
|
|
|
|
The simple answer. You can not.
<big>The recommended answer. You should not.</big>
Workaround (anyway): <script>history.forward()</script>
|
|
|
|
|
hi,
i need to implement ffmpeg in c#.net 2.0 application . can somebody pls. guide me exactly what files do i need to include in my project and do i need MinGW and MSys for this.
What is MinGW and MSys? Do i need them inorder to implement ffmpeg in c#.net 2.0 application?
When i simply run ffmpeg through command line, then ffmpeg works fine. I'm running it on windows.
Thanks,
Harry.
|
|
|
|
|
I have a dropdown list or say htm tag.
I have written onchange event.
Its works fine in IE by accessing with mouse or keyboard.
The issue is in Firefox. In that it works fine if you select an item through mouse but if you select an item from keyboard or you change an item from keyboard the event does no fired.
Here is a sample code.
one
two
three
Thank You
|
|
|
|
|
Interstingly enough if you hit ENTER after then it DOES fire the event - you could get away with adding an onkeup attribute too, calling the same function
select onchange="javascript:alert('changed');" onkeyup="javascript:alert('changed');"
though whether that's the best solution or not I wouldn't like to guess...
|
|
|
|
|
divyesh1432 wrote: The issue is in Firefox. In that it works fine if you select an item through mouse but if you select an item from keyboard or you change an item from keyboard the event does no fired.
The event doesn't fire while you are changing the value, but when you are done and move to the next field. This is the same way that the onchange event works on a text field.
divyesh1432 wrote:
The javascript: protocol is only used when you put script in an url. It has no meaning anywhere else.
<select onchange="alert('changed');">
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa wrote: The javascript: protocol is only
But including it is just superflous. It does not harm or create negative effects either.
|
|
|
|
|
Vasudevan Deepak Kumar wrote: But including it is just superflous. It does not harm or create negative effects either.
It's not superflous, as it's not ignored. It's harmless just because it happens to become a label instead.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thank you Guffa for enlightening on the issue. Since, I think, the web browser defaults to JavaScript engine, it automatically understands the same. For Netscape and other single-script engines, I don't this should be a problem at all. Isn't it?
|
|
|
|
|
Vasudevan Deepak Kumar wrote: Since, I think, the web browser defaults to JavaScript engine, it automatically understands the same. For Netscape and other single-script engines, I don't this should be a problem at all. Isn't it?
The javascript: protocol only has a meaning in an url. If you put it anywhere else, it's not a protocol any more. Instead, it happens to become a label instead, so it's just a name.
You could put most anything in a label:
onclick="vbscript:alert('Still Javascript');"<br />
<br />
onclick="ignore:alert('Not ignored');"<br />
<br />
onclick="onmouseover:alert('Still onclick');"
It's still just a label, and the name doesn't mean anything.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
I am having problem on the upload page.
Everytime I will uploaded a file, then clicked on my upload button it will process twice, why is it?
How can I control the process to have only 1 process everytime I clicked on the upload button?
Thanks
hifiger2004
|
|
|
|
|
You might be in debug mode or check same thing on different browsers.
Thank You
|
|
|
|
|
Did you check for IsPostBack check?
|
|
|
|
|
I have a simple HTML file and would like to be able to insert a link to a folder. However, the path contains the users Windows logon account name, for example:
C:\Program files\some folder\[account name]\some folder
is it possible to dynamically determine the account name, so that the link is relative for each user?
Regards.
James
|
|
|
|
|
If your web application is written in ASP.NET and is integrated with windows-authentication and anonymous access disabled, you get the current user name by using User.Identity.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Thanks for the update.
I am afraid that it is just a very simple HTML file that I need to update with the specified link. It is not written in ASP.NET.
Thanks anyway.
James.
|
|
|
|
|
Then as a simple HTML file there is nothing you can do to dynamically change any information. You will need some kind of processing to be performed when the file is served, which implies something like ASP.
|
|
|
|
|
It is not possible to do in HTML... but maybe.. Try to use ActiveX object in Javascript.... but it might work only Internet explorer. and it is not good practice.. so, i never done this before..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
|
Thank you very much to all who responded.
|
|
|
|
|
Hello. I'm not sure about how to do that. It seems simple. I have two elements that have two excluding values, A and B. What I need is that if I select A option in one, B is set in the other, and if I set B, the other is set with A.
How can I do that?
Regards,
Diego F.
|
|
|
|