Solved

Add GUID parameter to ObjectDataSource

Posted on 2007-03-24
1
775 Views
Last Modified: 2013-11-07
Anyone know how to add a GUID parameter in the code-behind to an objectdatasource?
0
Comment
Question by:Skytide
1 Comment
 
LVL 9

Accepted Solution

by:
noulouk earned 500 total points
ID: 18787826
Hi Skytide,
You can do like this:
ObjectDataSource1.InsertParameters.Add(new Parameter("id", TypeCode.Object))
ObjectDataSource1.UpdateParameters.Add(new Parameter("id", TypeCode.Object))
ObjectDataSource1.DeleteParameters.Add(new Parameter("id", TypeCode.Object))

TypeCode.Object is used to send the GUID parameter.
Regards.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
imap mails 1 23
Disable Security Alert  popup in Winforms  embedded webbrowser. 1 30
vb.net 1 month apart 11 30
Help with preventing selection from a combobox 11 26
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

810 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