.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Show Modified By field On EditForm?

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#

Hey all,

I need to modify the EditForm to show who has modified each item, is this possible? Basically I want to show the same sort of items as are displayed on the version history page.

So if I have....

Field 1

Field 2

Field 3

Next to those fields, I want to show the ID of the person who modified them. Thanks for any help!

View Complete Post

More Related Resource Links

Client Object Model - cannot retrive "Modified By" field value

Hi, I am using Client Object Model to get all items from a list and display theme with "Modified By" information. Everything works nice until I start using test users. I have noticed that for user who is in Domain Admins group i have no problem for others I cannot read "modiefied by" field value. var context = ClientContext.Current; activitySPList = context.Site.RootWeb.Lists.GetByTitle("Activities") activityItems = activitySPList.GetItems(CamlQuery.CreateAllItemsQuery()); context.Load(activityItems); context.ExecuteQueryAsync( ClientRequestSucceeded, ClientRequestFailed ); All items in activityItems collection doesn't have "Modified By" fields. Do you know why and how to fix it? Thanks for your help.

Team Discussion Modified by field not working

Hello, I have a team discussion board set up which uses a threaded format. However, my issue is with the Modified by field. I believed this would show me the last user that had replied to a discussion but the field continues to display my user name since I was the creator of the discussions in the first place. Am I using the wrong field? Something tells me that the columns I have to choose from are all in regards to to discussions and not to the message replies themselves. In the end, I'm looking for something very similar to your forums here. Discussions should be displayed with title, created by, timestamp, last user who replied and timestamp.Beth Singley PBM Graphics

A customized EditForm.aspx page giving error because it has a "People and Group" field with a "Allow

My customized EditForm.aspx which has a "People and Group" column with the "Allow multiple selections" property as "Yes" was working fine until the Agusust cumulative update was applied into the MOSS server. Now it's giving me the error: "An unexpected error has occurred". Needless to say, when I change the "Allow multiple selections" property to "No", the customized EditForm.aspx page works fine.Forgetting whyMicrosoft introduced this error for now, is there a workaround that you are awre of?

Only show text from database if field is not empty

 Hoping someone can help. I am using ASP.NET VB and i am wondering how to only show text from database if data exists. I tried this but it does not work.Any help would be greatly appreciated.I am new to .NET, in the past i have always used classic asp. 1 <td valign="top" style="border-right: 2px solid #031992"> 2 (<%# Eval("VenderPhone1") %>) <%# Eval("VenderPhone2") %>- <%#Eval("VenderPhone3")%> 3 4 <% If String.IsNullOrEmpty(Trim("VenderAlt1").ToString) Then%> 5 <br />(<%#Eval("VenderAlt1")%>) <%# Eval("VenderAlt2") %>- <%#Eval("VenderAlt3")%> 6 <% End If%> 7 <% If String.IsNullOrEmpty(Trim("VenderFax1").ToString) Then%> 8 <br />(<%# Eval("VenderFax1") %>) <%# Eval("VenderFax2") %>- <%#Eval("VenderFax3")%> 9 <% End If%> 10 11 </td> 12   

How to retrive client name ,Field , and Image from Database and show in datalist?


hi experts,

i wanat to display Client Name, Field and  image in datalist. Stored Procedure like this

ALTER proc [dbo].[get_clients_services]
SELECT     Clients.ClientName AS Client, Fields.FieldName AS Field, ServiceType.ServiceType AS Services, ServiceType.Servicelink AS Link, 
                      Clients.ClientLogo AS Logo
FROM         Clients INNER JOIN

How programmatically change Additional Column Settings - Show field?


Hello. I use the SPFieldUser in my list. I can change Additional Column Settings - Show field: "Name with Presense" on the "Name (with Picture and details)" using the WSS Web interface. How do it programmatically, using Object Model WSS?

Content Query Webpart to show edit item link field in SPS2010


I have a Content Query Webpart in SharePoint 2010 that I would like to surface Documents grouped by content type. I wish to show the edit form or view Properties link as part of the fields shown in the results. When the User clicks on this link, it should take him to the edit form or view Properties page for the document.

Any ideas?

New added field in newform.aspx doesnt show in disp.aspx



I have added a new field in my newform.aspx ,called Customer. Its dropdown list bound to sql db.

It works fine and is populating list of customers but the value chosen here is not showing up in dispform.aspx page.

I m just completely stuck. Any suggestions please.

With sharepoint designer EditForm.aspx set a field to read only


Have a field I want to show the value but not let the user edit value. I have seen other post posts that say set the field to read only but can some get me an example. Here is the current field data

<td width="400px" valign="top" class="ms-formbody">
       <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Title" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}" DisableInputFieldLabel="False"/>
       <SharePoint:FieldDescription runat="server" id="ff1description{$Pos}" FieldName="Title" ControlMode="Edit"/>

How do a change the above to a read only value?


Restict access to page fields. How to show field value to members of certain group?


I have the fields that should be shown for members of one group. How to implement this behavior?

Also i need to restrict access to editing other field for all except of limited amount of persons. How to do this?


All these questions are related to Site Content Types and Page Layouts.

Only date is displayed in modified column. How do I get it to show time also?


I can't find out how to set the format for this column in document libraries. I have seen the column also display time so I know it's possible.



show customized groups in series field in a stacked bar chart



Here I have one doubt, need your help.

I am creating a stacked bar chart in report designer, and I have created the Dataset.

For instance: I drag and drop Count to data field, year to the category field, createdby to the series field. Now I assume that createdby have values: v1,v2,v3,v4,v5,v6. I want to group v1,v2 into Value1, and show in green color; meanwhile group v3,v4,v5 into Value2, show in red color. and do not show v6.

In the final stacked bar chart, I want only Value1 and Value2 shown in series field.

Can you tell me how can I filter v6 and create the two groups? thanks!


Connie Zhu

"Modified By" field incorrect

Hi All,

I've just noticed that when I check the version history of a list item the Modified By field is incorrect. It appears to be always set to the person that created the item. Has anyone else seen this? Does anyone know how to fix this?

- Claire

sharepoint 2010 binary field Property Not Editable: This property can only be modified by an adminis


I have added a binary property to the user profile. I update this field from a piece of c# code.
I get the error "binary field Property Not Editable: This property can only be modified by an administrator"
When I alter the service application and ad my account to the administrator group it works. The problem is that
I have to grant every user this right for this to work. Can anybody help me for this code to work without
having to add all the users to the service application administrators group?

My code is posted below. Have tried with and without elevated privs.

            SPSite site = EnsureMySiteContext();

                site.RootWeb.AllowUnsafeUpdates = true;

                var serviceContext = SPServiceContext.GetContext(site);

Attempt to update Modified field with UpdateListItems() return 0x81020030


I have written a custom migration tool using SharePoint web services to move SP content from 2003 to 2007. I'm using solution suggested by Steve Curran 



to set the tp_Modified field to Read_Only="False", update the Modified field with UpdateListItems(), then set back to Read_Only. This solution is working perfectly for SharePoint Versions and However moving to a new SharePoint instance, 12.0.06545, the call to UpdateListItems returns 0x81020030. ("Invalid file name"). This fails only for document libraries.





report builder 3.0, how to show a int type field(like id) in matrix format report


it always asking for the aggregate or sum, count ... I just want to show plain value like

1 myval1 myval2 myval3

2 myval2 myval2 myval2

not lile

(blank) myval1 myval2 myval3

(blank) myval2 myval2 myval2

2       (blank) (blank) (blank)

RDLC Group Header to show the first not null value of a field.


I have a group header that's generated from a Field that comes from the database.

Like this: 


Cab04R	Val04R	Cab05R	Val05R

AV Rec	100,753	NULL		NULL

AV Rec	101,753	NULL		NULL

AV Rec	102,753	NULL		NULL

AV Rec	103,753	NULL		NULL

AV Rec	104,753	NULL		NULL

AV Rec	105,753	NULL		NULL

AV Rec	106,753	NULL		NULL

AV Rec	107,753	NULL		NULL

AV Rec	108,753	Ferias Rec	653,675



Where the Cab04 and Cab05 refers to Table Headers and Val04 and Val05 to Table Details.


The thing is, I want that Cab05 to show the first not null value (in this case, "Ferias Rec") and if it is null, no problem I already have a Hidden Expression for that.


Can you help me?


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend