Techaray

Shailendra Saxena's Technical Blog

How to show/hide a anchor tag on the basis of Web.config in ASP.NET

clock March 9, 2015 13:16 by author ShailendraSaxena

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();
        }
      
    });



ASP.NEt MVC Releases

clock July 31, 2013 08:27 by author ShailendraSaxena

 

 

Date Version
10/12/2007 ASP.NET MVC CTP
13/03/2009 ASP.NET MVC 1.0
16/12/2009 ASP.NET MVC 2.0 RC
4/2/2010 ASP.NET MVC 2.0 RC 2
10/3/2010 ASP.NET MVC 2
9/11/2010 ASP.NET MVC 3 Beta
10/12/2010 ASP.NET MVC 3 RC 2
13/01/2011 ASP.NET MVC 3  
20/09/2011 ASP.NET MVC 4 Developer Preview
15/02/2012 ASP.NET MVC 4  Beta
31/05/2012 ASP.NET MVC 4 RC
15/08/2012 ASP.NET MVC 4  

 



Visual Studio 2013 New Features

clock June 29, 2013 08:24 by author ShailendraSaxena

 

Visual Studio 2013 New Features

One Asp.Net

                Means In One Project we can have ASP.Net Web Forms +MVC+API (All Together)

                Scaffolding for All Frameworks

                New Extensible Identity System OWIN (Open Web Interface for .Net)



What is ASP.NET SignalR

clock May 27, 2013 09:48 by author ShailendraSaxena

ASP.NET SignalR is a new library for ASP.NET developers that makes it incredibly simple to add real-time web functionality to your applications. What is "real-time web" functionality? It's the ability to have your server-side code push content to the connected clients as it happens, in real-time.

You may have heard of WebSockets, a new HTML5 API that enables bi-directional communication between the browser and server. SignalR will use WebSockets under the covers when it's available, and gracefully fallback to other techniques and technologies when it isn't, while your application code stays the same.

SignalR also provides a very simple, high-level API for doing server to client RPC (call JavaScript functions in your clients' browsers from server-side .NET code) in your ASP.NET application, as well as adding useful hooks for connection management, e.g. connect/disconnect events, grouping connections, authorization.



Search

Calendar

<<  June 2017  >>
SuMoTuWeThFrSa
28293031123
45678910
11121314151617
18192021222324
2526272829301
2345678

Archive

Tags

Categories


Visitors

FlagCounter

Flag Counter

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2017

Sign In