0
我使用的是DropDownList
不刷新的GridView
像這樣:下拉值在GridView的
<asp:DropDownList ID="drpstatus" Style="outline: 0" runat="server" SelectedValue='<%#Eval("status_value")%>'>
<asp:ListItem Text="Inactive" Value="0"></asp:ListItem>
<asp:ListItem Text="Active" Value="1"></asp:ListItem>
<asp:ListItem Text="Rejected" Value="2"></asp:ListItem>
</asp:DropDownList>
當我第一次綁定它顯示了正確的選擇的值, 但是當我通過另一個網頁表單更改值 並刷新此頁面的值仍保持不變。 我檢查了數據庫;它已更改,但 它在下拉列表中未更改。
你下(!的IsPostBack)結合網格? –