473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Parameter and Guid

Hello,

I am trying to define an ObjectDataSource parameter that is a Guid:

ObjectDataSource.DeleteParameters.Add(New Parameter("ID",
TypeCode.Int32))

However TypeCode does not have an option of Guid.

How should I do this?

Thanks,

Miguel
Feb 22 '08 #1
4 2640
Hello shapper
Try
ObjectDataSource.DeleteParameters.Add(New
Parameter("ID",TypeCode.Object))
Links
--------------
TypeCode Enumeration
Specifies the type of an object.
http://msdn2.microsoft.com/en-us/lib....typecode.aspx
______________________
Jose A. Fernandez
blog: http://geeks.ms/blogs/fernandezja


On 22 feb, 21:39, shapper <mdmo...@gmail.comwrote:
Hello,

I am trying to define an ObjectDataSource parameter that is a Guid:

ObjectDataSource.DeleteParameters.Add(New Parameter("ID",
TypeCode.Int32))

However TypeCode does not have an option of Guid.

How should I do this?

Thanks,

Miguel
Feb 23 '08 #2
On Feb 23, 2:29 am, "Jose A. Fernandez" <fernande...@gmail.comwrote:
Hello shapper
Try
ObjectDataSource.DeleteParameters.Add(New
Parameter("ID",TypeCode.Object))

Links
--------------
TypeCode Enumeration
Specifies the type of an object.http://msdn2.microsoft.com/en-us/lib....typecode.aspx

______________________
Jose A. Fernandez
blog:http://geeks.ms/blogs/fernandezja

On 22 feb, 21:39, shapper <mdmo...@gmail.comwrote:
Hello,
I am trying to define an ObjectDataSource parameter that is a Guid:
ObjectDataSource.DeleteParameters.Add(New Parameter("ID",
TypeCode.Int32))
However TypeCode does not have an option of Guid.
How should I do this?
Thanks,
Miguel
I tried that and inside my Delete method the ID object is recognized
as a Guid but is empty. It has no value.

What might be wrong?

Thanks,
Miguel
Feb 23 '08 #3
AG
Object data type works.

--

AG
Email: discussATadhdataDOTcom
"shapper" <md*****@gmail.comwrote in message
news:95**********************************@j28g2000 hsj.googlegroups.com...
Hello,

I am trying to define an ObjectDataSource parameter that is a Guid:

ObjectDataSource.DeleteParameters.Add(New Parameter("ID",
TypeCode.Int32))

However TypeCode does not have an option of Guid.

How should I do this?

Thanks,

Miguel

Feb 23 '08 #4
Hi Shapper
Please.. could you write a little more code....we can help you
better ;)
Example.. how do you bind a ObjectDataSource with data?? wich
webcontrol?
______________________
Jose A. Fernandez
blog: http://geeks.ms/blogs/fernandezja

On 23 feb, 00:57, shapper <mdmo...@gmail.comwrote:
On Feb 23, 2:29 am, "Jose A. Fernandez" <fernande...@gmail.comwrote:
Hello shapper
Try
ObjectDataSource.DeleteParameters.Add(New
Parameter("ID",TypeCode.Object))
Links
--------------
TypeCode Enumeration
Specifies the type of an object.http://msdn2.microsoft.com/en-us/lib....typecode.aspx
______________________
Jose A. Fernandez
blog:http://geeks.ms/blogs/fernandezja
On 22 feb, 21:39, shapper <mdmo...@gmail.comwrote:
Hello,
I am trying to define an ObjectDataSource parameter that is a Guid:
ObjectDataSource.DeleteParameters.Add(New Parameter("ID",
TypeCode.Int32))
However TypeCode does not have an option of Guid.
How should I do this?
Thanks,
Miguel

I tried that and inside my Delete method the ID object is recognized
as a Guid but is empty. It has no value.

What might be wrong?

Thanks,
Miguel
Feb 23 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Max Ischenko | last post by:
I'm using adodbapi DBAPI module to access SQL server and trying to pass a GUID parameter with an SQL statement. But it doesn't work: I got "incorrect cast expression" from the ADO. If I paste GUID...
0
by: jason | last post by:
I have the following code in a C# class library method: // GUID VERSION Guid gUserID = new Guid(sUserID); Guid gAuthorityID = new Guid(AuthorityID); oCommand.Parameters.Append(...
3
by: Wayne Wengert | last post by:
Using VSNET2005. I want to insert some rows into a table. Each row has 2 columns, "memberid" which is a GUID and "Interests" which is a varchar. I created a SQLDataSource with the values to insert...
8
by: Alec MacLean | last post by:
Hi, I'm using the DAAB Ent Lib (Jan 2006) for .NET 2.0, with VS 2005 Pro. My project is a Web app project (using the WAP add in). Background: I'm creating a survey system for our company, for...
3
by: Ronald S. Cook | last post by:
I have a function in which I'm trying to make the parameter optional. However, when I put Optional in front of ByVal below I get the error "optional parameters cannot have structure types". ...
2
by: =?Utf-8?B?SmFjb2I=?= | last post by:
I am trying to use an XSD generated function which needs a parameter of type 'ref System.Guid?' I am passing it a 'ref System.Guid', but am getting the following error: "cannot convert from 'ref...
4
by: Ralf | last post by:
Hallo, I'm trying to call a COM function from C#. The function has a parameter from the type array of IStream* (IStream**). The COM component (out-proc-server (.exe)) has the following code: ...
0
by: shapper | last post by:
Hello, I am trying to define an ObjectDataSource delete parameter. The parameter name is "TagID" and is a Guid: ObjectDataSource1.DeleteParameters.Add(new Parameter("ID", TypeCode.Object)) ...
3
by: Elan Dro | last post by:
How we can pass the structure type (GUID) as value parameter to the object using reflection setValue method of FieldInfo, PropertyInfo and etc Ex : Public Class A Public GUIDField as GUID End...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.