On the ASPX page alone, is there a way I can use a selectbox to run MVC code without being able to access the compiled server code? The client does not have access to this code so I am trying to do the most basic things for them to avoid having to use the code.
I already tried javascript but javascript can't run codeblocks. So I am trying an asp server control with the event inside a script tag in the same aspx page.
<asp:dropdownlist runat="server" name="myselectbox" id="selectbox1" AutoPostBack="true" OnSelectedIndexChanged="Selection_Change">
void Selection_Change(Object sender, EventArgs e)
{ ...
but it doesn't seem to work. The page reloads but nothing runs in the event. Also I have a MASTER page and am stuck with MVC 2.