Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

How to set value of some parameter in select command in ObjectDataSource?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
misiek - 16 Feb 2006 15:19 GMT
Hi all.

I have a problem with setting value of some parameter in select command
in ObjectDataSource.
This is what I did:
1. I created DataSet in designer using some stored procedure, which
expects exactly one parameter. Also there was a "Return a data table"
method created.
2. I dragged ObjectDataSource to my web page and configured it to use
method I created in pont 1.
3. I wanted to pass value returned by one of my methods as a select
parameter, so I selected None as a Parameter source in designer. I did
it because there was no selection like: value returned by a method.
4. My ObjectDataSource was succesfully configured and then I wanted to
programatically set select parameter to value returned by one of my
methods. Does anobody know how it can be done?

Thanks in advance,
misiek
misiek - 16 Feb 2006 15:40 GMT
My another question is: how to use these methods (queries), which were
created in DataSet Designer: GetData(), GetData(@param1), ...?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.