N
Nathan Sokalski
I am writing a Control that inherits from
System.Web.UI.WebControls.CompositeControl. Like many Controls, my Control
renders more than just one inner Control. When a postback occurs, I need to
get the data posted by these inner Controls (by using the postCollection
argument). However, the postDataKey argument gives the key for the id of the
outer Control. When I need to access the value posted by one of the inner
Controls, I have found that I need to enter the id as a literal String for
the key, but this seems a little too simple for me, with all the Controls
that could get created. Is there some property or method that I should be
using to determine the key? Thanks.
System.Web.UI.WebControls.CompositeControl. Like many Controls, my Control
renders more than just one inner Control. When a postback occurs, I need to
get the data posted by these inner Controls (by using the postCollection
argument). However, the postDataKey argument gives the key for the id of the
outer Control. When I need to access the value posted by one of the inner
Controls, I have found that I need to enter the id as a literal String for
the key, but this seems a little too simple for me, with all the Controls
that could get created. Is there some property or method that I should be
using to determine the key? Thanks.