AJAX :: Enable Disable Particular MenuItem In Menu Control
Aug 8, 2013How can I disable particular <menu item> tag in asp.net menu control, through code at runtime, according to session value??
View 1 RepliesHow can I disable particular <menu item> tag in asp.net menu control, through code at runtime, according to session value??
View 1 RepliesI need a help in creating a vertical oriented Menu control with dynamic url's set in there Navigate Url property.Also i need to set the menu items as enable/disable in two different modes say edit/new.
I have one menu control, when the mouse hover on it sub menu items text does not appear.
View 3 Repliesi used the code present in that page (CODE USED). The user can click all the categories displayed, and i need to know the id of the one that he clicked.
[URL]
In the case of the screenshot i need to know which is the id of the category "Excel", the one that i clicked.
I have table called ROLE with fields (id,name,permission) example values (1001,madhu,hr)
I have another table called LOGIN with fields(id,DOB,password) example values(1001,24101989,madhukumar)
What i want is , if i login using the LOGIN table ,it check the id and permission in the ROLE table , if the permission is 'hr' it enable to access the menu , or if the permission is any other it just print the error message ("no permission")
Note: menu is placed in master page , but login is not in the master page ...
I have a tab container and three panels
<cc1:TabContainer
ID="TabContainer1"
runat="server"[code]....
In my first panel I have a asp:checklistbox, which is dynamically loaded with items ....
Eg: [Code]....
One checkbox item = "Address"
Second checkbox item = "Work Info"
When User selects and clicks on first Checkbox option Address...the second Tab is enabled
When the User Clicks on Sec Checkbox option Work Info then the third Tab is enabled .else the tabs are disabled
I was working to use JQuery and unable to achieve this
My Jquery Part of the code is like above...looks a little too complicated
I have a text box, a range validator, and a button. The validator is hooked up and prevents the button from doing a post back if the text is out of the range, however I'd also like to enable and disable the button. Is this possible to do within client-side code?
View 12 RepliesI am having a constructor on my user control From a main page I just reinitialize the user control.
I tried
[code]....
BtnAdd is the (aspx button runat server) control I want to disable.
While compiling it does not shows error.But while runtime It throws error saying btnAddis null.
I have file upload and Radio button list controls in the page
Requirement:
When the page load, the file upload control has to be enable = false when I click on the radio button list's Yes option then it has to be enable = true and when No option is clicked then enable = false
iam using masterpage and sitemap in my project, what i want to is that if user login is did, based on the user previlage in need to show the sitemap menu page if user i have the previlage to see the page then i should enable that page otherwise i need disable that page
View 1 RepliesI am creating a fairly straight forward form for collecting data about vendors. I have a requirement that says the email address is required for a certain payment method and not other payment methods. The way I currently have this implemented is using a dropdownlist for the payment method and a TextBox for the email. I have been using ValidatorCalloutExtenders on all the other input fields with great success, but this is the first case where I need to be able to turn the validator and extender behavior on and off based on a selection of the dropdownlist.
I have tried many things and have searched these forums and google until my hands and eyes got tired, but have yet to find success, hence this post. I am aware of the dispose and $create methods, and that is currently what I am trying to do, but after the create occurs, while the behavior has been created, it doesn't seem like it has been created completely or something. To implement this, I am using a function tied to the onChange Event Handler of the drop down list. The function essentially checks the dropdownlist selection value and if it is NOT "ACH", then it finds the behavior attached to the requiredfieldvalidator attached to the email textbox and calls the dispose method on that behavior, if the selection value IS "ACH" then the method calls
$create(AjaxControlToolkit.ValidatorCalloutBehavior, { "closeImageUrl": "/VendorMaintenanceForm/WebResource.axd?d=IJFIM0l1l2KBLbEjcc5eS12jNidTRT60rU5Tz_Vg2CIJnYpw0GWOKDcVthhDzk9qkoREy7KswErAqM-kEQdJ5c18thtoit9YPZB3oq-EKdE1&t=633129167627987742", "highlightCssClass":
"HighLight", "id": 'emVal', "warningIconImageUrl": "/VendorMaintenanceForm/WebResource.axd?d=IJFIM0l1l2KBLbEjcc5eS12jNidTRT60rU5Tz_Vg2CIJnYpw0GWOKDcVthhDzk9qpoLKUlLQVCOCBk1mUhtC-YfwF57Tw0d676WGnnWiYI41&t=633129167627987742", "width": "300px" }, null, null,
$get("ctl00_MainContent_RequiredFieldValidator5"));
The reason I say this, is because once the page loads, the default value is to have the validator disabled, then if I select the payment method that enables the validator, it seems to work fine, but then if I cycle through the payment method choices again, I end up with a null pointer exception to the TextBox element when the validator is trying to apply the highlightCssClass on form validation. So, to summarize, it seems like when the page loads, things get built correctly, but then when I start doing the dispose and $create, things are recreated correctly so that when the submit button click causes validation, the validator throws a null pointer exception.
I know it can be hard to debug this sort of thing using words, but I was just wondering if I am going about this the right way or if there is an easier way to conditionally enable/disable a requiredfieldvalidator and validatorcalloutextender.
In asp.net(C#) i'm using masterpage and childpage.
in masterpage i used TreeView Navigation control to view the Childpage.
.What my doubt is......when i select the navgation control
my TreeView Control should be disable and when i click cancel button in Child page it will enable..
I want to make checkboxes which are already Checked to non editable or readonly to true.
View 1 Repliesdisable / enable An Ajaxifeid Button From Client Side (JavaScript)?
View 3 RepliesAM having a datalist with fields repeating based on some conditions say some textbox to enter Name ,DOB,Occupation,cell no,etc..and we have a button "Accompanying Person" .When this clicked i have to show same controls and enter details of accompanying persons like name,cell no etc...
SO same controls i have to show multiple times...but based on member /accompanying person i am hiding id field..but required field validator showing when the id is hidden..since this id is inside datalist and id textbox will be different how to hide this required field validator
I am using Menu control in asp.net. I am creating Menu control using xml databinding.
Here is the xml file;
<?xml version="1.0" encoding="utf-8" ?>
<Items Text="">
<Item Text="" ImgPath="./../images/home.gif" Url="" Value="Home" />
<Item Text="" ImgPath="" Url="" Value="Time Entry" >
<Item Text="" Value="Our Clients" ImgPath="./../images/oc.gif" Url="~/OurClients.aspx" />.....
But, it is returning null.
I am perform some action in update panel and there is a button to perform that action after perform that action, I want to show a button which is out side of update panel.
View 1 RepliesI am using ASP.NET 3.5 Menu Control.Is there a way to disable the default "hover" behavior, and change it so that user CANCLICK on the static menu item in order to make the child menu item appear?
View 1 RepliesHow do you generate a list of NavigateUrl s of a static Menu on the MasterPage.Master ?
The following code just returns the first level of Menu NavigateUrl items.
The code will return Home.aspx but not "FAQ.doc" and "Trouble Shooting.doc".
[Code]....
Trying out the asp menu item. I have a static menu across the top, and then when you hover over a menu item, a dynamic menu opens and displays 5 menu items from top to bottom. Only problem is, that the text in each of the 5 menu items is centered, where as I want them to be flush left. I've looked for some align options, but don't see them.
View 2 RepliesI'm using Visual Studio 2010 and ASP.NET 4.0 to render a Menu control as an HTML list so I can style it using CSS. Here is the code I am using below
<asp:Menu ID="navlist" runat="server" Orientation="Horizontal"
SkipLinkText="" ClientIDMode="Static" DataSourceID="MenuSource"
MaximumDynamicDisplayLevels="0" IncludeStyleBlock="False"
StaticDisplayLevels="2">
</asp:Menu>
This produces the following HTML
[Code]....
At first glance this looks like exactly what I wanted. However, if I open up WebResource.axd there is a whole bunch of javascript code related to the menu. Part of this code is applying it's own inline styles to the list. Using FireBug I can view the HTML markup after the javascript has executed and it looks something like this:
[code]....
These inline styles ultimately affect the layout of my page. I have no need for any of the scripts in WebResource.axd. How can I prevent this script from being rendered in the final markup of the page?
In my website I'm using the standard ASP.NET menu control. I already got so far as to write a custom control adapter to get rid of the rather tacky html output that is generated by the default control adapter.
One thing keeps buggering me though. Somehow ASP.NET is generating extra javascript that I don't want nor need for my menu controls, since I won't be using any of the dynamic features in the control. I replaced the control adapter, so it doesn't generate compatible HTML for that.
how I can prevent ASP.NET from generating the extra javascript for the menu control?
How to get rid-off ToolTip showing when people hover over menu items in asp:menu navigation control? The ToolTip itself covers pop-out sub-menu and very irritating. ToolTip actually displays "description" from Web.sitemap. I thought to delete "description", but that would be nice to have for asp:SiteMapPath.
View 2 RepliesHow to disable File Menu Control (Print option) of Browser in asp.net
View 5 RepliesHow to center the menuitems and highlight the selected menuitem in menu control in asp.net?
<asp:Menu ID="maspageMenu" runat="server" BackColor="#2D2D30" Width="100%" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="1.4em" Font-Strikeout="True" Font-Underline="True" ForeColor="#009933" Orientation="Horizontal" StaticSubMenuIndent="10px" BorderStyle="Groove">
<DynamicHoverStyle BackColor="#18624F" ForeColor="White" />
<DynamicMenuItemStyle BackColor="White" HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicMenuStyle BackColor="White" BorderStyle="Double" />
[CODE]...