Delete data in the Repeater LinkButton

2010-06-13  来源:本站原创  分类:DotNet  人气:176 

<asp:LinkButton runat="server" CausesValidation="false" CommandName="Delete" OnInit="LinkButton1_Init" CommandArgument='<%#Eval("id")%>'>LinkButton</asp:LinkButton>

protected void LinkButton1_Click(object sender, EventArgs e)
{
    LinkButton linkButton = (LinkButton)sender;
    string id = linkButton.CommandArgument;
    linkButton.Attributes.Add("onclick", string.Format("return confirm('{0}');", " You confirm the deletion of "+ id + '?  ?"));
    Response.Write(id);
}
相关文章
  • Delete data in the Repeater LinkButton 2010-06-13

    <asp:LinkButton runat="server" CausesValidation="false" CommandName="Delete" OnInit="LinkButton1_Init" CommandArgument='<%#Eval("id")%>'>LinkButton</asp:LinkButton> protected void LinkBut

  • 4.oracle meter management (data types, tables created to delete, data CRUD operation) 2010-03-04

    Fun combat tutorial oracle (next day) Introduction 1. On the section reviews 2.oracle table management √ 3. Basic query √ 4. Complex queries √ 5.oracle database created √ Desired goals 1. Master oracle table management (create / maintain) 2. To maste

  • How to space from the table, "delete" data file 2010-03-17

    This article describes how to delete data files from the database. Because the ALTER DATABASE DATAFILE OFFLINE DROP command to delete data files can easily lead to doubts, so this article introduces the true meaning of OFFLINE DROP command. There are

  • MYSQL in multi-table delete to delete data 2010-07-08

    DELETE to delete multiple tables of data, how to delete multiple related table data? Done in-depth explanation here: 1, delete from t1 where conditions 2, delete t1 from t1 where conditions 3, delete t1 from t1, t2 where conditions 4, delete t1, t2 f

  • Oracle removed the table, delete data, and data recovery 2010-11-15

    1. Delete data in the table are two ways a. delete * from My_Table; b. truncate table My_Table; 2. Delete the entire table drop table My_Table; How to recover accidentally Drop it off the table, in fact, Oracle also has a similar "Recycle Bin" S

  • (Note) Oracle delete data in bulk 2011-05-27

    ORACLE database is running in a process, sometimes encounter the situation to bulk delete data, such as a table of historical data stored in large amounts of data have no reservations to this part of the data deleted. This can take the following to t

  • Oracle removed the table, delete data and restore data 2010-11-15

    1 are two ways to delete data in the table a. delete * from My_Table; b. truncate table My_Table; (2) delete the entire table drop table My_Table; How to recover accidentally Drop it off the table, in fact, Oracle also has a similar "Recycle Bin"

  • delete data recovery method 2011-04-25

    Delete data table - Can only delete the data found. SELECT * FROM AP_BASE_INFO_T AS OF TIMESTAMP TO_TIMESTAMP ('2011-04-25 08:05:00 ',' YYYY-MM-DD HH24: MI: SS ') According to the query out of the need to restore the data back into the INSERT INTO AP

  • (Notes) Oracle delete data in bulk 2011-05-27

    ORACLE database running in a process, sometimes we try to remove the bulk of data, such as a table of historical data stored in a large number of data has not retained, to this part of the data deleted. Following the approach taken in this situation

  • MySQL Delete and Truncate statement to delete data 2011-07-06

    In the insert into the database with the increase of data, found that if id does not delete a row after a row. So to find the relevant information: ------------------------------------- ----------- Dividing line ---------------------------------- MyS

  • hibernate3 bulk update / delete data 2011-08-18

    New Hibernate3.0 the ANTLR-based HQL / SQL query translator, in the Hibernate configuration file, hibernate.query.factory_class attributes used to select the query translator. (1) Select the query translator Hibernate3.0: hibernate.query.factory_clas

  • Restore oracle remove (delete) data 2010-11-01

    A first step, the deleted table to remember the number of records in select count (*) from t1; The second step, delete the table data delete from t1; commnit; The third step is to get the current scn select dbms_flashback.get_system_change_number fro

  • Oracle 10g update or delete data using a cursor 2010-11-19

    In the definition also said that with the for update clause must be used for the data in the cursor result set row share locks on the increase, to prevent other users to perform dml on the appropriate line of action; when the select statement refers

  • sqlite data types keywords and create Modify Delete Data Sheet 2011-03-07

    General data using a fixed static data types, and SQLite uses dynamic data types, according to the value stored automatically determine. SQLite has the following five data types: 1.NULL: null. 2.INTEGER: signed integer, the specific range of numbers

  • Delete data in a database solution to slow 2011-04-16

    Data cleaning to do today, it was found to delete a table of data is very slow, an average of 10 to more than 1s Table A is a need to remove the data, there are a few primary keys and foreign keys, table B has a foreign key pointing to A's primary ke

  • oracle with the delete command to delete data recovery 2011-07-05

    Just do not accidentally delete table data, better to find this. http://hi.baidu.com/kinghmx/blog/item/41ea3551dd6cec521038c2a0.html SCN (system change number), its English spelling is: System Change Number, it is very important in a database data st

  • Transfer: windows error delete data recovery 2010-02-11

    Accidentally, deleted wrong and brought empty the Recycle Bin, and Zaban ah? As long as three steps, you can delete and empty the Recycle Bin to recover your stuff Steps: 1, click the "Start - Run and enter regedit (open registry) 2, expand: HEKEY--L

  • oracle delete data, how to restore 2010-08-06

    1. Flashback query such as: Select * From Table Name As Of Timestamp to_Timestamp ('2009-7-24 18:07:30 ',' yyyy-mm-dd hh24: mi: ss') Where 2. Flash back to the data re-inserted into the machine table, such as: Insert Into table name (Select * From Ta

  • In-depth understanding of the cursor Cursors, fast data search, insert, delete, update 2010-03-29

    1 , Locate the data Search Cursors //by yl [email protected] [email protected] 2008.7.7 [C#] //Create an envelope for the lower right portion of data IEnvelope envelope = new EnvelopeClass(); envelope.PutCoords(508786, 681196, 513033, 684341); // crea

  • Oracle delete duplicate data 2010-02-20

    Encountered a problem today, there is a large target list, probably there are 100w line log data, and will have weekly 5w line increment (the increment will be a one-time import, not real-time increase). But this week, found the data 5w line, some ne