Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What type is THIS page when passing it?
Message
From
19/02/2008 11:51:47
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01293614
Message ID:
01293813
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform