Question

I have the following code to render the event Titles (the LinkTitle Column) in a custom web part:

<asp:Label ID="Title" runat="server" CssClass="titleStyle" Text='<%#Eval("LinkTitle")%>'></asp:Label><br />

It (the link to the Event List Item) shows up underlined but does not let the user edit.

Is there another way for me to specify it?

Était-ce utile?

La solution

Please consider evolving your other questions rather than posting essentially the same question in different ways:

The LinkTitle and LinkTitleNoMenu fields are special "Computed" fields in SharePoint. They are rendered using the XSL transformation in SharePoint 2010. Please refer to this documentation on the topic: http://msdn.microsoft.com/en-us/library/ff604021.aspx

This is why I recommended that you leverage the XSL rendering system in the other questions to accomplish this task. Otherwise you would use code similar to what I provided in the "an-example-of-databinding-the-repeater-control" question.

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top