dropdownlist selected index change cshtml razor syntax RRS feed

  • Question

  • User1732817135 posted

    I am using razor view engine(cshtml) outside of mvc framework. i.e only view is converted to cshtml format.

    I make all database calls using webmatrix and construct cshtml view.

    Although, now i want to fire dropdown list selected change event which will set or fill contents of another dropdown list on the same page.

    Currently I use dropdown list using


    on the selectedindex change of dropdown, i wish to check it's value and then decide on whether or not to populate second dropdown.

    How can I do it in this scenario? Remember, no mvc framework, hence no access to models or mvc specific methods.

    Wednesday, February 11, 2015 7:26 AM