I am using a 3 tiered architecture for my system. I am creating an object for a class, and then pass it through the DataAdapter to the database. Everything working fine! Good.
Now I want to try out FormView server control, as i will be using the form quite often and also to view the entries into the table from the admin side of the system. Is there a way to access the same object through this particular server control?
Hope this makes sense!
thanks.
If you've got say a GridView and a FormView on the same page, they will need separate ObjectDataSource controls but these data sources can both use the same business layer object.
The thing is that when i try to define the object data source, it only allows me to accept an object as a parameter, as in the adapter class, i pass an object. so do i have to write another adapter class for form view which accepts individual parameters, or am i missing something?
btw i am just using a single form view on the page, and no gridview, if this helps narrowing down the confusion for me.
problem solved! i managed to convince myself that formview is for Update/Delete/Insert into a database and not just Insert.
If i am wrong, someone can enlighten me please!
0 comments:
Post a Comment