Manas Sahu

Manas Sahu

  • 1.7k
  • 191
  • 9k

How to change css class in code behind in

Jun 3 2020 2:48 AM
<div id="test" class="search-bar-inner-container">
i need to change this class="search-bar-inner-container"  for id 'test'  in code behind of file
so i tried like below
Protected test As As HtmlControls.HtmlGenericControl
test.Attributes.Add("class", "search-bar-inner-container1") 
but its showing null error 

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (1)