G
gh0st54
Hi
i'm trying to access my dynamically generated web user controls from
code behind but always get the error :
System.NullReferenceException: Object reference not set to an instance
of an object.
i'm trying this to get the item
Page.FindControl("Form1").FindControl(this.pnlImageInfo.ID).FindControl("ImageInfo"+i+"_imgPic").ID.ToString();
if i add a textbox and try
Page.FindControl("Form1").FindControl(this.pnlImageInfo.ID).FindControl("TestId_"+i.ToString()).ID.ToString();
it works how come ?
how can i access my webuser control values ? yet it has getter and
setters
thanks
i'm trying to access my dynamically generated web user controls from
code behind but always get the error :
System.NullReferenceException: Object reference not set to an instance
of an object.
i'm trying this to get the item
Page.FindControl("Form1").FindControl(this.pnlImageInfo.ID).FindControl("ImageInfo"+i+"_imgPic").ID.ToString();
if i add a textbox and try
Page.FindControl("Form1").FindControl(this.pnlImageInfo.ID).FindControl("TestId_"+i.ToString()).ID.ToString();
it works how come ?
how can i access my webuser control values ? yet it has getter and
setters
thanks