Avatar of FinghtingMiao
FinghtingMiaoFlag for United States of America

asked on 

VB.Net DataBind

I am pretty new of VB.Net. I have a question here.
See the code below.
The fronted is a table, and the code behind is doing the data bind. All I need is add 2 more filed to the frontend and bind these 2 fields to database (I already know the 2 new data if from differnet database, i need to link the 2 tables)

But now my problem is I dont know how to find out which table (data source) those fields are bind to?
Dim DI As New DT_DealInformation(Session("pno").ToString.Trim)
DT-DealInformation must be a pre defined class which may contain the database information?
But I dont even know how to locate the place of DT_dealinformation.
I did rearch in entir project but does not show.
Need some advise .
Thanks.
#Region "Bind CTI Space Information"

        Private Sub BindCTISpaceInformation()

            Dim DI As New DT_DealInformation(Session("pno").ToString.Trim)
            Dim dr As SqlDataReader
            dr = DI.GetCTISpaceData((Session("Pno")), (Session("LeaseId")), (Session("Space_Number")))
       

            While dr.Read

                If IsDBNull(dr("RegionCode")) = False Then
                    Me.txtRegion.Text = dr("RegionCode").ToString
                Else
                    txtRegion.Text = ""
                End If

Open in new window

Visual Basic.NET

Avatar of undefined
Last Comment
Nasir Razzaq
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of FinghtingMiao
FinghtingMiao
Flag of United States of America image

ASKER

That is right, I found it there! Thank you !
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Glad to help :-)
Visual Basic.NET
Visual Basic.NET

Visual Basic .NET (VB.NET) is an object-oriented programming language implemented on the .NET framework, but also supported on other platforms such as Mono and Silverlight. Microsoft launched VB.NET as the successor to the Visual Basic language. Though it is similar in syntax to Visual Basic pre-2002, it is not the same technology,

96K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo