0
如何傳遞這個值:<%#DataBinder.Eval(Container, "DataItem.QuestionsText")%>
,TO提交代碼:順便說一句database.InsertUpdate(String.Format("CALL spSurveyAnswer_Insert('{0}', '{1}','{2}');", selectValue1, txtFeedBack.Text, IneedToPassitHere))
, ,在DataBinder的存在於下面的代碼:通DataBinder的值通過提交按鈕
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
<HeaderTemplate>
<table class="tblcolor">
<tr class="rowcolor">
<b>
</b>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr class="tblrowcolors">
<td> <%#DataBinder.Eval(Container, "DataItem.QuestionsText")%></td>
<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Text="1" selected="true" Value="Item1"/>
<asp:ListItem Text="2" Value="Item2"/>
<asp:ListItem Text="3" Value="Item3"/>
<asp:ListItem Text="4" Value="Item4"/>
<asp:ListItem Text="5" Value="Item5"/>
</asp:RadioButtonList>
在此先感謝...