How to Pass Parameters to Code Activity

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vajrala Narendra
    New Member
    • Jun 2007
    • 73

    How to Pass Parameters to Code Activity

    Hi all
    Hi all,

    In my WF Project i have a CodeActivity, that is to check wether entered userid, password are valid or not
    how to pass parameters to CodeActivity.

    what i tried is
    in my class i wrote a method of bool type with userid, password as parameters, am checking here wether values are correct or not according to that am returning bool value.

    am entering userid, password values from a window form which is in otherproject of the same solution.
    how can i pass those textbox values to my codeActivity event?

    based on codeActivity result my next IfElseActivity will work.

    Please Share some code

    Thanks In Advance

    --Naren
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Raise a custom event whose arguments are two strings.

    Comment

    • Vajrala Narendra
      New Member
      • Jun 2007
      • 73

      #3
      Thanks for reply

      as i said am very new to WF, can u send any example please?

      Comment

      • tlhintoq
        Recognized Expert Specialist
        • Mar 2008
        • 3532

        #4
        Bytes is very much a "Give me a fish I eat for a day. Teach me to fish I eat for a lifetime" kind a place. Just giving you the code doesn't help you learn near as effectively as good old-fashioned trial and error.

        Do a little reading up and experimenting then if your trials aren't doing what you expect, post the code and relevant messages/errors and we'll see what we can do to point you in the right direction for making it work.

        Try hitting Google with terms of your programming language and primary terms of what you want to do. For example "C# custom events". I've found this to be a very effective tool.

        Comment

        Working...