J
jobs
I have two Nested repeating Datalists with different data sources.
Currently the second Datalist is set to visible=false
I have an oncommand button on the first, that when selected I would
like to make it's sub datalist visible.
I'm a bit confused about how to refrence the instance of the second
datalist.
Below is the command from the first .
The Master Datalist is called datalista, the Sub is called Datalist1.
Sub View(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.CommandEventArgs)
CType(Datalist1.FindControl("Datalist1")), DataList).Visible =
True
End Sub
The above code is giving an error that I'm "not set to an instance of
an object"
e.CommandArgument conntains a value which could be used to identify
items inside Datalist1, I'm just wondering, how do I identify the
control itself it it no databound identifiers? and can I even have
specific instances as visible = true ???
Currently the second Datalist is set to visible=false
I have an oncommand button on the first, that when selected I would
like to make it's sub datalist visible.
I'm a bit confused about how to refrence the instance of the second
datalist.
Below is the command from the first .
The Master Datalist is called datalista, the Sub is called Datalist1.
Sub View(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.CommandEventArgs)
CType(Datalist1.FindControl("Datalist1")), DataList).Visible =
True
End Sub
The above code is giving an error that I'm "not set to an instance of
an object"
e.CommandArgument conntains a value which could be used to identify
items inside Datalist1, I'm just wondering, how do I identify the
control itself it it no databound identifiers? and can I even have
specific instances as visible = true ???