Hi,

In appsetting section of web.config I make element.then on Action method I wrote those property in cookie and then read it on javascript.

below is the sample code for it.

 

  $(document).ready(function () {

        var mktShow = getCookie("mktShow");
        if (mktShow != "yes") {
            $("#ss").hide();
        } else {
                var mktShowhref = getCookie("mktImagelnk");
                var mktImage = getCookie("mktImage");
                var mydiv = document.getElementById("ss");
                var aTag = document.createElement('a');
                aTag.setAttribute('href', mktShowhref);
                aTag.setAttribute('id', "sms");
                aTag.setAttribute('style', 'width: 728px;height: 90px;background-image: url('+ mktImage +');padding: 0px;display: block; margin-left: auto; margin-right: auto; margin-bottom: 10px; ');
                mydiv.appendChild(aTag);
                $("#ss").show();
        }
      
    });