Creating an InfoTool for a web application using C# MapXtreme.Net

Products Affected: MapXtreme.NET
Hide details for C# Code:C# Code:
1. Add the InfoToolControl to the ToolbarControl.
2. Select the properties for the InfoToolControl.
3. View the events for the InfoToolControl by selecting the lightning bolt.
User-added image
4. Double click on the InfoRetrieved Event.
5. In the InfoToolControl1_InfoRetrieved method, add the following code:
private void InfoToolControl1_InfoRetrieved(object sender, MapInfo.Web.UI.WebControls.InfoToolEventArgs e)

foreach(MapInfo.Data.ITableFeatureCollection fc in e.Features)
foreach(MapInfo.Data.Feature f in fc)
// It is possible to use either an index or the column name of the information desired to be retrieved

UPDATED:  September 13, 2019