Web Forms :: Disable MenuItems For Selected Users?

Oct 9, 2010

how to disable MenuItems for selected users.

I am using Telerik RadMenu. I have different users, now i want to block some users access. I want to disable the MenuItems whenever user login to his account.

I will give you much more data if needed. I want to know from where should i start at first.

View 1 Replies


Similar Messages:

Web Forms :: How To Disable Master Page MenuItems

Jul 2, 2010

I am working with the master pages which contain the Manu control. I want to disable the few menuItems from the master page's Menu control in the child form. I have tried so many times but I only succeded to disable the whole menu of master page, but my sanerio is different. I have to disable only few MenuItems from Menu and also want to disable few Items of Submenu

View 2 Replies

Web Forms :: Disable Some Menuitems Depending On Role?

Apr 12, 2010

i am using a menu in masterpage.Based on user login i want to disable some menuitems depending on role.how to do this?

View 7 Replies

Security :: How To Disable Menu Items For Selected Users

Feb 4, 2011

I have a menu with 3 Items; Home, Begineers and Experts. Menu is implemented in a masterpage and I build 3 more separate webpages which inherit the master.Userneeds to login and I store the User category in a Session["Category"].Can I disable the menu item "Expert" depending on the Session["Category"]? ( that is need to disable the menu when category is not equal to Expert)

View 2 Replies

Web Forms :: Get Spacing Between MenuItems And Hover Won't Work

May 4, 2010

Trying to find in the internet and in this forum answer to my problem, I created a compositecontrol where a Menu control is created when this custom control (.dll) is loaded and generated at runtime, no problem, as menu control is generated ok, but having problem with spacing between MenuItems and Hover won't work. I am using XmlDataSource to supply data to the Menu Control (menu item data comes from a xml).
I am trying to set width of the rendered page elements, to control spacing it does not work, and also set a "hover" css class to mnuCtrl.StaticHoverStyle.CssClass and mnuCtrl.DynamicHoverStyle.CssClass and it doesnot work.

View 2 Replies

Web Forms :: Enable Disable Validator Using DropDownList Selected Value

May 7, 2015

I have a dropdown list for the which values are coming from DB. There is one option name OTHER, when I select other the textbox appears. For that Textbox I have made a required field validator. Till here it works fine. But when I select any other option, still it gives me validator errors. It should not happen. It should only give me required field error when the user doesn't fills the textbox on select of OTHER option. Please see the code.

Dropdown and Textbox code:-

<asp:DropDownList ID="ddlGraduation" runat="server" CssClass="txtfld-popup_drp"></asp:DropDownList>
<asp:RequiredFieldValidator CssClass="error_msg" ID="reqGraduation" runat="server" ControlToValidate="ddlGraduation"

ErrorMessage="Please select graduation details" InitialValue="--Select--" SetFocusOnError="true"></asp:RequiredFieldValidator>

<asp:TextBox ID="txtOther" runat="server" CssClass="txtfld-popup_p"></asp:TextBox>
<asp:RequiredFieldValidator ID="reqOther" runat="server" ControlToValidate="txtOther" ErrorMessage="Please specify your qualification"></asp:RequiredFieldValidator>

JS code for hiding and show the textbox when user select and deselect the OTHER option from dropdown list:-

