|
-
Jul 26th, 2005, 08:53 AM
#1
Thread Starter
Junior Member
parameter question
I need to have access to a parameter with more than one fuction.
Here is what i have so far and i am stuck. and i am need of help.
I have tried putting the variable at the class level ;however, i am in need to know how to implement this.
Thank you for your help ahead of time.
ERIK...
Dim IDproduct As Int32 = CInt(Request.Params("IDProduct"))
'
'.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
'
'
End Sub
Protected Sub PopulateControl2()
'Fill ddlRoomsNames
'
Dim IDAttributeCategoryRooms As Int32 = CInt(Request.Params("IDAttributeCategoryRooms"))
Dim RoomNames As New ConstructionSuperCenter.Global.Global_WindowTreatment
'Get the dll
Dim ddlRoomNames As New DropDownList
'Fill
ddlRoomNames.DataSource = RoomNames.Get_Standard_Blind_Name_of_Rooms_(IDproduct, IDAttributeCategoryRooms)
ddlRoomNames.ToolTip = "Please Choose a Room"
ddlRoomNames.DataTextField = "AttributeName"
ddlRoomNames.DataValueField = "AttributeName"
ddlRoomNames.DataBind()
'
'Place Holder Rooms
'
phRooms.Controls.Add(ddlRoomNames)
End Sub
'
Protected Sub PopulateControl1()
IDproduct = (New SqlParameter("@IdProduct", IDproduct))
Dim IDAttributeCategoryColor As Int32 = CInt(Request.Params("IDAttributeCategoryColor"))
'
Dim StandardColors As New ConstructionSuperCenter.BCom.Wood_and_Alternitive_Blinds_MAIN
'Get the dll
Dim ddlStandardColor As New DropDownList
'Fill
ddlStandardColor.DataSource = StandardColors.Get_Standard_Blind_Colors_(IDproduct, IDAttributeCategoryColor)
ddlStandardColor.ToolTip = "Please Choose a Color"
ddlStandardColor.DataTextField = "AttributeName"
ddlStandardColor.DataValueField = "AttributeName"
ddlStandardColor.DataBind()
'
'Place Holder
'
phColors.Controls.Add(ddlStandardColor)
'
End Sub
End Class
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|