2
Answers

check particular cell value and not insert again new value

Hi,
    In my database I have 3 columns ie., Id,Name,Subject(Marks).I inserted records as 1,Sai, 20.
         When I am trying to insert new marks to the Sai ,it won't accept new marks to the Sai.
          That means I want to restrict to re-enter the marks for particular record and it allows only one time to enter marks..
           How to write code for this.. ??
 
          
Answers (2)
0
Reena Sajith

Reena Sajith

NA 88 0 18y
Hi, why r u assigning the string line with first and second line at a time /Read the 1st line of recycle.txt string line = sr.ReadLine(); //Read the 2nd line of recycle.txt line = sr.ReadLine(); //Read the 1st line of objectRef.txt string line2 = sr2.ReadLine(); //Read the 2nd line of objectRef.txt line2 = sr2.ReadLine(); here line,line2 will have the second lines from both the textfiles what is the logic