Title: Databind auf Label und textbox von Dataset

Hallo, folgendes Problem,

Ich hole mir Daten mit folgendem Aufruf:

        'Declare variable for the dataset
        Dim DS As DataSet

        'Declare variable for the SQL-command
        Dim MyCommand As SqlDataAdapter
     
        'Open the connection to the database
        MyConnection.Open()

        'Create new SQLDataAdapter
        MyCommand = New SQLDataAdapter()

        'Build the SQL-command statement
        MyCommand.SelectCommand = New SqlCommand()
              With MyCommand.SelectCommand
          .Connection = MyConnection
          .CommandText = "sp_Get_Elements_By_ID"
                .CommandType = CommandType.StoredProcedure
          .Parameters.Add(New SQLParameter("@ID", SQLdbType.Int))
                .Parameters("@ID").Value = Request.Params("ID")
              End With

        Try

          'Create and fill the dataset
          DS = New DataSet()
          MyCommand.Fill(DS, "Objects")

Ich m�chte jetzt einen SpaltenWert aus diesem Dataset auf folgende Elemente:

  Protected WithEvents ElementLabel as Label
  Protected WithEvents ElementField as Textbox

Legen.

Wie geht das?

Danke
Marc

| [aspdedotnet] als [email protected] subscribed | http://www.dotnetgerman.com/archiv/aspdedotnet/ = Listenarchiv | Sie k�nnen sich unter folgender URL an- und abmelden: | http://www.dotnetgerman.com/listen/aspDEdotnet.asp

Antwort per Email an