troubleshooting Question

Visual Studio Upgrade Question 2003-2005 SQLDATAREADER

Avatar of Dale Massicotte
Dale MassicotteFlag for United States of America asked on
.NET Programming
4 Comments1 Solution273 ViewsLast Modified:
Please ignore the open questions I have outstanding - those I had to solve on my own
I upgraded from 2003 to 2005.
Converting code is difficult I am looking for some help.

This code was created in 2003 version of VS - Please help me convert by using 2005 methods

This code is executed on the ZipCode field textchanged event
        Dim dr As SqlDataReader
        dr = SqlCommand2.ExecuteReader()
        While dr.Read()
            If (dr("ZIPCODE")) = Zip.Text Then
                'fldZip.Text = dr("Zipcode")
                City.Text = UCase(dr("City"))
                State.Text = UCase(dr("State"))
                'fldCity.Text = ""
                'fldState.Text = ""
            End If
        End While
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros