62,046
社区成员
发帖
与我相关
我的任务
分享
protected void Button2_Click(object sender, CommandEventArgs e)
{
int SoftID = Convert.ToInt32(e.CommandName);
long intComm = DBConnection.GetCommand("Delete from Soft where SoftID=" + SoftID + "");
if (intComm > 0)
{
Response.Redirect("Edit.aspx");
}
}
HTML:
<asp:linkbutton id="button“ runat="server" CommandName="Update" visible="false">Update</asp:linkbutton>
'VB.NET
Private Sub rpt_ItemCommand(ByVal source As System.Object, ByVal e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles rpt.ItemCommand
If e.CommandName = "Update" Then
Call_Function()
End if
End Sub