<script language="javascript" type="text/javascript">
function pageLoad() {
$('#ctl00_ContentPlaceHolder1_txtOther').hide();
$('#ctl00_ContentPlaceHolder1_ddlGraduation').change(function () {
if ($(this).val() === "Other") {

[Code] .....

How to achieve this...

View 1 Replies

Web Forms :: Keeping MenuItems Highlighted As Navigate Through The Menu Control?

Jul 26, 2010

I'm trying to find out if or how it's possible to keep the MenuItems highlighted of a menu control as you navigate down the hierarchy.If I have deep menu, say 3 layers, I'd like to keep the path the user took highlighted.

View 4 Replies

Web Forms :: Enable Disable RequiredField Validators Based On Value Selected In DropDownList?

May 17, 2013

I have a dropdownlist ,three text boxes and a submit button.The three text boxes are disabled and enabled based on the condition in dropdownlist.I have provided required field validators in three text boxes.When I click on condition "self" then three text boxees are disabled and submit button click wont enter the values since required field validators prevent that.I have set causes validation property to false.But it wont work for the second condition where i need to enable all the textboxes,If i didnt provide any values it will enter nulll values to db.

View 1 Replies

Forms Data Controls :: Show Each Menuitems In Seperate Dynamic Ajax Tabs?

Jul 25, 2010

I have a datalist menu that has several menuitems in it(each item load user control).I want to show each menuitems in seperate dynamic Ajax tabs when I click on first item tab is created but when I click on second menuitem to create second dynamicajax tab I faced this error:

[Code]....

[Code]....

View 3 Replies

Web Forms :: How To Disable Dropdown List Value In The Current Form That Was Selected In The Previous Page

Aug 27, 2010

I am having 2 web formsand will have a drop down list on those web forms. If i select a value from drop down and click on ok i will get tranfer to next page. In that page i will have a drop down with the same values in the previous form . What i need is i would like to disable the selected value in the previos form and would like to display the remaining normal.

View 3 Replies

Web Forms :: Bind Label Related To Users Selected Item From Menubar

Aug 22, 2012

these are my table in database

HOuse_p Table
Id
Behcode
Name
H_name

[Code]....

now in house.aspx page i have label

i want when users click item in index.aspx or click item from menubar in house.aspx (they bind from different table)  in label show the name of item(related to users selected from index.aspx or house.aspx)

if they click item from  index.aspx it show name column from House_menu tabel .

and if they click on menu bar item in house.aspx in label show classification column data from House_p table 

View 1 Replies

How To Disable Login For Users In Membership By Locking Account

Aug 15, 2012

I created a user manually using Membership.CreateUser(). User created successfully but as soon user create Logged In User's tasks display. I want to use DisableCreatedUser() some how. or is any method to disable it?

View 1 Replies

SQL Reporting :: ReportViewer: How To Disable Drill Through Function To Users Depending On Dropdown Value

Jan 3, 2011

Is it possible to programmatically disable/enable say column field drill through capability of the matrix table report depending on the textbox.text of dropdownlist value but retaining drill through capability of row fields ?

View 1 Replies

Active Directory/LDAP :: Use Membership But Bypass / Disable Password Usage For Users?

Aug 12, 2010

I have an application that does LDAP authentication. The authentication is done on the code behind page of my Login.aspx page. Once the user passes LDAP authentication, a cookie is set and I redirect:

FormsAuthentication.RedirectFromLoginPage(UserName.Text, False)

I would like to setup membership in my application and keep track of some user information. But due to company security requirements, I cannot store user passwords on my application. That must stay on the LDAP server only.Is there a way to store users but disable password storage on the aspnet_membership table?

View 2 Replies

Could Headers Be Included Around MenuItems Within Asp:Menu Controls

Apr 28, 2010

I wondered if anyone knew how to utilize the asp:Menu control with <H2> around the Item Headers. If so, how were you able to implement it?

<asp:Menu ID="mnuMain" runat="server" ForeColor="White" StaticDisplayLevels="2" Font-Bold="False" ToolTip="Main Menu" SkipLinkText="" MaximumDynamicDisplayLevels="1">
<DynamicMenuStyle BorderStyle="Dotted" />
<DynamicMenuItemStyle ForeColor="Black" />
<Items>

[code]....

View 2 Replies

AJAX :: How To Disable Cascading Dropdown With Selected Value

Sep 10, 2010

I have a RadioButtonList and two cascading dropdown linked to corrspoding dropdown control. Based on radiobutton's selection, the cascading will be prepopulated with some values and one value is selected in both dropdown.

I want to disable the cascading dropdown/dropdown after values are filled and selected on selection of radiobutton selected in RadioButtonList.

I tried to disable it, but in that case dropdown is getting empty.

View 4 Replies

C# - Disable The Controls In A Page When The Usercontrol Is Selected?

Dec 11, 2010

I Successfully created an user control for displaying Error message. now everything works fine but when the message is shown the background controls can be accessed. how to disable the page controls or page from clicking or selecting any controls. and when the message panel is closed it should enable the page controls.i found the answer friends.

void DisableControls(Control parent, bool status)
{
foreach (Control c in parent.Controls)

[code]...

View 4 Replies

How To Enable/Disable Button When A Dropdown List Selected Value Changes

Oct 28, 2010

I have a couple of dropdownlists and a button.when a user selects an item in the 1st dropdownlist,the 2nd dropdown is programmatically bound to a set of items(using an ajax request) depending on the value selected in the 1st dropdown.Then the user will have the ability to choose an item from the 2nd dropdown and click on the button,which performs some server side opeartions and returns the results.

But if the user tries to click on the button before the 2nd dropdown list is populated,user will receive an exception message.Instead of that I would like to prevent the user from clicking the button before the ajax request is completed to populate the 2nd dropdown.I tried using Button1.Enabled=false in the selectedvaluechanged event of 1st dropdown,which does n't seem to work.

View 2 Replies

Can Restore Selected C# Membership Users From A Backup DB

Feb 9, 2011

Had a recent issue with my CMS and discovered today that all of my users created in the last week were deleted. The good news is that I have a backup of the DB, and that it uses standard ASP.NET Membership tables.

Is there a way to do a restore of this data without restoring the whole DB? The membership tables are something of a maze... is there an existing stored proc or utility out there? I'm not sure which tables would be required and which ones would not.

View 2 Replies

AJAX :: Disable Dates In One Calendar Based On Date Selected

May 7, 2015

I want to block Year From Calender .I have 2 text box in first text box i select Start Financial Year And in second Text End Financial Year.When i Select 2009 year in first text box then in second texbox all dates privious from 2009 will be block.

View 1 Replies

Show Users Selected Data - Edit Mode?

Jan 27, 2010

I have a listbox in the formview. The listbox has selectionmode = multiple. The previous programmer has setup such a way when a user selects multiple items in the listbox, the data are stored with comma delimiter. For example, Listbox have values A, B, C, D, E. If user selected A, C, E and the data are stored in a field as A,B,C. Now the business requirement has changed and the user should be able to edit the data they entered. I want to able to show user which data they selected when they inserted data i.e. In the edit mode, the listbox should have A,C,E as highlighted. How can I do that? I can not use Eval("fieldname") because the listbox can not find the data "A,C,E" in the available listitems.

View 4 Replies

C# - How To Disable Dropdown List Value In The Current Form That Was Selected In The Previous Page

Aug 27, 2010

I am having 2 web formsand will have a drop down list on those web forms. If i select a value from drop down and click on ok i will get tranfer to next page. In that page i will have a drop down with the same values in the previous form . What i need is i would like to disable the selected value in the previos form and would like to display the remaining normal

View 2 Replies

.NET Gridview InVB - Enable Or Disable The Textboxes And The Dropdown Listbox If The Row Is Not Selected

Mar 9, 2010

I have a Gridview that has a button at the left hand side representing the row number. The Gridview has two textboxes and a dropdown listbox as templates. I would like to enable or disable the textboxes and the dropdown listbox if the row is not selected. I also need to enable or disable the templates depending on what the value is of one of the cells. When the templates are changed, I need to save the changes.

I have been able to get this working in the RowDataBound Sub but not in the RowCommand Sub when the row is selected. provide an example in VB.My current RowDataBoundSub, which does no work is below:

Protected Sub PropGrid_RowCommand(ByVal sender As Object, _
ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles PropGrid.RowCommand[code]....

My current RowDataBound Sub, which is working is below:

Protected Sub PropGrid_RowDataBound(ByVal sender As Object, _
ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles PropGrid.RowDataBound [code]....

View 2 Replies

AJAX :: Disable Dates Of One Calendar Based On Date Selected In Another Using CalendarExtender

Apr 1, 2013

I have two text boxes (from date and to date). Based on your demo i have disabled the future date but my requirement is 

1). First i have select the from date. eg: 21-02-2013

2). Now i am selecting TO DATE. eg:21-01-2013 

Now my requirement is i need to disable dates until 21-02-2013 to current date. Then user not able to select ToDate as 21-01-2013 i need to provide only option to select from 22-02-2013 to current date.

<asp:Label ID="lbl_sel_date" runat="server" Text="Select Date: "></asp:Label>
<asp:TextBox ID="txtDate_from" runat="server" CssClass="disable_future_dates"></asp:TextBox>
<asp:ImageButton runat="server" ID="imgPopup" ImageUrl="~/Calendar.png" />
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate_from"
PopupButtonID="imgPopup" />

[code]...

View 1 Replies

Data Controls :: Enable / Disable TextBox Based On Selected Value Of DropDownList Inside GridView

May 7, 2015

I'm using a gridview rows, in that I'm adding the rows. I need to disable the textboxes based upon the selected value from the dropdownlist (Yes / No). This should be remain same for the previous rows when ever I'm adding new rows.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved