After the Repeater control can bind to call did not display data

The existing Repeater control, in data query returns 3 columns, but bound to Repeater with LinkButton shows two column values, then trigger the LinkButton_Click now, a column value use did not show as parameters to other query.

In the bound Repeater, does not show a column's value will be preserved? If yes, how to call?
Is it right? Can only use a DataTable as a data binding agents, and then when the Click event is triggered directly according to the specified value return index called DataTable?

Started by Walker at November 21, 2016 - 5:54 AM

The bound control inside a commd what parameters are used to bind not displayed value,
The displayed value is tied to Text, click on the event will trigger the RP commod what time e.commod before you can get to bind the

Posted by Ronald at November 25, 2016 - 5:57 AM

RP in addition to bind DataTable List can also set

Posted by Ronald at December 01, 2016 - 6:03 AM

<asp:Repeater ID="rep_Payment" runat="server">
    <ItemTemplate>
        <tr class="row">
            <td>
                <%# Eval("td0")%>
            </td>
            <td>
                <%# Eval("td1")%>
            </td>
            <td>
                <%# Eval("td2")%>
            </td>
            <td>
                <%# Eval("td3")%>
            </td>
            <td align="center">
                <input type="button" value="Edit" onclick="onEdit(<%# Eval("ID")%>);"/>
            </td>
        </tr>
    </ItemTemplate>
</asp:Repeater>


<div style="display: none">
	<asp:HiddenField ID="HiddenField_ID" runat="server" />
    <asp:Button runat="server" ID="btn_Edit" OnClick="btn_Edit_Click" />
</div>



<script language="javascript" type="text/javascript">
    function onEdit(itemID) {
		document.getElementById("<%=HiddenField_ID.ClientID%>").value=itemID;
        document.getElementById("<%=btn_Edit.ClientID %>").click();
	}
</script>



Write this you should know?

Posted by Prescott at December 09, 2016 - 6:45 AM

You this is suitable for <input type= "button"./> this button...

There are bound to data do not know you wrote in where? Should be written in OnPreRender.

Posted by Prescott at December 23, 2016 - 7:42 AM

CommandArgument?
I set the CommandArgument='<%#; Container.ItemIndex%> ', you is it right? That is set to Eval ("Id")? And then used directly transfer sender, or e?
My first class.!

Posted by Walker at December 31, 2016 - 7:55 AM

. . . I didn't write in the OnPreRender there, but in the Page_Load, out of time, I start to go to school.

Posted by Walker at January 05, 2017 - 8:55 AM

Is set in CommandArgument ID and RP a rwCommond event inside the e.CommandArgument can access to the

Posted by Ronald at January 11, 2017 - 8:25 AM