Solved

Add GUID parameter to ObjectDataSource

Posted on 2007-03-24
1
813 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

630 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