Im doing this Information retrival search engine that search in Doc files for certain terms using Lucine.net Every thing is going fine I get the results search results in an asp:listbox control.
I managed to get the name of the file and the path of it as shown in the figuer below:

// Using
lst_searchResult.Items.Add(doc.Get("title"));
lst_searchResult.Items.Add(doc.Get("path"));
I would like to perform more operation on the listbox selected Items such as
- ( Download Document ) using a button .
- ( Send link Via Email ).
I’m not an expert to be honest with ASP.net , can you please guide me ?
thank you
the
asp:listboxis redered as an<select>html control. The appearance of the select control is dertermined by the browser you are using. The only customization option is to set the border/colors/scrollbar of this control.If you want a more interactive appearance use the
asp:listviewcontrol. With that you can control how one row of the list is rendered. So you can add buttons, links, etc.In code you define a DataStructure like
And then bind a
List<SearchResult>to the listview control.The markup for the ListView could look something like this:
This link shows a bunch of examples on how to use the ListView control:
http://msdn.microsoft.com/en-us/library/bb398790.aspx