Security :: Display Sitemap Based On Rolled Based Login

Mar 26, 2010

which i added one sitemap in whcih i added all the pages n i want to retrive that sitemap in masterpage based on login in whcih suppose admin hs login then display only admin pages with sitemap n if normal user hs login then it ll display only normal user pages with sitemap. here i didn't use login control but i create login page manually.

View 1 Replies


Similar Messages:

Security :: Login Form Rejecting Valid Login With Forms Based Security And Membership Service

Jan 21, 2010

I've set up a system with forms based authentication and using the asp:Login control. When I put in an invalid password I get the approriate invalid password message. However when I put in a valid password, it does nothing...just returns to the login page again. I'm triple checked the login info. There is no error message, and the invalid attempts counter doesn't increment. When I put a break point in the Login_LoggedIn event of the Login form, it hits it, but User.Identity.IsAuthenticated is false. I'm not 100% sure it should be true at this point, as I'm pretty new to .NET but it seems kind of odd.

My user database is stored in a sqlserver 2005 db that already existed. I've added a new connection for it.In the authorization I have

<authorization>deny
users="?"/><authorization>

View 2 Replies

Security :: SiteMap Control Based On User Roles Works Wrong?

Apr 20, 2010

<siteMapNode roles="*"> <siteMapNode url="~/Default.aspx" title=" Main" description="Main" roles="*"/> <siteMapNode url="~/Items.aspx" title=" Adv" description="Adv" roles="Administrator"/>....

any user can see Adv page. That is a trouble and a qustion : why and how to hide out of role sitenodes.

little addition : <siteMapNode roles="*"> appears to all nodes If I don't do roles="*" on main node, all users can't see Main node ... And I SiteMapDataSource works only if there 1 node

View 2 Replies

Security :: Lock Down Certain Sitemap Menu Items Based On The Users Role ?

Jan 21, 2010

My web app has 3roles, I need to lock down certain sitemap menu items based on the users role and what I'm using isn't working.

my roles are Supervisor, manager, and User.

[Code]....

I only want those roles to see those menu options, I do not want someone with a user role to see those options at all. Currently if I log into my site with a user role, I'm seeing everything on the menu (via the sitemap).

View 5 Replies

Security :: Allow Clients To Login To Website And Connect To Specific Server Based On Login

Jul 5, 2010

We have created a windows application which is distributed amongst our clients. The application uses SQL Server 2008 as the back end and each client uses their own database on their own server. The databases are all exactly the same but each clients data is specific only to them.

We would like to offer our clients the ability to log-in to our website which would then login to their own database so that when they are out in the field they can perform similar tasks to what they can do with the windows app.Each of the clients databases has a user table containing their login details, permissions etc.

Our server is running on IIS and has SQL Server 2008 installed but it only contains our data and nothing of the clients.How should we go about this?

What I mean is do we need to make each client have an additional login to our main server which would then hold each clients individual connection strings etc which would then be used to connect to there specific database and then they would need to login again?? Seems like a nightmare for the user.

View 13 Replies

Security :: Secured Site Using The Login Control / Do Not Want Them Redirected Based On Their Login Status?

Mar 24, 2011

I am doing a simple secured site using the login control. I would like users to be redirected to their dashboard page once they log in, but after that if they choose to browse I do NOT want them redirected based on their login status. I am using the generic template provided in VWD with the basic login setup in the template including the tabbed ASP menu control - nothing fancy, nothing custom. This is intended to be something very simple and quick. Here is the code I am using for the page load...

[Code]....

So if I do this code WITHOUT the "IsPostBack", logged in users are always redirected to their dashboard and cannot see the hompage. However with that IsPostBack test, the redirect after initial login doesn't work.

I know this is extremely basic and simple, but I am restarting with this stuff after a year away, and I need a nudge.

View 4 Replies

Security :: Want To Redirect User Based On The Login ID?

Jan 26, 2010

i am using asp.net membership. when users arrive at my sight they can enter user name and password.

