我在Javascript中有一个用于级联下拉列表的代码,但问题是我无法访问C#web中CodeBehind中的数据。
这是我在 javascript :
中的代码<div class="form-group">
<select class="form-control" name="college" id="college" runat="server" oninput="CollegeDepartment()" style="width:300px;">
<option selected>Select College</option>
<option value="College of Engineering">College of Engineering</option>
<option value="CAS">Colpxlege of Arts and Science</option>
<option value="Commerce">College of Commerce</option>
<option value="Education">College of Education</option>
<option value="CICCT">CICCT</option>
</select>
</div>
<div class="form-group">
<select id="department" name="department" class="form-control" runat="server" placeholder="Department" style="width:300px;">
<option value="Department" selected>Select Department</option>
</select>
</div>
我在 aspx :
中有该代码{{1}}
如何访问下拉列表的动态值?