MVC :: Different Layouts For Different Users?

Jun 24, 2010

What I'm tryin to achieve now is to apply a different layout dependingon which user is logged. However, I cannot do any of this kind of conditional logic in the page itself. What I was thinking was an action filter that tests the current user, and if they are logged in applies one layout to the view and if they are not applies a different layout to the view.

View 6 Replies


Similar Messages:

Different Layouts Within 1 Site?

Feb 9, 2011

A client has an ASP.NET website with master pages and a layout directory.

What we need is 2 different layouts on the site. Can I easily have two layouts with different master pages on the same site?

What's the best way to do that?

View 2 Replies

Create Table Less Layouts?

May 19, 2010

I am a .Net developer with almost 4 years of experience. Until now I have been using tables for creating layouts of my websites and I am quite experienced with this technique. I have been trying to design table less (CSS based) designs for the past few months and I have acquired a lot of knowledge about CSS. However, I feel that if the design is very complex or needs out of the box thinking than I am unable to create such layouts. I have read many books and seen many videos but most of them will create layouts of designs that are fairly straight forward and not too complex. Can anyone guide me to a complete book or training that can satisfy my needs and also teach me the thought process behind implementing CSS layouts.

View 4 Replies

Drag And Drop UI Layouts Using JQuery

Feb 17, 2011