I then want to redirect them to a page called "MyAccountPage.aspx" which is unique to them. could someone post the c sharp code that I can use to capture the Unique Id of the user is it best to then pass this as a parameter to a control on the aspx page that displays data for that user. am I correct in thinking that I need a UserId column in my data table as well.

View 1 Replies

Security - Require Login Based On Netmask?

Jun 23, 2010

I need to secure access to all pages in a .NET webapp - EXCEPT requests from:

local network (the network IIS is running on) IPs listed/netmasks listed in a database all other requesets should be redirected to a login form I was thinking in the direction of a HttpModule - but never wrote one.

View 4 Replies

Security :: How To Get Impersonation Based On The User Login All The Time

Jan 14, 2010

I set the impersonation to true in web config. First time accessing the page, it implements the impersonation to access Sql sERVer. However the second request and so on to page, it does not implement impersonation, rather it uses NT AUTHORITYIUSR user account.

I need to impersonate based on the user login all the time.. How can I achieve this?

View 13 Replies

Web Forms :: Display User Specific Information From Database - Based On Login ID

Jan 7, 2011

I have a online game (written in ASP) which i have finally decided to convert to ASP.NET. However i cannot seem to link the login ID's of users to their specific details in the database. I.E when Joe Bloggs logs in, he will be shown the team information for just his club, not every club. in ASP I use code similar to this below

[Code]....

im not convinced that is the right syntax to be using, but when i execute the code in Query Builder it is showing me the correct data (that i expect to see). So im wondering if there is something else im missing? Is there something extra that i need to be adding in Web.Config file or elsewhere?

View 30 Replies

Navigation - What Are The Advantages Of Using Sitemap-based Navgiation

Aug 10, 2010

Scenario: building a site where navigation will be in master page in either left or top menu. What are the advantages to using the ASP.NET navigation system based on web.sitemap files? The alternative I'm considering is just building the links in <li> elements as necessary.

View 2 Replies

VS 2008 - Dynamic Changes To Treeview Based On Sitemap

Dec 19, 2011

I have a web app with treeview based on a fairly simple sitemap. The only catch is that I want to be able to remove nodes based on a user's role. We are NOT using the asp.net security so I can't take advantage of the built-in function.When I put code in the master page load event (or anywhere else it seems), there seems to be nothing in the treeview object yet, so I can't make changes to it.

View 7 Replies

SiteMap Based On User Roles Doesn't Works?

Sep 22, 2010

I have sitemap which looks like this:

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="~/default.aspx" title="Prva stran" roles="*" description="Shema ISEF">
<siteMapNode roles="2" title="Analize" id="Analize" description="" >
<siteMapNode url="~/karneki1.aspx" title="Karneki1" description="" />
<siteMapNode url="~/karneki2.aspx" title="Karneki2" description="" />
</siteMapNode>
</siteMapNode>
</siteMap>

if I set roles in a siteMapNode with title "Analiza" it works fine, the link is not shown in the navigation... but if I set roles on any of "karneki" siteMapNode the links are still visible...

Is it even posible to restrict access to lower links based on user role?

View 1 Replies

Web Forms :: How To Show Menu With Sitemap Based On Sql Server Data

Jan 6, 2011

How to show menu with sitemap based on sql server data?

View 1 Replies

Security :: Claims Based Authorization VS Role Permission Based Authorization?

Apr 26, 2010

Our team has recently implemented a role permission based authorization so that we can have granular control. This is similar to what Rockford Lhotka suggests herehttp://www.lhotka.net/weblog/PermissionbasedAuthorizationVsRolebasedAuthorization.aspx I have also read about the Claims based authorization which to me looks very similar to what we have. Can some one put in simple terms what the advantages of claims based authorization are.

View 1 Replies

Web Forms :: Show / Hide Submenu Based On Sql Tables With Existing Sitemap Method?

Feb 25, 2011

I am using asp.net2.0 , C#. I am binding menu control with sitemap to display menus and submenues. Which also restrict access and display of menu or submenu based on user's roles. I want to know Is it Possible to show/ Hide submenu based on sql tables with existing sitemap method

View 1 Replies

C# - Want To Develop In SilverLight A Web-based Editor And A Web-based Player For PowerPoint Presentation

Feb 21, 2011

I need to develop in ASP.NET or in SilverLight a web-based editor and a web-based player for PowerPoint presentation. Are there any components I can use to do this?

View 2 Replies

VS 2008 - Restricting Access To Web Pages (on Intranet Site) Based On Role Based Authorization

Jul 12, 2011

I have a simple intranet site. It has a role based authorization in the web.config file.

Any user's in a specific role called as "Apr-Sales-Writers" will be authorized to use those pages. If not, they will not be authorized. So far so good. Works fine. But we added additional functionality where a new active directory group (means new role) has to be added and user's belonging to this new AD group should be given access to only specific .aspx pages on the intranet site. I am using a web.sitemap and it looks like this.

If the user's belong to say AD group "Apr-Sales-Writers", they should access only default.aspx and salesData.aspx pages. User's belonging to new AD group (which I did not include in the web.config file below), should have access to other .aspx pages.

[CODE]<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="default.aspx" title="Home" description="Home">
<siteMapNode title="sales Data" description="sales Data">
<siteMapNode url="salesData.aspx" title="sales Data" description="sales Data" />

[Code] ....

View 7 Replies

Web Forms :: Login Based On Roles

May 7, 2015

I create a login where both the super admin users can also login into it and the general users can also login into it..

If the super admin user logins he must land on the separate page and the general users must login to a separate page...

How it is possible...

View 1 Replies

Saving A Web-based Information And Retrieving The Info As A Web-based Again

Aug 3, 2010

I have an application called barcode available on a server on the web. The application is used to generate barcodes. The user is able to save her progress directly on her desktop, however though whenever the user try to load the saved progress. It is doesnt remotely connect to the server, instead, it defaults only the saved copy on her desktop. so for example

we have the following aspx created

barcoded.aspx. The barcoded.aspx is available on the server. the page has the following information

Name: PRT321-1 Code: 456789-1000

Label: 678900-001-001

Now, this information is saved as webpage.html. however though, when the user goes to the saved location and clicks on the saved copy, it automatically load the copy as a webpage and allow the user continue with the modification online but that is not the case. Does anyone know how to fix this problem.

View 1 Replies

Web Forms :: Convert A Windows Based Application To A Web Based Using Vb.net?

Sep 9, 2010

I'm trying to convert a windows based application to a web based using vb.net.

I am having a problem with the following:

System.Windows.Forms.WebBrowser

is there any similar web calling to this?

I'm doing this:

Dim htmlbox As System.Windows.Forms.WebBrowser

But obviously im unable to do this since it's a windows.. I need to find something similar for web.

View 2 Replies

MVC :: Manipulating Navigation Based On Login Status?

Feb 26, 2011

On my website navigation, I have a link to a registration page. The issue is, I only want that link viewable when the user is not logged in.If the user is logged in, I want that link to disappear from the website navigation.

How do I achieve this in ASP.NET MVC 3 ?

View 2 Replies

Web Forms :: Restrict Login Failed Based On Ip?

Mar 5, 2011

I have a login page. I have to restrict after 5 failed login attempts. After 30 min i have to allow that user to try again..

View 6 Replies

C# - Login And Authentication System In A Service (wcf) Based Application

Sep 22, 2010

i want to design a authentication system for a service oriented application.i have a wcf service based asp.net application.

View 1 Replies

Fetch Password From Database Based On Login Username

Jul 10, 2013

I want to show the password from database into Label,I have wright code following

SqlConnection con = new SqlConnection(@"Data Source=TEGADEV1SQL2K5EXPR;Initial Catalog=mydatabase;Integrated Security=True;Pooling=False"); SqlCommand cmd = new SqlCommand("select password from reg where username='" + username + "'", con);

cmd.Parameters.AddWithValue("@username", username); SqlDataAdapter da = new SqlDataAdapter(cmd); DataTable dt = new DataTable(); da.Fill(dt);

Lable.Text=......

I have use datatable how to read data from above code what will be the code wright Lable.Text=...

View 1 Replies







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