Newbie question abount databinding textboxes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to bind a textbox on a webform, using code. A simplified version
is as follows:

Imports System.Windows.Forms
Public Class WebForm2
Inherits System.Web.UI.Page
..........
TextBox1.databindings.add(........)
No matter what I try this always returns
"DataBindings' is not a member of 'System.Web.UI.WebControls.TextBox

I have not been able to find a step by setep example on how to accomplish
this.

Any assistance would be appreciatied.
 
Paul,

I don't have you complete anwer, however you should very good look in the
documentation from what a class inherits.

There are very much ambigious names used by Microsoft and mostly only
because it looks like each other. The most terrible is that in my opinion in
the UI controls and the Winform controls, that makes it often almost
impossible to find something in/on MSDN while it is often very flaw written
what it is.

However when you see the text you see now, you are sure that it is not an
Webform class.

I have as well never found documentation how to bind a datasource in a
winform way on a webform.

I hope this helps anyhow.

Cor
 
Back
Top