Thanks, here is the code behind my aspx and the user control. All of my user
controls are pretty much the same. They are just navigational links.
'CODE BEHIND
Imports System.Data
Public Class ProductDetailsP age
Inherits System.Web.UI.P age
Protected WithEvents ModelName As System.Web.UI.W ebControls.Labe l
Protected WithEvents ProductImage As System.Web.UI.W ebControls.Imag e
Protected WithEvents ModelNumber As System.Web.UI.W ebControls.Labe l
Protected WithEvents addToCart As System.Web.UI.W ebControls.Hype rLink
Protected WithEvents desc As System.Web.UI.W ebControls.Labe l
Protected ReviewList As C_ReviewList
Protected WithEvents Price3 As System.Web.UI.W ebControls.Labe l
Protected WithEvents Price1 As System.Web.UI.W ebControls.Labe l
Protected WithEvents Price2 As System.Web.UI.W ebControls.Labe l
Protected WithEvents infoDrp As System.Web.UI.W ebControls.Drop DownList
Protected AlsoBoughtList As C_AlsoBought
Dim ProductID2 As Integer
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
' Obtain ProductID from QueryString
Dim ProductID As Integer = CInt(Request.Pa rams("ProductID "))
ProductID2 = ProductID
' Obtain Product Details
Dim products As ProductsDB = New ProductsDB()
Dim myproductinfo As SqlClient.SqlDa taReader =
products.GetPro ductInfo(Produc tID)
If myproductinfo.R ead Then
infoDrp.DataSou rce = myproductinfo
infoDrp.DataTex tField = "Spec"
infoDrp.DataVal ueField = "SpecID"
infoDrp.DataBin d()
infoDrp.Items.I nsert(0, New ListItem("Pleas e Choose", "0"))
infoDrp.Selecte dIndex = 0
End If
End Sub
Private Sub infoDrp_Selecte dIndexChanged(B yVal sender As System.Object,
ByVal e As System.EventArg s) Handles infoDrp.Selecte dIndexChanged
addToCart.Navig ateUrl = "AddToCart.aspx ?ProductID=" & ProductID2 &
"&SpecID=" & infoDrp.Selecte dItem.Value
End Sub
End Class
'USER CONTROL CODE BEHIND
Public MustInherit Class C_Header
Inherits System.Web.UI.U serControl
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
End Sub
End Class
"Victor Garcia Aprea [MVP]" <vg*@NOobiesSPA M.com> wrote in message
news:eF******** ******@TK2MSFTN GP11.phx.gbl...
Hi Brent,
That sounds really weird. It would help if you could reduce the
non-working sample to minimum size and post it for all to see what may be wrong.
--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
"Brent Burkart" <Br***********@ wvmb.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. Has anyone experienced any problems with their selectedindexch anged not
firing when there are user controls present on the page? I have 4
controls on a page and only once I remove all 4 does my dropdownbox
selectedindexch anged work.
Any ideas?