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…

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…

Ajax Cascading Dropdown Example With Database in Asp .Net

Introduction Here I am going to explain how to use cascading dropdown in Asp .Net Example CascadingDropDown is an ASP.NET AJAX extender that can be attached to an ASP.NET DropDownList control. It will automatically populate set of DropDownList controls without page postback. Each time the selection of one the DropDownList controls changes, the CascadingDropDown makes a call to a specified…

Continue reading…

Asp .Net freshers interview questions

1. What is ASP? Active Server Pages (ASP), also known as Classic ASP, is a Microsoft’s server-side technology, which helps in creating dynamic and user-friendly Web pages. It uses different scripting languages to create dynamic Web pages, which can be run on any type of browser. The Web pages are built by using either VBScript or JavaScript and these Web…

Continue reading…