Asp.net host website on local machine with custom url instead of http://localhost/ in IIS

Introduction: In this article I will explain how to create or setup or host new site in IIS with custom URL(www.yoursitename.com) instead of http://localhost/ in asp.net. Description: Before setup new site in IIS first create one sample application in asp.net using visual studio. Once new application is ready Open Run command and type “inetmgr” and click enter button then IIS…

Continue reading…

ANIMATION THROUGH JQUERY HOW TO MOVE THE BOX RIGHT , LEFT , TOP ,BOTTOM

ANIMATION THROUGH JQUERY HOW TO MOVE THE BOX  RIGHT , LEFT , TOP ,BOTTOM CODE <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js”></script> <script type=”text/javascript”> $(document).ready(function() { $(‘#button’).click(function() { $(‘#textbox’).animate({ ‘marginLeft’ : “-=150px” }); }); $(‘#button’).click(function() { $(‘#textbox’).animate({ ‘marginTop’ : “+=150px” }); }); $(‘#button’).click(function() { $(‘#textbox’).animate({ ‘marginLeft’ : “+=150px” }); }); $(‘#button’).click(function() { $(‘#textbox’).animate({ ‘marginTop’ : “-=150px” }); }); $(‘#button’).click(function() { $(‘#textbox’).animate({ ‘marginTop’ : “+=150px” });…

Continue reading…

SIMPLE AND EASY WAY FADE TOGGLE IN JQUERY

Description Here I am going to expain SIMPLE AND EASY WAY FADE TOGGLE IN JQUERY. CODE <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js”></script> <script> $(document).ready(function(){ $(“button”).click(function(){ $(“#div1”).fadeToggle(“slow”); $(“#div2”).fadeToggle(3000); $(“#div3”).fadeToggle(6000); $(“#div4″).fadeToggle(9000); }); }); </script> <body> <p> A simple way to use fade Toggle</p> <button style=”color:#fff; font-size:20px; background-color:#000; height:40px; width:150px; border:0px;”>click here</button> <div id=”div1″><img src=”3.jpeg”></div> <div id=”div2″><img src=”2.jpg”></div> <div id=”div3″><img src=”4.jpg”></div> <div id=”div4″><img src=”1.jpg”></div> </body>

How to Call C# Method/Function Using jQuery Ajax

jQuery.ajax() or $.ajax() method to call the C# method (WebMethod). The $.ajax() method does an asynchronous HTTP (Ajax) request. This method will take various parameters. CODE <script src=”Script/jquery-1.11.0.min.js” type=”text/javascript”></script> <script type=”text/javascript” language=”javascript”>// <![CDATA[ function JqueryAjaxFunction() { var pageUrl = ‘~/Default.aspx/jqueryAjaxCall’; var Val1 = $(“#<%= txtval1.ClientID %>”).val(); var Val2 = $(“#<%= txtval2.ClientID %>”).val(); var parameter = { “Val1”: Val1, “Val2”: Val2…

Continue reading…

Asp .Net Interview Questions and Answers

ASP.NET is a development framework for building web pages and web sites with HTML, CSS, JavaScript and server scripting. ASP.NET supports three different development models: Web Pages, MVC (Model View Controller), and Web Forms. The ASP.Net application codes could be written in either of the following languages: 1. C# 2. Visual Basic .Net 3. Jscript 4. J# ASP.Net is used…

Continue reading…

Facebook Share Custom Link with image

Introduction In this article i am going to explain how to share a custom link with image in facebook. Example function fbclick() { var title = recipe; var im_url = ‘images/logo1.png’; var facebook_appID = ‘1616021121945414’ url = “https://www.facebook.com/dialog/feed?app_id=”+ facebook_appID +    “&link=” + encodeURIComponent(“http://rupeshsharma.com”)+ “&name=” + encodeURIComponent(title) + “&caption=” + encodeURIComponent(‘Rupesh Sharma’) + “&description=” + encodeURIComponent(‘Rupesh Sharma’) + “&picture=” + encodeURIComponent(“http://rupeshsharma.com/”…

Continue reading…