asp.net - Can't Access HTML Attribute in User Control Page Load -



asp.net - Can't Access HTML Attribute in User Control Page Load -

i have asp.net user command has div runat="server". when seek access div's class attribute initial page load null exception error.

object reference not set instance of object.

protected sub page_load(byval sender object, byval e system.eventargs) handles me.load container1.attributes.add("class", "test") end sub

if container1 in kid command perhaps property needed on kid command looks specific attr, it's neater doing findcontrol , less prone errors

html asp.net pageload

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -