Solved

Invoking stored procedure from InsertMethod of datasource linked to detailview

Posted on 2006-07-08
5
238 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Calling web service and its methods dynamically 2 43
c# LinkButton OnClientClick 2 34
asp.net mvc input file 2 32
Turn on intranet settings 1 42
AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

862 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

24 Experts available now in Live!

Get 1:1 Help Now