Solved

Invoking stored procedure from InsertMethod of datasource linked to detailview

Posted on 2006-07-08
5
225 Views
Last Modified: 2008-01-09
Hi

Up until now I've been invoking stored procedures from within my own methods and feeding the results to non data-bound controls. Now I want to have a go at getting it to work with a datasource and detailview in insert mode. The thing is I can't figure out how I can do this easily. I've trawled the documentation and it's scant in this area as far as I can tell.

The scenario is this:

I have a stored procedure which validates input, checks for duplicates and goes through other data rule validation and, if OK, returns a success code and an identity value in an output parameter. If it fails, returns a failure code.

So, is there an easy way to hook this up to the automated features of a datasource/detailview combination and handle the results or do I have to programmatically handle it all?

Thanks.
0
Comment
Question by:PureNuts
5 Comments
 
LVL 7

Accepted Solution

by:
irps20001 earned 500 total points
ID: 17070760
Seems to me that you would like to customize your gridview based on your requirements. I would suggest you to use Object DataSource.
HTH
Rana
0
 

Author Comment

by:PureNuts
ID: 17071339
The ObjectDataSource does seem to fulfil my objectives. Thanks.

Is there any overhead involved in using business objects?
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now