Solved

Add GUID parameter to ObjectDataSource

Posted on 2007-03-24
1
752 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

5 Experts available now in Live!

Get 1:1 Help Now