title: Attributes.Add() not working in asp.net
body: <p>I have added a CSS through code behind in asp.net on page_load. It works fine in my local environment but doesn't works on the server. Please see the code for your reference.</p>
  
  <pre><code> protected void Page_Load(object sender, EventArgs e)
  {
      string selectedValue = Request.QueryString["selectedValue"];
      updateCareer.Attributes.Add("style", "word-break:break-all; word-wrap:break-word");
      errordiv.InnerHtml = "";
      if (!IsPostBack)
      {
          rep_Jobs.DataBind();
      }
  }
  </code></pre>
  
  <p>I am getting this below mentioned error:-</p>
  
  <pre><code>'System.Web.UI.UpdatePanel' does not contain a definition for 'Attributes' and no extension method 
  'Attributes' accepting a first argument of type 'System.Web.UI.UpdatePanel' could be found (are you
   missing a using directive or an assembly reference?)
  </code></pre>
  
  <p>Let me know why this is happening. I haved added all the namespace related to it.</p>