Solved

Add GUID parameter to ObjectDataSource

Posted on 2007-03-24
1
800 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

734 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