Hi,
I have a user control, PickList, that contains two listbox and a textbox. When I load that PickList in an ASPX page everything works great.
When I load PickList inside another user control when I try to DataBind Picklist I'm getting null reference for all of PickLists child controls.
Any ideas on how to fix this?
Here is my code:
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace CustomControls
{
public partial class Picklist : System.Web.UI.UserControl
{
public string DataValueField;
public string DataTextField;
protected DataTable m_DataSource;
public string CssClass = "";
public string SelectedValue
{
get { return this.hfItemID.Value; }
set {
this.hfItemID.Value = value;
this ...
Go to the complete details ...