Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Stranger bug in DomainDataSource Parameter RSS

1 reply

Last post Aug 05, 2009 06:36 AM by Mog Liang - MSFT

(0)
  • Stranger bug in DomainDataSource Parameter

    Jul 29, 2009 11:46 PM | LINK

    I have the method "TotalDueByRegionId" which takes the string parameter "inputName". I call this method from my XAML code:

    <riacontrols:domaindatasource name="TDR" queryname="TotalDueByRegionId" autoload="True">
    <riacontrols:domaindatasource.domaincontext>
    <domain:addomaincontext></domain:addomaincontext>
    </riacontrols:domaindatasource.domaincontext>
    <riacontrols:domaindatasource.queryparameters>
    <riadata:controlparameter parametername="inputName" value="zuxel">
    </riadata:controlparameter>
    </riacontrols:domaindatasource.queryparameters>
    </riacontrols:domaindatasource>

    Then I breaking it in the autogenerated part of TotalDueByRegionId method. As you can see, parameters value "zuxel", was not passed to the method. (next image):

    I tried to find a reason of that. See next img.
    Here, the instruction (adress 03Bh) puts the value "zuxel" to the "this._value" field.



    Next directive set this value in "null":


    Here the MSIL of this function:
    How can I fix this? Or it's a bug?

    DomainDataSource controlparameter bug

  • Mog Liang - MSFT

    Mog Liang -...

    All-Star

    21645 Points

    2132 Posts

    Microsoft

    Re: Stranger bug in DomainDataSource Parameter

    Aug 05, 2009 06:36 AM | LINK

    Hi,

    Instead of using ControlParameter, you could use Paremeter in this case.

         <riadata:parameter parametername="inputName" value="zuxel">

    ControlParameter is used for binding parameter value to some control's property.

    Thanks,

    Mog Liang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.