Random Post
Mar 07
Khi làm việc với một bảng rộng gồm rất nhiều cột, trong đó chỉ có một số cột được truy cập thường xuyên, bạn có thể tăng hiệu năng cho câu truy vấn trên các cột này bằng cách tách chúng ra một bảng riêng. Khi đ&... [More]
Tags:
Feb 10
Last week, I had the opportunity to help implement and integrate a strong password policy into the legacy web application developed using ASP technology. The solution I proposed was to use jQuery to display the password strength meter to help users create strong passwords. One of my colleagues asked if we would have to modify multiple pages and files if the client decided to alter the password policy. The answer is no. Thanks to jQuery, the client-side script and code behind can share the same information. The password policy information is stored in an XML file and the client-side script and code behind are reading from this to perform the password strength validation [More]
Tags: |
Jan 29
In Microsoft .NET you have two types of security, Code Access Security and Role Based Security. In this article we will explore what the latter implies, how it can be used, etc. So, what is Code Access Security then? Code Access Security (CAS) is a security feature of .NET that enables the code that is to be executed to be properly verified and different levels of trust granted accordingly. It actually provides the flexibility to define what the code could perform and what not to perform. This article discusses CAS, the functions and benefits of CAS, permissions and permission sets. [More]
Jan 29
Server controls are meant for eliminating redundant code and boosting productivity. They make development tasks easier by hiding their internal details and providing ready to use packaged functionality. There are many controls shipped with ASP.NET that shorten development effort, but there are always opportunities for us to build our own controls to reduce even more development effort. Many times business scenarios create the need of custom controls to simplify development solutions. [More]
Jan 29
Using Role based forms authentication, we can restrict users of the site to accessing certain resource if they are not part of a particular role. In this article, Satheesh demonstrates how to build sites with this type of authentication. He provides a short overview of various Login Controls and Providers and then discusses a scenario with detailed explanation of various aspects of the sample application with screenshots and source code. [More]
Jan 05
// Get the cookie: $.cookie('myCookie'); // Set or update the cookie: $.cookie('myCookie', 'myCookieValue'); // Delete a cookie: $.cookie('sampleCookie', null);
Tags:
Jan 05
This code snippet, shows how to query active directory and search if a specific username exists. [More]
Tags:
Jan 05
It is very common when you need to use HTML helper in ASP.NET MVC framework to create an image link.
The default set of HTML helpers do not include such HtmlHelper.
This code shows how to write HTML Helper for linking image or just the image ta [More]
Tags: | |
Dec 22
You want to split strings on different characters with single character or string delimiters. For example, split a string that contains "\r\n" sequences, which are Windows newlines. Through these examples, we learn ways to use the Split method on the string type in the C# programming language. U... [More]
Tags:
Dec 05
class Program { static void Main() { string p = @"C:\Users\Sergio\Documents\Test.txt"; string e = Path.GetExtension(p); if (e == ".txt") { Console.WriteLine(e); } } }
Tags: