Problem with objectdatasource with method with object for parameter

  • Thread starter news.eternal-september.org
  • Start date
N

news.eternal-september.org

hi all,

i have in a my page (asp.net c#) a objectdatasource in binding with my
business object.

I've created a method with parameter follow the example found in
http://msdn.microsoft.com/it-it/library/system.web.ui.webcontrols.parameter.aspx


web page have a listview control vith a DropDownList (ddl) control and a
text box

when i select an item of ddl this change a text value in Text control:

1) if ojectdatasource use method without parameter the page call only
method on ddl and return to webbrowser (text control have the new value)

2) if ojectdatasource use method with parameters the page call the
method of ddl, then call the Select method of object datasource and
therefore clear the page to the original value (text control have no value)

page, objectdatasource , listview, ddl and text control have viewstate=true

any suggestion to resolve the problem?

Thanks many
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top