Security :: Disable Sitemapnode From A Particular User?
Jul 24, 2010
how to disable sitemap link for a perticular user?
i have 2 columns one is UserStatus which is A/P(Approve / Pending)
2nd is POC =Y/N..
i want to check userstatus =A and POC = Y
and the link name (eg..abcd). at runtime only those users use this link whose status is'A' and POC is' Y'..(enabled
link to ths users)I want to disable this link to other users..
i am working in asp.net and csharp, we have 10 user, but certain user only need to put dataentry. how to enable and disable based on the user to access certain form ,like add, modify view options.
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
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 ...
My requirement is that only the login page and the Register page should be accessible from anonymous users. I have created a new ASP.NET MVC project using the default template in VS2008. After that I have enabled security adding this section to the web config:
i created a web.sitemap file where I have listed the following:
[Code]....
I need to set some values before the menu item navigates to the page. I'd like to use the same aspx page for more than one menu item and I'd like to avoid the use of querystrings in my code. However, I realize that it's not possible to set the same url in the web.sitemap file. If I don't specify a url, the menu item created is not click-able.
Does a sitemapnode need to point to a page of the current site? I'm trying to add a node that would take a user to a page on another site, for example:
This node does not show-up in my tree view of links, but all the other nodes show. This is the only node that has a url that points to a page outside the current site.
I want to force users to provide a username, but not a password. I want to use many features of the membership class, but in an environment where passwords are not required.I could set up a "UserName" textbox, and give all my users the same, hard-coded password, but I was hoping to find a more simple solution.[I know, this should NOT have been posted in a forum entitled "Security". "Insecurity" or "Vulnerability" would be more fitting, but...]
I set up my web site to use SSL encrption and I set the settings in IIS to ignore client certificate. But when i access the web site from a client browser, it still shows "403" error.
I currently have a working menu driven by a sitemap.I would like to change one of the sitemapnode when a user hits one of my pages. How do i achieve this? I just need to change of the url for one of the nodes in the sitemap.
I need to add a sitemapnode to my screen when the user opens it without adding an actual sitemapnode to the sitemap file. This node needs to include url, title, and description. Does anyone have code to show how to do this in C#?
it's possible to protect aspx page from modification in a production environment?
I explain: We are developping a web application that is installed in our customers environments so once it's installed we don't manage it.
This application manages critical and encrypted data that the IT (of our customer) should not have access to, for instance their customer's password. So I would like to know if it's possible to prevent any modification of the aspx page to insert script to retrieve session data or catch keyboard entries once the web application is installed.
build a shopping site. i have in my menu a link to upload products.i need to disable this link,for thos are not login to the tite. that members only can use this link.the visitors will see or not see the link its dosnt metter to me. but wont be able to click him?
I've somehow managed to successfully get Membership working on a test site I'm playing with (learning!). I've reached a point where I can redirect users to another page if they do not have the required level of membership - using the allow feature in a web.config within a folder.What I would like to do now is create a main menu of links (a back office menu visible after the use has logged in), and disable a link if they do not have access to view that page. Is this complex? I'd be grateful for any sample code to get me started.
I was given some code a while ago which hid certain nodes from the TreeView but allowed them to appear in the breadcrumb.
Here it is:
[Code]....
I later needed do the same thing but, by now, was using C# instead of VB.
I've tried to translate the VB into C# but the code doesn't work. It doesn't report any design time or run time errors; it just doesn't work (the nodes ARE visible in the TreeView.
I am developing an ASP.NET web page with C#. I have a sitemap document but I want to hide certain nodes based on the user's credentials. However, I am having problems with my code removing the actual node. Visual Studio runs the program with no errors. However, the node is still there. Below is the code I have developed for this. The node changes text to "it worked" as I hope written. However, it will not remove itself. I can get the item to be disabled, change enablement, but I need to hide it completely from the viewers view - not the document.
When I run it. It displays Home>Basic Reporting... (All is under Home tab)
[Code]....
I want to add another root (like Home tab) So the user can select another tab withough going through the Home tab,When I add this code (above code ie.2): It doesnt work, compilation error:How do I make it work.
I have a site and Web.sitemap file added to the root folder of the site.
I want to create a new page that allows the user to change the title and description of the SiteMapNodes in the Web.sitemap file. I have completed it partially, in the sense, I am able to iterate through the nodes in the sitemap file using the following code.