MVC :: Alternative To ProfileCommon In .4.0?

Aug 4, 2010

I'd like to add some properties to logged in user. The last time I did this was a website made in VS2005 and ProfileCommon worked just fine. It seems however that this class is not included in web applications in general and .NET 4.0 in particular. I there for assume there is now a better way of doing this. Could anyone tell me what it is? In short I'd like to add PersonID to user's login to make it easy to hide information not related to that particular user by setting controllers like

if (!User.IsInRole("Administrator") {
var item = PickLists.GetPerson(User.Profile.PersonID); // or something like it
return View();
}
var item = PickList.GetPeople();
return View();
}

View 5 Replies


Similar Messages:

MVC :: Using ProfileCommon In Controller

Mar 13, 2010

I've added some custom properties via the <profile> node in the web.config. In a view, I can access the custom properties using <%= Html.Encode(Profile.CustomProperty) %> so I know the class is being automatically generated. However, in the Controller, the ProfileCommon just doesn't exist. Do I need to include a specific namespace for this to work or is it simply not supported?

View 1 Replies

Security :: ProfileCommon Object Not Getting Instantiated?

Feb 17, 2010

I am getting an object not instantiated error on a production environment only when trying to execute the following code.

Profile.GetProfile("username");

<profile defaultProvider="ProfileProvider" enabled="true" automaticSaveEnabled="true">
<providers> [Code]....

View 1 Replies

Security :: Website Can Call ProfileCommon From A DLL?

Feb 4, 2011

I am trying to use ProfileCommon inside a DLL. this DLL is being called by ASP.NET web application.

I am getting this:

Error 15 The type or namespace name 'ProfileCommon' could not be found (are you missing a using directive or an assembly

View 1 Replies

The Name ProfileCommon Does Not Exist In The Current Context"?

Aug 26, 2010

een browsing the net but no luck.. I need to use the ProfileCommon but I can't reference any assemblies to use it.

View 1 Replies

Security :: Profilecommon - In Which Table Store Data

Mar 6, 2011

[Code]....

In which table is stored data "dejan"?

View 2 Replies

Security :: Transfer ProfileCommon Context To Authenticated User

Feb 7, 2010

I currently have a ProfileCommon enabled on my site and would like to know where I would start to transfer this ProfileCommon's context to a user's profile after he/she has logged in. Here is a snippet of how I have defined this ProfileCommon:

[Code]....

View 2 Replies

Security :: Which Table Is Used To Store Extra Profile Fields With ProfileCommon

Jul 18, 2010

I added extra fields into web config like this :

<profile enabled="true">
<properties/>
<add name="FirstName" type="string"/>
<add name="LastName" type="string"/>
<add name ="HomeAddress" type="string"/>
<properties/>

View 2 Replies

Security :: Get User Info With Custom Provider - Use Provider With Profilecommon?

Apr 16, 2010

I try to get the user profile settings with this code. But all items in it are empty, in the database they are not empty. So there is going something wrong. First of oll how can i add a provider to the ProfileCommon ? Maybe i'm there then... the usrInfo is filled well...

MembershipUser usrInfo = Membership.Providers["MyMembershipProvider"].GetUser(UserName,false);
ProfileCommon prf = (ProfileCommon)Profile.GetProfile(UserName);
LitNaam.Text = prf.Voorletters.ToString() + " " + prf.Achternaam.ToString();

View 2 Replies

What's The Next Best Alternative To IIS

Sep 29, 2010

What's the next best alternative to IIS? What's the alternative if I install a server in Windows and what's the alternative if I install a server in Linux. I'm not allowed to install IIS here at work, since they've experience security issues here.

View 10 Replies

Alternative For Tables?

Feb 14, 2010

One of my classes currently is a C# class. I was given a small assignment for creating a bare-bones Facebook clone. I am now ready to list wall posts on user's pages.Having just been taught about DataLists (using tables), I thought I'd use one. However, I'm told "The messages list must be displayed without using table tags (<table>, .<td>, etc.)"

This is not really a coding question, just asking for a recommendation on how I should go about displaying posts without tables while still easy on the eyes (including name, the poster's picture, the message, and a date).

View 6 Replies

Asp.net - Alternative Of Usercontrol?

Jan 6, 2011

Is there any other alternative of usercontrol other than webpart and iframe,Which i can use in my asp.net application.

View 3 Replies

MVC :: Alternative To Frames For MVC App

Mar 12, 2010

I would like to convert my Frames-based web application to non-frames.Challenges:I have a frame of exploding tree menus (total tree around 1,000 menu choices - up to 5 levels of average 7 choices for each item). From this menu, one gets to the first content page (all dynamically created data pages). The content page can link to other content pages and so one.As the user navigates around in the right side, how can I have the display retain the exploded structure of the menu without using Frames (in a way that the browser back button will continue to work).Does anyone have an example of an application where there are many content sections on the screen which retain their state as the page is refreshed, without using frames?

View 3 Replies

Finding Alternative To DataPager

Jan 24, 2010

I am using a datapager on a page where different images are shown. Now i am using the following code:-

PHP Code:

<asp:DataPager ID="DataPager1" runat="server"
PagedControlID="lvPhotoViewer" PageSize="1"
onprerender="DataPager1_PreRender">
<Fields>
<asp:NextPreviousPagerField ButtonType="Link"
PreviousPageText="<< Previous" NextPageText="Next >>"/>
</Fields>
</asp:DataPager>

Now this code does run through all the images, but i need to alter the querystring and make it change to match the ID of the photo displayed. I tried adding QueryStringField="String" but this was hopeless.

I have a querystring like so:-

Quote:

[URL]

When i click on next image i need it to change to something like:-

Quote:

[URL]

See the PhotoID has changed. But it currently does not do this. When i arrive on the page the PhotoID stays the same. I have been trying for a while and im starting to give up!

So was wondering if there was an alternative.

View 3 Replies

Alternative To Gridview And Updatepanel

Mar 18, 2011

Gridview has problems in an updatepanel. So i was thinking if there is an alternative for preventing postbacks with the gridview.

View 15 Replies

Alternative To DataPager - QueryString

Jan 24, 2010

I am really fed up with a datapager I am using as I cant change the value of the querystring. I currently have this code:-
[Code]....

When I first arrive on the page I see this querystring, depending on the picture selected a different ID will be shown:- [URL]

See the bold. When I click on the next image I need the querystring to change to the ID of the image. So something like. But it does not work, I don't know to do it. I tried with adding QueryStringField="String" but this didn't work either.

View 6 Replies

Alternative To Telerik RadGrid?

Jan 14, 2011

Is anyone able to offer any decent alternatives to the telerik ASP.Net controls.

I'm in the market for a decent grid control with all singing all dancing extensions... bt I'm finding the telerik grid really hard work to deal with.

The telerik controls do look good, but after a day of hard work with them I'm just looking to see if there are any other 3rd party offerings?

View 3 Replies

Databases :: What Is The Alternative Of CTS In MySQL

Mar 1, 2011

Can anybody tell me what is the alternative of CTS(Common table expression in SQL Server 2005) in MySQL

View 1 Replies

Can Still Use App_offline.htm On MVC 2 Projects - If Not, Is There An Alternative Method

Apr 21, 2010

I loved the features of using app_offline.htm on my ASP.NET WebForm based sites.

Upload the file and your app is immediately "offline". Snappy.

Now that I'm using MVC 2, I noticed that this no longer works.

Is there a way to get this behavior in ASP.NET MVC 2 like it did in WebForms?

View 1 Replies

Web Forms :: Using Table As Alternative To GridView

Aug 4, 2010

I want to populate the information into a table from a data source. I don't want to use a grid view. How do I do this?

View 14 Replies

Good Alternative To SQL Server For .NET Applications?

Jul 3, 2010

I've been looking into a lot of database's recently, and am not sure if it's because I'm bored or what, but I want to create a few web applications using database's other than MS SQL Server.

View 4 Replies

Web Forms :: Alternative To ComponentGo's Web Scheduler?

May 11, 2010

a good alternative to ComponentGo's Web Scheduler.http://componentgo.comTelerik have a calendar control but it doesn't provide the functionality i'm looking for.The control will be used to schedule peoples work shifts for the different roles in the company, and needs to provide a day view and week view.

View 2 Replies

C# - Any Alternative To Xmldatasource In Menu Control?

Feb 11, 2011

my code is as follows

DataSet ds = new DataSet();
string connStr = "Data Source=PARITAS00024;Initial Catalog=MenuDb;Persist Security Info=True;User ID=sa;Password=paritas123";
using (SqlConnection conn = new SqlConnection(connStr))
{
string sql = "Select MenuId, MenuTitle, MenuDesc, MenuURL, ParentMenuId from tblMenus where Status=1 and RecordStatus=1 order by ParentMenuId, DisplayOrder";
SqlDataAdapter da = new SqlDataAdapter(sql, conn);
da.Fill(ds);
da.Dispose();
}
ds.DataSetName = "Menus";
ds.Tables[0].TableName = "Menu";
DataRelation relation = new DataRelation("ParentChild", ds.Tables["Menu"].Columns["MenuId"], ds.Tables["Menu"].Columns["ParentMenuId"], true);
relation.Nested = true;
ds.Relations.Add(relation);
System.Web.UI.WebControls.XmlDataSource xds = new System.Web.UI.WebControls.XmlDataSource();
xds.TransformFile = "~/TransformXSLT.xsl";
xds.XPath = "MenuItems/MenuItem";
xds.Data = ds.GetXml();
xds.ID = "xmlDataSourceMenu";
Menu1.DataSource = xds;
Menu1.DataBind();

is this correct way of using the xmldatasource ?

View 1 Replies

State Management :: What Is The Best Alternative For Session

Jul 28, 2010

we are working on a huge project(web application) in asp.net ajax & c#. Per day 300 memmbers will access our website for data entry.we are using mssql 2005.we implemented someany sessions in our project.now our application becomes very slow.We are planning to remove the sessions in our project.

View 5 Replies

Treeview / Listview Combination Or Alternative?

Feb 18, 2010

I need to create an ASP.net page that has a control on the page that has a five-level TreeView on the left side of the page, and accounting balances on the right side the coincide with each breakdown in the tree. Top level is company, next is group, next is program, etc... and the balances break down accordingly.

I've seen that there are controls out there such as TreeView/ListView combination controls that can do this. Is there any tutorials or out there on how to go about accomplishing this without paying for controls? Could a treeview do this alone by spanning data across the entire length of the columns since every level will have totals on it?

View 2 Replies







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