Tagged articles
Image from Pexels

Tagged articles - ASP.NET

Found 89 articles tagged with ASP.NET

Request different data type from Web API with JQuery
XML/JSON in return result of Web API REST service method with JQuery
 
0
In my previous article Different data type in Web API response of the same method I described how to get different response with HttpWebRequest in C#. Here I will demonstrate how to achieve the same thing but in JQuery client side code...read more
Different data type in Web API response of the same method
Both XML and JSON in return result of Web API REST service method
 
0
Web API restful services are very flexible and they return different data format (JSON or XML) depending on accept type header value from your browser (or other client). However this is not always so precise so sometime you have to force return type...read more
Aggregating RSS feeds from Umbraco content
Serving Umbraco website content in RSS format
0
RSS stands for Really Simple Syndication. It's an easy way for you to keep up with news and information that's important to you, and helps you avoid the conventional methods of browsing or searching for information on websites. Umbraco stores it's published content in XML format, so exposing website data is really easy...read more
Generating HTML string in C#
The proper way to generate html string in C#
0
From time to time you get to the point where you have to generate some HTML in C# code. Of course, the easier way is to concatenate string and return that as a result of a method. This is not the most elegant solution and it is only fine for some short string. ...read more
Serving embedded resources through WebAPI in Umbraco
Make package deployment easy with single file deployment
0
Recently I've deploying GoogleMap Editor package to Umbraco community. During development I realized that package will have to include script, some html templates, images... I had no problem with that but when it came to actual package build I realized that I will have to deal with bunch of files and even during development, so se some changes which were not dll related I had to restart app by touching web.config. ...read more
Enumerable Tips & Tricks with String and Int
Useful things to do with Enumerable in a single line
0
System.Linq.Enumerable is a core of LINQ magic. Most of the functions we use in a daily basis for anything we write with sequence, but what is really interesting is that methods from this class can be used for some tricky operations on strings and numbers and make them one line instead of loops. ...read more
Forcing accept type for WebApi call
Setting accept type on the server side for the WebApi request
0
One of the coolest things of WebApi is that adapts to accept type sent in request header. This header value depends on a client. Based on this WebApi will serve different formats of data (XML/JSON). ...read more
Extending WebForms Page class for registering stylesheet include
Extension method which enables registering stylesheet file reference
0
I recently started working on an Umbraco package for GoogleMap manipulation. Since initial version of package is planned only for Umbraco 6 I decided to use WebuserControl for creating a package custom datatype. It means that for one document type I might have multiple control instances on the page. ...read more
Exposing richtext property from content in Umbraco Web Api
Problem when exposing richtext property from Umbraco through Web Api
0
Almost every content page in your website will have one richtext property for adding rich content for the page. This allows you to add Macros so you can render dynamic content inside page content at custom places in the page itself. ...read more
Detecting request from mobile device
Take control over what is and what is not mobile device for your web app
0
Microsoft made is easy to detect whether request to your web application is coming from mobile device or not by adding a property to Request class. Usage of this is Request.Browser.IsMobileDevice. This works pretty fine for most of mobile devices, but this property is based on list of mobile browsers which is configured in .NET framework itself. ...read more
Simple configuration class
Adding configuration without having to restart app pool
0
Very often you need to store some settings in your configuration. Web.config files are designed for that but there are two things I found very annoying: ...read more
Easy data visualization with Google Graphs API
Free and easy way to display data on website
 
0
Google graph are really easy to use on website for the main reason that you do not need to maintain code and because it is free for use. Samples and documentation can be found at https://developers.google.com/chart/...read more
Handling ajax request in WebForms
Elegant way to do AJAX in WebForms
 
0
In case you want to add JQuery Ajax calls to your page, you would basically need to add one more page which will be invoked with Ajax call. In order to reduce number of physical pages you can reuse the same page, but make it act differently for normal GET/POST HTTP request and totally different for Ajax GET/POST HTTP request...read more
Detect ajax request in C#
Easier way to detect whether request is an ajax request
0
Sometime you need to determine whether your request is standard GET/POST request or Ajax POST/GET http request. This info is stored in request value isAjax or X-Requested-With. By checking these values of request you can easily determine whether http request is ajax or not. ...read more

.NET

read more

JavaScript

read more

SQL/T-SQL

read more

Umbraco CMS

read more