Tagged articles - C#

Found 179 articles tagged with C#

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
Hide property in Umbraco
How to hide property in Umbraco backend
0
There is no option for hiding a property in Umbraco. Simply, when you define a property for document type, it is assumed that you are going to use it. However, sometime you need to hide it for some specific condition, like level of document in a tree, or document type which might inherits some property which you do not want to use in inherited document type...read more
Optimized media serving in Umbraco by creating media CDN
Reduce bandwidth with serving from one domain
0
Let's say you have multiple websites with different domains in one Umbraco instance. All websites will use the same media, but the catch is how will it serve them. For example the same image will be served to a browser with two different paths like the following: ...read more
Reading Umbraco dictionary item in Ajax request
The workaround for getting proper dictionary value in Ajax request
0
You probably had to make some Ajax call in your Umbraco website. This is really easy in versions star6ting from version six and above...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
Bitmap manipulation extension methods for C#
Helper methods for bitmap manipulation in .NET
 
0
This is a class I used few years back for some image manipulation in C#. Over the years, I was adding more methods and code snippets I needed and some stuff I found on Internet, so it grow to a useful collection of Bitmap manipulation methods. Recently, all static methods are converted to extension methods for easier usage in code. ...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
Image Cropper Auto Create
Auto generate cropped images after image upload
0
It probably happend you often that you need to add image cropper to a page or custom media type. Right after you upload image cropper property does not generate cropped image file. You would have to save the page/media once againg, so that image cropper is initialized and cropped files are generated. ...read more
Umbraco backend customization - custom buttons
Add you custom buttons to umbraco toolbar and extend CMS
 
0
This article is about extending Umbraco back-end with custom button to which you can attach your custom click handlers and force Umbraco back-end to work according to your needs. ...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
Extending Umbraco API with extension methods
Nullreference exception safe property accessing
 
0
Often during writing partial view for page you need to read value from property which is content or media picker. In order to get integer value you need to cast value acquired with GetPropertyValue method which is object type. ...read more

.NET

read more

JavaScript

read more

SQL/T-SQL

read more

Umbraco CMS

read more