C# - Let Users Edit List <T> Content?
Apr 7, 2010
I'm making an aspx page that can edit books. A book is an complex class with lots of properties.
I've made an edit page for most of them, however I'm having trouble with showing edit options for my Sellers Proprety. It is an list<Seller> object.
Seller is as follows:
public class Seller
{
private string sellerName;
private double price;
}
How can I print a list to the screen, and let the clinet edit it, then load it back to the object?
View 2 Replies
Similar Messages:
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
Sep 16, 2010
Just wondering how to implement a user's list into website ? im using ASP.NET C#. I want to be able to:
add/delete usersadd/remove roles
View 2 Replies
Apr 7, 2010
Technologies involved:
ASP.NET Web-forms
Javascript (jQuery for instance)
Case,To make it clearer let's give the Stackoverflow Users list as an example. This list can be manipulated at client-side. I can search, page and so forth. So obviously we would need to call jQuery.ajax to retrieve the HTML of each page given a search. Alright. Now this leaves me with the first question:
What is the best way to render the response for the jQuery.ajax at server-side? I can't use templates I suppose, so the most obvious solution I think is to create the HTML tags as server-controls and render them as the result of an ASHX request? Nice. That solved we have yet another problem:
When the user first enters the Authors List the first list page should already come from the server completely rendered alright? Of course we could render the first page as well as an ajax call but I don't think it's better. This time I CAN use templates to render the list but this template couldn't be reused in case 1. What do I do?
Now the final question: Now we have 2 rendering strategies: 1) Client and 2) Server. How do I reuse code for the 2 renderings?
View 2 Replies
Jan 19, 2010
Is there any good solution to maintain listing conditions such as page#, search text when navigates from list -> edit -> list ?
When goes to edit it just pass id as below and lost whole listing condition.
<%= Html.ActionLink("Edit", "Edit", new { id = id })%>
View 2 Replies
Sep 14, 2010
I am trying to implement a page for an admin to edit other users details including roles and profile. I have a custom profile provider that stores data in database. My implementation is a page that shows username and allows an admin to reset user password, unlock users and approve and disapprove the users. I wanted to add a column in the gridview to allow the admin to remove or add a user to a role with the constraint that a user should be added only to one role.
View 1 Replies
Jan 27, 2010
I have a listbox in the formview. The listbox has selectionmode = multiple. The previous programmer has setup such a way when a user selects multiple items in the listbox, the data are stored with comma delimiter. For example, Listbox have values A, B, C, D, E. If user selected A, C, E and the data are stored in a field as A,B,C. Now the business requirement has changed and the user should be able to edit the data they entered. I want to able to show user which data they selected when they inserted data i.e. In the edit mode, the listbox should have A,C,E as highlighted. How can I do that? I can not use Eval("fieldname") because the listbox can not find the data "A,C,E" in the available listitems.
View 4 Replies
Oct 26, 2010
I need to develop a page in my applicaiton like the image for the user lists.
I need to get the list of users under a group and need to show likw this.
View 4 Replies
Nov 10, 2010
I am creating an ASP.NET site, based on a single master page which creates the header and footer of the page. On each page there is a content placeholder where I want to allow certain users to manage in order to place their own content. On the site I am replacing, they are using sharepoint designer 2007 to connect to the site and edit the pages visually; now I just want them to edit the contentplaceholders content.
My problem is I can only see the anonymous template in sharepoint designer 2007, where I of course don't have any placeholders. If I could get it to show the loggedin template that would solve my issues, but if that's not possible, is there any other existing tool out there to do this with an ASP.NET site?
My fallback plan is to use the codebehind to fetch from an SQL table; they can create the content area in a WYSIWYG editor, and then I will build a tool for them to insert it to the database, but I don't like it as it complicates the process & I figure there must be an easier way.
View 8 Replies
Nov 3, 2010
How can I allow non-sysadmin users to create/edit a SSIS package? Do I need to give special permissions?
View 6 Replies
Jun 9, 2010
how to create user logins using SQL database and I have a project in mind. ASP.NET is new to me and I utilize C# as my programming language of choice. What I would like to do is create a login page for users and allow them to upload video and pictures to their profile. Also, I would like to have my own admin login to edit the main content for my website. Is there a tutorial that I can use to learn this skill?
View 3 Replies
Mar 3, 2011
we want to have a fronend to a custom databasince, since I do have experiance with HTML/CSS and have used VB.NET before, I'm the one that gets to make it.
problem is, the one thing I have not used before is the autentication system in ASP.NET, I want to use single-signon for the system.
and I do have this right now, the only problem I have is how do I check if a user is logged in, and change the page content for autenticated users.
the template does have this:
[Code]....
which does indeed change the login view, problem is, how do I change this to change the pages and menu.this:
[Code]....
has to be a longer menu that also gives options to insert data into the database and/or remove/update the data.
View 3 Replies
Mar 16, 2010
I have been developing a job tracking system in asp.net VB I have used the users/roles system for user access each role has their own area within the system
Admin
User
Design
Translations
After a user logs in to the system they can create a new job, after a job has been created I would like a notice sent to the admins (new job in system) with the job id or name etc, on the form for the job I would like to have a radio box accept reject if the job is accepted it will send and email / notice to the design team to say their is a new job and another notice/email to the user to say the job has been started I have configured email in my web.config file for retriving forgotten passwords, I have not done anything with messaging or email before and I only have a month to impliment this if it is possible at all
View 5 Replies
Mar 21, 2010
I want to allow user to edit page content , so i used web edit but when user choose image i what to upload it to specific path .
View 3 Replies
Jan 6, 2011
Is it possible to edit the content of a view from a action filter.
What I am working on is a Resourcemanager that I can use to manage
my style sheets, js and other resources. I want to be able to put
lines in the the view any where like Html.ResourceManager.AddScriptFile("MyScript")
or Html.ResourceManager.AddCSSFile("MyCSS")
and at the end of the view call Html.Render(); this would then place the content of my resources at this point. My problem is that I want to put the CSS stuff at the top of the view, but them problem is that it is renderend at the end of the view, so I tought that I could use a ActionFilter to move it to the top of the view.
1) What would be the best way to do this task ?
2) Is there any resources that describe the way that the MVC framework works in more detail ?
View 2 Replies
Apr 9, 2013
How to allow users to view content .give permission to user to view specific content only .
View 1 Replies
May 17, 2010
I would like to know if it is possible to force the update of a gridview from a javascript function..
By now, I'm doing a XMLHttpRequest to obtain some values and processing them in javascript..
But now I need to display these values in a grid, too.. And I was thinkin in create a gridview filled in server side with an objectdatasource, and forcing the refresh of the grid from javascript.
Is there any way to do this? Or maybe would be better to edit the grid content from javascript?
View 2 Replies
Mar 11, 2010
Is it possible to remove an item from the master page when within a content page? so in my example i have a column on left and right which i have created in the master using divs but i want to remove them in a particular page
View 5 Replies
Nov 30, 2010
How can I edit a gridview row in different page?
View 1 Replies
Jan 31, 2011
Im looking to improve performance on my site and would like to implement OutputCaching for a number of actions on my controllers. The main problem is when administrators navigate to an action with an output cache specified I need to ignore the cached content and execute the action.
Is there a way I can configure the OutputCahing mechanism to not deliver cached content for specific users if they are authenticated and a member of a specific role?
View 2 Replies
Feb 27, 2010
How do I retrieve list of Active users (with account ids) in IIS 6.
View 2 Replies
Jan 23, 2011
I have a page in my application which always shows updated list of online users. Now, to keep the list-which is stored in application object- updated, i do the below steps
add user to list when login remove user on log off Then to handle browser close/navigate away situations, I have a timestamp along with the username in the collectionAn ajax call every 90 seconds updates the timestamp.
The problem:
I need something to clean this list every 120 seconds to remove entries with old timestamps.
How do I do this within my web application? ie Call a function every 2 mins.
PS: I thought of calling a webservice every 2 mins using a scheduler , but the hosting environment do not allow any scheduling.
View 2 Replies
Jun 22, 2010
I need to know to get current online user list. How can I achieve. I am using membership concepts that is asp login control.
View 1 Replies
Aug 18, 2010
I have a ASP.NET Website project and I need to list all the users and their groups on my Windows system. I have set the identity impersonation to true and provided the username and password of the admin in the web.config. Where do I start?
Update:
I have the following code at the moment -
var machine = new DirectoryEntry("WinNT://<IP ADDRESS>");
foreach (DirectoryEntry child in machine.Children)
{
// get the child's group(s).
}
When I debug, I can see the list of users in machine.Children. How do I find the group(s) that this user belongs to?
View 2 Replies
Mar 2, 2011
How can I get a list of users from active directory? Is there a way to pull username, firstname, lastname? I saw a similar post where this was used:
PrincipalContext ctx = new PrincipalContext(ContextType.Domain, "YOURDOMAIN"); I have never done anything with active directory so I am completely lost.
View 3 Replies