[CLOSED] How to write this JS Snipplet in Code Behind ?

  1. #1

    [CLOSED] How to write this JS Snipplet in Code Behind ?

    Good Afternoon all

    I got a small question...
    I need to convert this lines of JS into C# Code Behind...

        control.inputEl.setStyle({    
          "background-image": 'none',
          "background-color": 'white'});
    Could someone help me ?

    Regards
    Peter
    Last edited by Daniil; Apr 07, 2015 at 12:27 PM. Reason: [CLOSED]
  2. #2
    Hi Peter,

    Please use the Call method.
    string style = "{ \"background-image\": \"none\", \"background-color\": \"white\" }";
    control.Call("inputEl.setStyle", new JRawValue(style));

Similar Threads

  1. [CLOSED] Write own css
    By pawangyanwali in forum 2.x Legacy Premium Help
    Replies: 16
    Last Post: Jan 20, 2014, 4:14 AM
  2. Replies: 1
    Last Post: Jun 05, 2013, 11:01 AM
  3. Replies: 1
    Last Post: Apr 19, 2012, 12:35 PM
  4. How I can write code="TAB"
    By ramzey in forum 1.x Help
    Replies: 3
    Last Post: Mar 22, 2011, 10:05 AM
  5. How to write the lang.js
    By izee in forum 1.x Help
    Replies: 0
    Last Post: Jul 29, 2009, 11:48 PM

Posting Permissions