Add GUID parameter to ObjectDataSource

Anyone know how to add a GUID parameter in the code-behind to an objectdatasource?
SkytideAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
nouloukConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.