Listbox - selected item to call the class method directly using reflection
<p>I have a problem scenario like this:-</p>

<p>1) Listbox with values like Car, Scooter and Bike. A button to click.</p>

<pre><code>    &lt;div&gt;
&lt;asp:ListBox ID="lst" runat="server"&gt;
    &lt;asp:ListItem Text="Bike" Value="Bike"&gt;&lt;/asp:ListItem&gt;
    &lt;asp:ListItem Text="Car" Value="Car"&gt;&lt;/asp:ListItem&gt;
    &lt;asp:ListItem Text="Scooter" Value="Scooter"&gt;&lt;/asp:ListItem&gt;
&lt;/asp:ListBox&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Invoke" /&gt;
&lt;/div&gt;
</code></pre>

<p>2) Now i have three different class like below:-</p>

<pre><code> class Car
{
    static string getData()
    {
        return "I like cars";
    }
}

class Bike
{
    static string getData()
    {
        return "I like Bike";
    }
}

class Scooter
{
    static string getData()
    {
        return "I dont like scooter";
    }
}
</code></pre>

<p>3) Now on the button click event handler "Button1_Click", i want to call the getData() method based on the selected value from the listbox using the <strong>REFLECTION only</strong>. </p>

<p>Please help me out.</p>
