Link to home
Start Free TrialLog in
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

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

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of FinghtingMiao

ASKER

That is right, I found it there! Thank you !
Glad to help :-)