Security :: Make Readonly Profile Property Writable On Admin Page?

Jan 26, 2010

Is it possible to allow an administrator to write to a readonly profile property by redefining the profile property in a web.config file used for administrators pages?

I have a unique account number which must be assigned to each new user (using the default membership provider). After reading a couple of articles it seemed it would just be easier to define it as a profile property instead of creating a custom membership provider. When the user makes changes to their profile on a profile page I create, I want the value to be readonly. When an admin views the profile I actually want them to assign the value to the property in their page.

View 1 Replies

Similar Messages:

Security :: Want To Use Profile And Have A Profile Property?

Dec 5, 2010

I'm being stupid but don't know what I'm missing.I want to use profile and have a profile property.So in the webconfig for my site I've added:

<add name="Name"/>

But in the code behind a page I cannot use Profile.Visual Studio is just saying the Profile is not known in the current context.Thus I cannot do

Profile.Name = ....
x = Profile.GetPropertyValue(....)

View 13 Replies

Security :: Using Profile Shopping Cart Property With Web Application?

Mar 15, 2010

I know how to use Profile Shopping cart property with Web site but i can't use it with web application

if you can refere me to any post explains how to use Profile Shopping cart property with Web application.

For example if i used this code in web application does not work but it works in website!


View 1 Replies

Security :: Delete A Property Of The Logged In User In Profile?

Feb 12, 2010

I need to delete the user email once user is loged in and clics Delete Email/ Address/ Tel. I store user information in profile.common


this gets me the current user, next i need to delete this users email/ phone.

View 1 Replies

Security :: Save Custom Property Into Member Using Profile?

Jan 14, 2011

I have been struggling to save custom property data into member using createuserwizard. I add some extra fields into createuserwizard using wizardsteps and What I would like to accomplish is to save extra data of that fields and see that data on admin backend of member section of umbraco cms.

What I have done so far in brief:

Created a user control using createuserwizard and save it to umbraco.

I also added a macro into usercontrol which pulls its data from dropdown list multiple render control data type which has some prevalues.

After selecting values and creating user, none of the selected values of dropdown list multiple render control data type are selected on admin backend but address are successfully saved.

Code behind file:Roles.AddUserToRole(UserName.Text, "BasicUsers");var profile = System.Web.Profile.ProfileBase.Create(UserName.Text);profile["sector"] = Sector.SelectedItem.Value;profile["address"] = Address.Text;profile.Save();

That relevant code snippet above works well like profile["address"] = Address.Text; but I am unable to save with other renders controls as Dropdown list multiple.

View 4 Replies

How To Make A Course Profile Page That Includes Course Syllabus

Dec 5, 2010

im trying to make a course profile page that includes course syllabus, etc. im using querystring to get course id. i can upload course files to course folder like an instructor but i can't list and download the files in that directory.

View 5 Replies

How To Set Readonly Property In Property Method

Jun 5, 2010

how to set readonly property in property method(get and set).

View 2 Replies

Admin Adds Items To Users Profile.shoppingCart?

Mar 10, 2010

I'm using the profile to store a users shopping cart which works fine. I now need a way for the site admins to create a cart, add items and checkout for a particular user.

I'm trying to access the users cart with this: Profile.GetProfile(lblUserName.Text).SCart

I first check to see if the user has a cart and create one if he does not and then add the item to the cart. I'm using the code below but get this error when attempting to add the item:

Object reference not set to an instance of an object.

Here is my code:


View 1 Replies

Security :: Where Is The Right Place For Admin Page In Website

Mar 1, 2011

I am currently designing an ASP.Net web site where does not required any user login on the page. However, I do need to put an Admin page up along with this web page for my client use to manage the content on the page (e.g.: Change Pictures, Updating News). For security reason, I do not want to include a separate page sit reside in the site, so nobody can even try access to the page [URL]

View 6 Replies

Security :: Redirecting User To Admin Page With Username

Mar 4, 2010

I have a directory structure root->admin-> admin operations admin page inherited from a ase page with principla security.demand role = "Admins" i am usinf forms authantication mode. i have also put a web.config file in admin folder, restricting other users. it is working normaly with siteroot/admin. I want to setup a mechanism to admin like siteroot/username/admin I can redirect to page admin but it gives security error, it should redirect to login page instead of if user did not sign in.

View 5 Replies

Security :: Accessing Public Page During Admin Logged In

Jan 9, 2010

access the page on public section of the website from the admin section,while logged in?Or i am causing a security hole,jumping like this?all admin section pages have role based authorization and can not be accessed unless authenticated.Public of course is accessible to anyone.

View 6 Replies

Security :: Admin Login Page To Edit The Contents?

Jul 19, 2010

In my web site I have a admin login page to edit the contents. Is it necessary that the default page has to be the login page..............Because in web.config file , under Authentication of Forms am using loginurl="MyLoginPage.aspx"......So is it compulsory that the Default.aspx =MyLoginPage.aspx.i mean to ask i should not change the name of default page or what?

View 5 Replies

MVC :: Using The AttributeCollection And HTMLTextwriter With Readonly Property

Dec 17, 2010

I am using the AttributeCollection with the HtmlTextWriter objects and want to set the ReadOnly attribute.

