Dynamically Creating A CSS Class

  • Thread starter Thread starter Nathan Sokalski
  • Start date Start date
N

Nathan Sokalski

I have a control that creates a CSS class which I want to put on the page.
Other people have told me that the best way to do this is using the
RegisterClientScriptBlock method, even though it is not a script. I have
done it using this method, but I am now writing my first control as a custom
control (one that is a *.vb file rather than a *.ascx file). My control
works fine, except the CSS from the RegisterClientScriptBlock is not showing
up in the browser. I think that the line of code with the
RegisterClientScriptBlock is getting called too late to show up in the
output (I call it during the Render method). Where would be the best place
to call this from? Thanks.
 
Back
Top