protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
SPWeb web = SPContext.Current.Web;
SPList list = web.Lists.TryGetList(DropDownListSelectCategory.SelectedItem.Value);
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
HyperLink hp =new HyperLink();
// want to display attachent here like hyperlink how do i do that= , i only want to have one attachment for every uploaded attachment
//Example
//Name:Simon
//Age:25
//Attachment: hello.jpg
//Name:Arnold
//Age:25
//Attachment:jebiga.jpg
}
}
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
|
||||
|
|
|
try below function.... just pass SPListItem object to below function, it returns attachment url from list item.
|
|||||||
|
