1.

Observe the program segment given below carefully and fill the blanksmarked as Line 1 of the server object and Line 2, Line 3 and Line 4 using methods of the RecordSet object for performing the required task.<% DIM objConn, strConn, objRSSET objConn = Server. CreateObject(“ADODB.Connection”)strConn =“DSN=exam”objConn.OpenstrConnSET objRS = Server.___________(“ADODB.RecordSet”) ‘Line 1objRS.Open “Student”, objConn, 2, 2-------------- ‘Line 2 Move the cursor to the end of file-------------- ‘Line 3 to Add a new blank recordobjRS(“AdmNo”) = Request.Form(“AdmNo”)objRS(“Name”) = Request.Form(“Name”)____________ ‘Line 4 to save the record in the databaseobjRS.CloseobjConn.CloseSET objRS = NothingSET objConn = Nothing %>

Answer»

Line 1: CreateObject

Line 2: Movelast

Line 3: AddNew

Line 4: Update



Discussion

No Comment Found

Related InterviewSolutions