help please?

Results 1 to 2 of 2

Thread: help please?

  1. #1
    Join Date
    Dec 1969

    Default help please?

    hi friends,<BR>i need to delete the specific no. of records by selecting the checkboxes and when i click the delete button .If any one have idea about it please help me.<BR><BR>thanky<BR>bye

  2. #2
    NPKumar Guest

    Default RE: help please?

    Hi,<BR>first set the check box as follows.Value should point to the Unique record Id in the table.Use action as the same page with quesry string variable st=1.<BR>&#060;input type="checkbox" value="&#060;%=Rs("ColID")%&#062;" name="txt_xxx"&#062;&#060;/td&#062; <BR>and try to put the following code at the beginning of the page.this is the workingcode.If u have any doubts contact at<BR>&#060;%<BR>dim Conn<BR>set Conn=server.CreateObject("ADODB.Connection") <BR>Conn.Open Conn_Str<BR>if Request.QueryString("st")="1" then <BR>dim i<BR>for i=1 to Request.Form("txt_xxx").count<BR>Conn.execute("del et from xxx where ColID="&Request.Form("txt_xxx")(i))<BR>next<BR>Res ponse.Redirect "samepage.asp"<BR>end if<BR>%&#062;<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts