background preloader

.NET Problems

Facebook Twitter

Using Rewrite Maps in URL Rewrite Module. This walkthrough will introduce you to the concept of rewrite maps in URL rewrite module and will guide you how to create rewrite rules that use rewrite maps.

Using Rewrite Maps in URL Rewrite Module

In this walkthrough you will create two rewrite maps: one rewrite map will be used by rule that performs url rewriting, and another rewrite map will be used by rule that performs redirects to a different domain. Background A rewrite map is an arbitrary collection of name and value pairs that can be used within rewrite rules to generate a substitution URL during rewriting. Rewrite maps are particularly useful when you have a large set of rewrite rules and all of these rules use static strings (that is, when there is no pattern matching used).

In those cases, instead of defining a large set of simple rewrite rules, you can put all the mappings into the rewrite map–as keys and values–between the input URL and the substitution URL. Prerequisites This walkthrough requires the following prerequisites: Setting up a test web page Summary. C# - How to access session variables from any class in ASP.NET? How to: Install and Configure Internet Information Services for Microsoft Dynamics NAV Web Client. Microsoft Dynamics NAV 2015 This topic describes how to install and configure Internet Information Service (IIS) for the Microsoft Dynamics NAV Web client.

How to: Install and Configure Internet Information Services for Microsoft Dynamics NAV Web Client

To deploy the Microsoft Dynamics NAV Web client, you install the Microsoft Dynamics NAV Web Server components on a computer that running IIS 7.0 or IIS 8.0. A website for Microsoft Dynamics NAV Web client is installed on the IIS. IIS must have the following features enabled: File Upload using jQuery AJAX in ASP.NET Web API. Upload file using jQuery AJAX in ASP.NET Web API This article provides an easy way to upload an image file using jQuery AJAX in ASP.NET Web API.

File Upload using jQuery AJAX in ASP.NET Web API

Upload Idea: The idea here is to add the uploaded file's content to the FormData's collection by jQuery and in the action/method get the posted file's content from the Files' collection by a key. In the next walk-through I will show how to add a Web API controller to an empty ASP.NET web application and how the file will be posted through jQuery AJAX to the controller's action. KeyValuePair(TKey, TValue) Structure (System.Collections.Generic) Defines a key/value pair that can be set or retrieved.

KeyValuePair(TKey, TValue) Structure (System.Collections.Generic)

[SerializableAttribute] public struct KeyValuePair<TKey, TValue> Type Parameters TKey The type of the key. TValue The type of the value. The KeyValuePair<TKey, TValue> type exposes the following members. FileUpload.SaveAs Method (System.Web.UI.WebControls) File Upload using jQuery AJAX in ASP.NET Web API. Send and Receive JSON objects to Web Service Methods using jQuery AJAX in ASP.Net. In this article I will explain how to send and receive JavaScript JSON objects to Web Methods using jQuery AJAX in ASP.Net.

Send and Receive JSON objects to Web Service Methods using jQuery AJAX in ASP.Net

Custom Object Class First I’ll create a simple property class of City which has two simple properties 1. Name – Name of the City 2. This class will act as the JSON object for sending and receiving date between the client and server. public class City private string name; public string Name get return name; set name = value; private int population; Walkthrough: Creating and Using AJAX-Enabled Web Service. [This documentation is for preview only, and is subject to change in later releases.

Walkthrough: Creating and Using AJAX-Enabled Web Service

Blank topics are included as placeholders.] Creating and Using Web Service in Visual Studio 2010 using C# Object reference not set to an instance of an object error on Visual Studio 2013. Email SMTP settings web config. How to change html image src by by c# Check if a file exists in vb.net. Vb.net - Loop through the rows of a particular DataTable. Vb.net - ASP.net writing code behind variable to HTML page code. The Controls collection cannot be modified because the control contains code blocks(i.e.<% ...%>) ajax toolkit html editor. Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>) asp.net - Pradeep SVS.

Visual Basic .NET programming for Beginners - Try ... Catch. This lesson is part of an ongoing tutorial.

Visual Basic .NET programming for Beginners - Try ... Catch

The previous part is here: Runtime Errors VB.NET has a inbuilt class that deals with errors. The Class is called Exception. When an exception error is found, an Exception object is created. The coding structure VB.NET uses to deal with such Exceptions is called the Try … Catch structure. In the coding area for your button, type the word Try. Try Catch ex As Exception End Try The Try word means "Try to execute this code". Move your line of code from the previous section to the Try part: Vb.net - Convert any date format to system date format. Basic asp.net form with twitter bootstrap components. Getting Started with XML Web Services in Visual Basic.NET and Visual C# Rob Caron Visual Studio Team Microsoft Corporation October 2002 Summary: Microsoft® Visual Studio® .NET and XML Web services provide a simple, flexible, standards-based model that allows developers to assemble applications regardless of the platform, programming language, or object model.

Getting Started with XML Web Services in Visual Basic.NET and Visual C#

This article will help you get started creating and accessing XML Web services with Visual Basic .NET and Visual C#. (15 printed pages) Contents Introduction An XML Web service is a programmable unit of software that can be accessed over the Internet and used remotely. XML Web services depend heavily upon the broad acceptance of XML, HTTP, and other protocols that support interoperability. One of the core characteristics of an XML Web service is the high degree of abstraction between the implementation and consumption of a service.

.net - Check if session item exists fails itself with object reference not set error. Turning WCF Service into .asmx for debugging. C# - How to load menu only once time in Master Page. Dynamically Loading Master Pages in ASP.Net: Part 1. Today most of the websites uses different Master Pages dynamically with a content page depending upon the request.

Dynamically Loading Master Pages in ASP.Net: Part 1

This is very-very useful in two situations as given below. We can enable the users of our website to customize the appearance of the website by loading different Master Pages. We can display a menu of Master Pages, and allow our users to pick their favorite layout. Another one situation in which loading Master Pages dynamically is useful concerns co-branding or even saydifferent users from different geographical area. Imagine that our company needs to make its website look like a partner website. Master Page is merged with a content page very early in the page execution life-cycle. How to dynamically load menu items in Layout or MasterPage in ASP.NET MVC. App_code folder objects not detected/available.