Last post Jul 21, 2008 02:20 PM by polynaux
Jul 21, 2008 12:38 PM|polynaux|LINK
I wonder if it is possible to fill individual textboxes with the columns I have obtained from my objectsdatasource.select (returns just 1 row,---always).
So if I do:
Is that possible?
Jul 21, 2008 12:52 PM|bmains|LINK
Not exactly, but why not just use a FormView, as that works with one record data...
Jul 21, 2008 12:59 PM|anas|LINK
Why you don't call the object methods directly without a datasource ?
Dim Obj as Customer=CustomerDal.GetById(CustomerId)
Jul 21, 2008 01:07 PM|polynaux|LINK
@bmains when I use the FormView I have to fight with thousands of erros like "declare scalar variables", "string cannot
be truncated" and loads of stuff.
so I want build my own formview with textboxes that are loaded with this data, edited and then
I know how to use the objectedatasource.updateparamters("xx).defaultvalue to update my database through
thanks for this quick way to fill my textboxes in the first place. the thing is that I have no idea
what you provide.
what is customerdal? why getbyid?
when I copy your code into my project it starts with "customer is not defined"
I can import my dataset with
but thats all I have figured out so far.
Jul 21, 2008 01:14 PM|bmains|LINK
Anas is talking about building layers; check out the first two tutorials on this site:
Also check these out:
Jul 21, 2008 01:20 PM|polynaux|LINK
wow, thanks bmains.
but I wasn't really asking "how to built a three tier architecture in .net ?". I am just looking to bind my datasource row result to a textbox.
I am trying it via the repeater control now
Jul 21, 2008 01:33 PM|anas|LINK
If the Obejct type is DataSet Or TypedDataSet , then this could work
TextBox1.Text = dv(
TextBox2.Text = dv(
Jul 21, 2008 02:20 PM|polynaux|LINK
that works, thanks