>>Thank you very much for your input. What I don't understand is how to define properties of the class that will hold my page controls .Text values. I would like the routine to be generic and not hard coded to my specific page. That is, somehow scan all controls of the page and create a property in the "other" object class for each control the page has. If you have some tips on how to do it, I would appreciate it.
>
>Hi Dmitry,
>
>PMFJI, I'm a dotnet newby too, but here is one way to create a parameter object
>
>
>Dim Params As IDictionary = New Hashtable
> Params.Add("UserID", dtUser.Rows(0)("User_ID"))
> Params.Add("SubmitterID", CStr(Session("SubmitterID")))
> Params.Add("XRefName", sXrefName)
> Params.Add("XRefLevel", dtSubscriber.Rows(0)("Responsibility_Sequence_No_Code"))
> Params.Add("TranType", CStr(Session("TranType")))
>
>
>
>
>Reference it like this in the receiving method:
>
>Dim sQuery As String = "spMtUpdateXRef " _
> & "'" & Params.Item("UserID").ToString _
> & "', '" & Params.Item("SubmitterID").ToString _
> & "', '" & Params.Item("XRefName").ToString _
> & "', '" & Params.Item("XRefLevel").ToString _
> & "', '" & Params.Item("TranType").ToString & "'"
>
>
>
>HTH,
>
>Bruce
Bruce,
Thank you very much for the sample code. I will try to see how I can apply it to my application.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham