Solved

Invoking stored procedure from InsertMethod of datasource linked to detailview

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

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…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

831 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