ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Visual Basic
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
How to compare inserted text in (textbox1.text) with 
existing database value in (Sqldatasource1) in visual 
studio 2005 ?
 Question Submitted By :: Saifxk2
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to compare inserted text in (textbox1.text) with existing database value in (Sqldatasource1) in visual studio 2005 ?
Answer
# 1
Dim strValue As String
        strValue = txtValue1.Text

        Dim rstData As ADODB.Recordset
        rstData = New ADODB.Recordset

        rstData.Fields.Append("A",
ADODB.DataTypeEnum.adInteger, 0,
ADODB.FieldAttributeEnum.adFldKeyColumn)
        rstData.Fields.Append("B",
ADODB.DataTypeEnum.adVarChar, 10,
ADODB.FieldAttributeEnum.adFldIsNullable)
        'rstData.Fields.Append("C",
ADODB.DataTypeEnum.adVarChar, 0)

        rstData.Open()
        rstData.AddNew()
        rstData.Fields("A").Value = "1"
        rstData.Fields("B").Value = "Amol"
        rstData.Update()
        rstData.MoveFirst()
        If UCase(Trim(rstData.Fields("B").Value)) =
UCase(Trim(strValue)) Then
            MsgBox("True")
        Else
            MsgBox("False")
        End If
 
Is This Answer Correct ?    2 Yes 0 No
Amol
 

 
 
 
Other Visual Basic Interview Questions
 
  Question Asked @ Answers
 
WHAT IS DIFFERENCE BETWEEN PROCEDURAL PROG. LANGUAGE & EVENT DRIVEN PROG. LANGUAGE?  3
Describe Database Connection pooling relative to MTS ?  1
How can we find out that a recordset is blank (without using recordcount property)?  4
What are the types of validations available in Visual Basic? Infosys2
How many max. number of controls can place in one form (especially visual basic form)? Satyam6
What are the Sequence of events when a form is loaded in Visual Basic?  5
What is MAPI ?  2
What is the difference Between ADO and other data access objects? HCL2
List out controls which does not have events ?  1
What is the difference between a Sub and a Function?  2
Dim x, y as integer. What is x and y data type?  7
What is the maximum no. of forms can include in one project (vb project)? Satyam3
How to trap Data Base Error?  1
how many no of controls in form? Airex-Logistics15
To connect the Data Control with Back end What are all the properties to be set?  1
what is the Need of zorder method?  1
What are different types of cursors in ADODB?  4
What is RdExecDirect?  1
What are the tools available for Debug in VB?  2
What is the difference between a property a method and an event? Give an example of each.  6
 
For more Visual Basic Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com