M
Matthew
After selecting an option from the DropDownList and posting back, the
SelectedIndex for the DropDownList (ddlShippingMethods) remains at -1.
This form inherits from a base class. There is no code in the base
class that pertains to the dataset, ddl, datasource, etc. Any ideas
as to why this isn't working?
******Code******
Public Class frmPaymentOptions
Inherits clsMlknCsTestBase
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim dsShippingMethods As DataSet
dsShippingMethods = MyBase.prpCommerceObject.getShippingMethods
Me.ddlShippingMethods.DataTextField =
clsShippingMethodsConstants.cstrShippingMethodName
Me.ddlShippingMethods.DataValueField =
clsShippingMethodsConstants.cstrShippingMethodId
Me.ddlShippingMethods.DataSource = dsShippingMethods
If Not IsPostBack Then
Me.ddlShippingMethods.DataBind()
End If
SelectedIndex for the DropDownList (ddlShippingMethods) remains at -1.
This form inherits from a base class. There is no code in the base
class that pertains to the dataset, ddl, datasource, etc. Any ideas
as to why this isn't working?
******Code******
Public Class frmPaymentOptions
Inherits clsMlknCsTestBase
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim dsShippingMethods As DataSet
dsShippingMethods = MyBase.prpCommerceObject.getShippingMethods
Me.ddlShippingMethods.DataTextField =
clsShippingMethodsConstants.cstrShippingMethodName
Me.ddlShippingMethods.DataValueField =
clsShippingMethodsConstants.cstrShippingMethodId
Me.ddlShippingMethods.DataSource = dsShippingMethods
If Not IsPostBack Then
Me.ddlShippingMethods.DataBind()
End If