M
Martin Frey
Hello guys,
im new to asp.net and im trying to get me used to it. I've managed to create
webpages with detailviews, databinding and datasources. Adding or inserting
data went very well and, after a while, very fast.
Now i ran into a problem with accessing the data. I need to send an email to
the administrator with the data the user has selected instead of calling the
update method. Everything i've build up via the designer or the wizards.
Created a DataTable with a TableAdapter within a DataSet.xsd and a
DetailsView which is bound via an ObjectDataSource to the TableAdapter.
To send the email i've added a commandbutton to the detailsview and use the
clickeventmethod. But i was not able to get the data in a "clean" way. I
thought the DataTable would be my businessobject, but i have not managed to
access this data via an attribute or method or whatever. At the moment i
solved it with accessing the Controls within the DetailsView directly and
getting f.e. the Text attribute from the TextBoxes. But i have the feeling
that it should be alot easier..? Shouldnt i be able to read the data i need
from a businessobject instead? But i was not able to find a method or field
within the DetailsView or DataSource to get access to such a businessobject.
Would be nice to get some help here.
Thanks alot
Martin
im new to asp.net and im trying to get me used to it. I've managed to create
webpages with detailviews, databinding and datasources. Adding or inserting
data went very well and, after a while, very fast.
Now i ran into a problem with accessing the data. I need to send an email to
the administrator with the data the user has selected instead of calling the
update method. Everything i've build up via the designer or the wizards.
Created a DataTable with a TableAdapter within a DataSet.xsd and a
DetailsView which is bound via an ObjectDataSource to the TableAdapter.
To send the email i've added a commandbutton to the detailsview and use the
clickeventmethod. But i was not able to get the data in a "clean" way. I
thought the DataTable would be my businessobject, but i have not managed to
access this data via an attribute or method or whatever. At the moment i
solved it with accessing the Controls within the DetailsView directly and
getting f.e. the Text attribute from the TextBoxes. But i have the feeling
that it should be alot easier..? Shouldnt i be able to read the data i need
from a businessobject instead? But i was not able to find a method or field
within the DetailsView or DataSource to get access to such a businessobject.
Would be nice to get some help here.
Thanks alot
Martin