Parameter and Guid

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shapper

    Parameter and Guid

    Hello,

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

    ObjectDataSourc e.DeleteParamet ers.Add(New Parameter("ID",
    TypeCode.Int32) )

    However TypeCode does not have an option of Guid.

    How should I do this?

    Thanks,

    Miguel
  • Jose A. Fernandez

    #2
    Re: Parameter and Guid

    Hello shapper
    Try
    ObjectDataSourc e.DeleteParamet ers.Add(New
    Parameter("ID", TypeCode.Object ))


    Links
    --------------
    TypeCode Enumeration
    Specifies the type of an object.



    _______________ _______
    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 ObjectDataSourc e parameter that is a Guid:
    >
    ObjectDataSourc e.DeleteParamet ers.Add(New Parameter("ID",
    TypeCode.Int32) )
    >
    However TypeCode does not have an option of Guid.
    >
    How should I do this?
    >
    Thanks,
    >
    Miguel

    Comment

    • shapper

      #3
      Re: Parameter and Guid

      On Feb 23, 2:29 am, "Jose A. Fernandez" <fernande...@gm ail.comwrote:
      Hello shapper
      Try
      ObjectDataSourc e.DeleteParamet ers.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 ObjectDataSourc e parameter that is a Guid:
      >
      ObjectDataSourc e.DeleteParamet ers.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

      Comment

      • AG

        #4
        Re: Parameter and Guid

        Object data type works.

        --

        AG
        Email: discussATadhdat aDOTcom
        "shapper" <mdmoura@gmail. comwrote in message
        news:95fa691c-6151-4709-a257-21c16b9e1f60@j2 8g2000hsj.googl egroups.com...
        Hello,
        >
        I am trying to define an ObjectDataSourc e parameter that is a Guid:
        >
        ObjectDataSourc e.DeleteParamet ers.Add(New Parameter("ID",
        TypeCode.Int32) )
        >
        However TypeCode does not have an option of Guid.
        >
        How should I do this?
        >
        Thanks,
        >
        Miguel

        Comment

        • Jose A. Fernandez

          #5
          Re: Parameter and Guid

          Hi Shapper
          Please.. could you write a little more code....we can help you
          better ;)
          Example.. how do you bind a ObjectDataSourc e 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...@gm ail.comwrote:
          >
          >
          >
          Hello shapper
          Try
          ObjectDataSourc e.DeleteParamet ers.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 ObjectDataSourc e parameter that is a Guid:
          >
          ObjectDataSourc e.DeleteParamet ers.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

          Comment

          Working...