Skip to main content
    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)


            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
            }
     }

// 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

}

 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

}

    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
            }
     }
Source Link
Batistuta
  • 708
  • 1
  • 11
  • 39

Retrieve attachment from list help

 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

}