For our next project (a small app in ASP.NET/C#) we have to create drag and drop zones in the UI so that components/widgets can be dragged and dropped and layouts can be changed dynamically (for example, the user should be able to switch between two-column to a three-column layout from the front end). After doing some searching, I got to know that there are two approaches: Use Web parts and Content-zones. Using jQuery.

I also learnt that jQuery approach is preffered, but I would like to know how can I create such zones in my application and also save these zones per user (in the D so that when the new request comes for that user their preferred layout is displayed? I basically want to know if there are some tutorials on creating persistable drag and drop zones using jQuery.

View 3 Replies

MVC :: Cannot Define Section When Using Nested Layouts

Nov 15, 2010

Is this a defect with Razor nested layouts?

View 3 Replies

Web Forms :: How To Separate Applications And Master Layouts

Feb 18, 2010

What would be a suitable way to share a Master layout and css/image resources across seperate websites applications on the same server.

Primarily, an update to the Master layout application must not require all the other applications to be rolled out again, they must seemlessly update.

View 2 Replies

Asp - Implementing Layouts In Multi Tenant Site

Mar 10, 2010

I'm after a bit of advice on how to handle a multi tenant site in ASP.NET from a UI perspective. What I want to be able to offer is a choice of layouts to the client i.e.

Layout 1: Navigation horizontal at the top. Search results in a table in the middle. Some text at the bottom.

Layout 2: Navigation vertical on the left. Some text in the middle. Search results at the bottom

Layout 3, Layout 4, Layout x etc...

Each element within the various layouts can differ too. For example, the search results might look like simple list in Layout 1, but will have a completely different look in Layout 2. Once a client has decided on Layout x, I then need to apply their company identity to the layout by changing the colours, logos, etc.

View 3 Replies

Web Forms :: Creating Layouts With Templates And Dynamic Content?

Jan 7, 2011

i am working on a project in which i have to create newsletters. We wish to give user functionality of editing the complete layout ( drag and drop if possible) I am able to achieve drag and drop with web parts but can't customise them much like adding richtext box and saving multiple copies of same page with different layouts. I then wish to enable user to send the html only part of page which contains dynamic layout.

View 1 Replies

Web Forms :: Provide Flexibility Facility Of Different Layouts In Site?

Jun 14, 2010

My application requirement is, there should be different Layout themes (not only colors but also controls can be at different location), which user can easily change. How I can do that?

For eg. In wordPress there are different layout themes,

How should be the site folder structure? How I can implement that?

View 1 Replies

Web Forms :: Simplify The Look Of Buttons, Layouts Son Can Simplify The Look Of A Site For Smartp?

Apr 28, 2010

simplify the look of buttons,layouts son we can simplify the look of a site for smartphone?The idea is to represent links instead of buttons and to replace any loyout to just the left in order to be better viewable in a smartphone,

View 2 Replies

C# - Administer Website (create New Users, Assign Users To Roles, Etc.) From A Windows App?

Feb 9, 2010

I have an asp.net web app that uses forms-based authentication, a SqlMembershipProvider (using an encrypted password format), and a SqlRoleProvider. I need to know if it's possible to administer the users (create new users, assign them to roles, etc.) from a windows application - the powers that be don't want any administrative functionality in the web app itself.

Here is the membership provider definition from web.config:

[code]....

So, obviously, I have a Sql Server database that contains the users and roles for the web app. I'd like to create a separate windows app that references the web app assembly, and use the configured MembershipProvider, RoleProvider, and machineKey to create users, assign users to roles, etc. If that's not possible, I can duplicate the configuration settings from web.config within the windows app. But I don't know how to do this either.

View 3 Replies

Web Forms :: Stop Users Users Using The Browser Back Button And Potentially Submitting An Old Version

Mar 25, 2011

I need to stop users users using the browser back button and potentially submitting an old version of a form.

I'm storing a guid in a session variable and also writing the value to a hidden form field and then checking the session value against the hidden field value if a user does try to navigate back and submit an old form.

If the form is submitted and the user wants to complete a new copy of the form then a new guid is generated both to the session and to the hidden form field. Now, if the user decides to hit the back button a few times to get the old form and tries to submit it again, the page checks the current guid in session against the guid stored in the form field and it finds a mismatch and prevents the form being submitted.

This works as expected in Chrome and Firefox, but in IE6, when the user hits the back button to view the old form, the new guid value appears in the hidden field of the old form! This means the user can submit the old form again, which we definitely do not want.

View 3 Replies

Security :: Allow Admin Users To Access Basic Users Accounts?

Aug 26, 2010

Allow Admin Users to Access Basic Users Accounts?

View 4 Replies

Security :: After Successful Creation Of 3 Users On My Web Site Now Cannot Create Users

Dec 6, 2010

[Code]....

after successful creation of 3 users on my web site now cannot create users

View 9 Replies

DataSource Controls :: Different Return For Added Users And For Rejected Users?

Jun 25, 2010

different return for added users and for rejected users?

[Code]....

View 4 Replies

Security :: How To Display Users And Number Of Users Online

Oct 12, 2010

We have implemented the ASP membership and roles..and we would like to display the users currently logged in and also display the number of users online so we can display that on the page. The list of users woudl only be available to our admins. BUt the number of users will show for everyone.

View 9 Replies

How To Get The List Of Users And Also To Update/Delete Users

Aug 11, 2010

I have used Login Control + Change Password + Create User Wizard in my project. Everything is working fine. I want to know that how to get the List of Users and also to Update/Delete users.

View 1 Replies

Security :: Automatically Add Users To Role Users?

Aug 4, 2010

I just realized after i created a test account i was not in any roles. Is there a way to automically add new users into the role Users? Have i missed this some where?

View 8 Replies

Active Directory/LDAP :: Retrieve Users From The "Domain Users" Group?

Jul 7, 2010

I want to use the Domain Users group to show all the users in a dropdown box. For some or other reason I cannot return all the users when looking for everyone under the domain so instead I was thinking of using the domain users group.This is part of my code:

[Code]....

[Code]....

View 1 Replies

C# - How To Set Relationship Of Users

Apr 2, 2011

need Users to be able to be friends with other Users (Users are kept in the User table) im trying to create a "Friends" table so they can relate to one another.I need the UserID stored along with FriendID, UserID is of the current user and FriendID is related to the UserID of the friend. ARGh so confusing. Im getting lost even talking about it again, basically the way ive written my code i need the FriendID to relate to the UserID of the user table so i can find the person im after so I can display there credentials on the current "UserID" page but I also need some way to find out all the current UserIDs friends

View 1 Replies

How To Log Users Activity

Nov 30, 2010

I'm using default ASP.NET user controls and SQL user provider. How can I log somewhere when users login to web and when logout? Is there some tricks for it or just write to some .log file manually each time after user login. (Also , how can I check user IP adress?)

View 2 Replies

Customise The Url For Different Users?

Feb 23, 2010

i have one site , on which i have to personalize the content of site as Per different user.i want the different url for different user to acchieve personalization,for eg.for user1 http://abcdxyz.com/user1for user2http://abcdxyz.com/user2Please let me know which techqique will help me.

View 8 Replies

C# - Unable To See .NET Users In IIS In .NET 4?

Nov 28, 2010

I have converted my web from 3.5 to 4.0 and now in the IIS - my membership management is gone (.NET USERS), where can I Manage them?

View 1 Replies

Get The Ip From Users Machine?

Nov 11, 2010

Does anyone know how I can get the IP of a users machine using c#? Possible?

View 3 Replies

How To Tell Users What Password They Will Have

Jun 15, 2012

We are about to start letting CONTACTS come into a public facing website to see reports about PARTICIPANTS they are associated with.

These CONTACTS will have limited access once within the system.

We are going to allow CONTACTS access by loading the EMAIL address they have into a USER table - where the password will be stored - simple so far.

What is common practice for telling a person the PW you have setup for them? Is that PW always a "pre-expired" PW? I wasn't planning on letting the contacts change PW's - but I guess if that is required to be nearly best practice I'll have to.

View 8 Replies







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