Hi anyone knows how to add a button and an on-click method that will do some C# code on an MVC Index View ?
If I simply drop the control, say just a simple button over the View Index then double click on it, it automatically creates the following piece of code in the Markup Index view, which allows me to use C# code which is great !! problem is that it doesn't work !!
<script runat="server">
protected void Button1_Click1(object sender, EventArgs e)
{
TextBox1.Text = "myTest";
}
</script>