It seems everything needs to be setup Attribute="value" but the readonly property just needs the name not ReadOnly=True.

Is there a way to just output ReadOnly with the AttributeCollection instead of ReadOnly=True?

You may be asking why, I don't know how compatible ReadOnly=True would be with older browsers and everything I design is compatible with ie4+.

View 8 Replies

Security :: Best Way To Access A Admin Area Of A Website From The Main Page?

Dec 3, 2010

I have a simple online store where there are products that can be put into a cart and purchased. There is a admin page that can be logged into so that new products can be added or existing products can be removed or edited. To get to the admin area I need to put a /admin/index after the main page loads up. If I want to give my friends (from any location) the ability to add new products should I create a link to the admin area on the main page (like at the bottom) of the main page or should I just tell them to type in /admin/index after they go to the webpage?

View 3 Replies

Security :: How To Use Login Control (with Xml) To Limit Visitors To Admin Page

Jan 9, 2010

I've set up a login control on a Login.aspx web page, which is authenticated using xml.

How do I stop people visiting my admin.aspx page when they are not logged in?

View 2 Replies

Security :: Simple Admin Authentication With Login Page And Web.config

Mar 31, 2011

i want a simpe login systemm using webconfig file and one login.aspx page.

View 3 Replies

Security :: Finding Sample Admin Page For Managing Users And Roles

Nov 9, 2010

Can anyone point me to a sample admin page for managing users and roles (forms authentication). Something like the security section of the WSAT, but for a finished site.

View 3 Replies

Security :: Creating A Profile For A New User Is Updating Other Profile

Feb 4, 2010

I am logged in as user1, and while creating a user in which I have additional information which would store first and last name into the profile database. I have the following code


But because I just have profile like that, it is updating the profile of user1 not the new user i just created


View 5 Replies

Security :: Unable To Use Profile In .aspx.cs Page In .net 3.5

Nov 12, 2010

I'm trying to use Profiles so I could get/set FirstName, LastName for users. I have installed the tables (from aspnet_regsql tool, that also installed membership), the web.config looks like this:

<profile defaultProvider="AspNetSqlProfileProvider" enabled="true">
<!--<clear />-->
<add name="AspNetSqlProfileProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=, Culture=neutral,


The problem is that I have no idea how to get/set FirstName, LastName. I'm reading from Apress book (Beginning ASP.NET 3.5 From Novice to Profesional), they say simply write: Profile.FirstName ..... but when I write Profile intelisence doesn't display, it displays ProfileManager and the like.

View 3 Replies

Web Forms :: Allow Users To Update The Records For The Textboxes With Readonly Property Set To True

Apr 12, 2010

In my application, users are allowed to enter values into textboxes only from popup windows, so i have set the textboxes to readonly=true; this works fine for me until the first the record is saved. when the record is retireved from database and user updates these textboxes from popupwindows and tries to save the record, the record is never updated, i know the reason because textboxes with readonly cannot be changed on the clientside.

how to allow users to update the records for the textboxes with readonly property set to true.

View 4 Replies

Forms Data Controls :: How To Locate The Readonly Property In A Gridview At Run Time

Feb 21, 2010

I am trying to set the readonly property for the columns of a latebound gridview.

My data source is a select SPROC which returns a lookup group of records.

The gridview control is bound when the page loads.

The gridview has an edit control and I would like to allow the editing of specific records.

I cannot find the readonly property of the row columns to set.

I tried this :


View 2 Replies

Web Forms :: How To Use Scriptlet To Access Public Class's Readonly Shared Property

Aug 14, 2010

I have made public readonly shared properties in my class.

I want to acces a property's value in .aspx page. As i think that is possible through scriptlet like this

<%= ClassName.Propertyname %>

But its not working .Where i am wrong ?

View 5 Replies

WebMatrix :: Security And Authentication - Register Profile Page

Mar 26, 2011

I have a profile page that sends my users, once they register to a profile page which basically allows them the edit their profile. I use

your profile</a>

But what i noticed was: When the user goes to the profile page in the url is their account ID. if i change that id for example [URL] to [URL] then i can edit the other users profiles. Im using WebSecurity.RequireAuthenticatedUser(); But im guessing i need to use RequireUser(String)?? To be honest im just lost maybe i need a ( if xxx is IsCurrentUser )?

View 4 Replies

Web Forms :: How To Make Panel-contained Textbox ReadOnly

Jan 24, 2011

I've got some textboxes in a panel, that I want to disable client-side upon radio button selection. I've got it basically working - but I discovered that javascript's control.disabled = true still allows the user to type in the textbox. So I've moved on to control.readOnly (in addition to disabled) - that seems to give the result I want.

Problem is, setting readOnly at the panel level doesn't seem to propagate down to the contained controls (the textboxes). I still have to call textbox.readOnly directly in order to get the no-typing-allowed result I need. And this makes the whole panel-concept useless for me in this instance.

Am I doing it wrong somehow, or is this just the way panels work (i.e., can only make textboxes readOnly by directly manipulating its property)?


View 1 Replies

How To Make A Readonly Text Box Editable On Mouse-over Using J Query

Aug 15, 2010

I have a read-only text-box with text in it. How to make it editable on mouse-over using J query ?

View 1 Replies

Copyrights 2005-15, All rights reserved