Web Form Controls Database Access

Discussion in 'ASP .Net Web Controls' started by Bill, Oct 12, 2003.

  1. Bill

    Bill Guest

    Greetings,

    I'm wondering if someone can give me a clear and concise
    example of how to bind my controls on a web form to a
    datasource.

    The simple binding option in the databindings doesn't
    seem to work. I'm getting an error that specifies that
    my datasource object hasn't been declared.

    ** This is what I'm doing currently. **

    Private Sub Page_Load(ByVal sender As System.Object,
    ByVal e As System.EventArgs) Handles MyBase.Load
    Dim dscompliancec1 As dscomplianceC

    SqlDataAdapter1.Fill(DscomplianceC1, "t_loan_doc")
    If Not (Me.IsPostBack) Then
    Me.DataBind()
    End If
    End Sub


    Private Sub ShowCompliance(ByVal USALoanNum As
    Integer)


    End Sub


    Private Sub btnSave_Click(ByVal sender As
    System.Object, ByVal e As System.EventArgs) Handles
    btnSave.Click

    SqlDataAdapter1.Update(dscompliancec1.t_loan_doc)
    'DscomplianceC1.t_loan_doc.BeginLoadData()
    'DscomplianceC1.AcceptChanges()

    Dim Comp As New dscomplianceC

    Me.txtBLName.Text = ""
    Me.txtBFName.Text = ""

    Any assistance would be greatly appreciated.
     
    Bill, Oct 12, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joachim Feldt
    Replies:
    2
    Views:
    685
    Matt Berther
    Nov 1, 2004
  2. Replies:
    2
    Views:
    1,802
    Patrick.O.Ige
    Aug 1, 2006
  3. Nathan Sokalski
    Replies:
    5
    Views:
    1,031
    Gaurav Vaish \(www.Edujini-Labs.com\)
    Jan 10, 2007
  4. Nathan Sokalski
    Replies:
    4
    Views:
    306
    Nathan Sokalski
    Dec 21, 2006
  5. Nathan Sokalski
    Replies:
    4
    Views:
    344
    Nathan Sokalski
    Dec 21, 2006
Loading...

Share This Page