This is a migrated thread and some comments may be shown as answers.

Delete item

0 Answers 11 Views
This is a migrated thread and some comments may be shown as answers.
Kurt Kluth
Top achievements
Rank 1
Kurt Kluth asked on 18 Feb 2019, 07:23 PM

I have a that lists fax numbers and have it formatted to look like a table.  I would like when they click on the delete.png it would delete out of the database they clicked on.  Should it be done via code behind or via the SQL connection?  Not sure of how to go about this.  


        <telerik:RadComboBox runat="server" ID="_Phone1" Height="100px" Width="450px" DataTextField="FaxNum" DataValueField="FaxNum"
            DataSourceID="DataSource1" EnableLoadOnDemand="false"  DropDownCssClass="exampleRadComboBox" AllowCustomText="true" OnClientLoad="attachPaste" ValidationGroup="Group1"
            Filter="StartsWith" EmptyMessage="Enter fax number or search favorites">
                <li class="col1">Description</li>
                <li class="col2">Fax #</li>
                <li class="col3">Last Sent</li>
                <li class="col1">
                    <%# DataBinder.Eval(Container.DataItem, "Description") %></li>
                <li class="col2">
                    <%# DataBinder.Eval(Container.DataItem, "FaxNum") %></li>
                <li class="col3">
                    <%# DataBinder.Eval(Container.DataItem, "LastSent") %></li>
                <li class="col4"><img runat="server" src="~/images/Delete.png" />
                    <%# DataBinder.Eval(Container.DataItem, "FaxFavID") %></li>
<asp:SqlDataSource ID="DataSource1" runat="server"
    ConnectionString="<%$ ConnectionStrings:FMS_Conn %>" SelectCommandType="StoredProcedure" SelectCommand="Modules.sp_getFaxFav">
        <asp:SessionParameter Name="iUser_Id" SessionField="user_id" Type="String" />

No answers yet. Maybe you can help?

Asked by
Kurt Kluth
Top achievements
Rank 1
Share this question