Tính tới thời điểm đăng bài này thì Microsoft đang cho tải bản Visual Studio 2017 RC build 26206.00 – tư đây xin phép viết tắt bằng VS2017 hoặc VS – bản chính thức nghe nói sẽ ra mắt vào ngày 7 tháng Ba tới, đợt này cũng kỷ niệm 20 năm phát triển Visual […]
Chuyên mục: Programming
Visual Studio is busy
Mấy hôm nay thằng Visual Studio 2015 Update 1 của tui cứ bị tình trạng is busy: Microsoft Visual Studio is waiting for an internal operation to complete. If you regularly encounter this delay during normal usage, please report this problem. Khổ, đang xài bình thường, chả có update, chả có cài thêm gì ráo […]
ASP.NET MVC: Không deploy một số file và folder
Tui có làm một dự án .NET theo kiểu module, tức là có 1 project “main” có đầy đủ các assets, function dùng chung… Mấy chức năng con con chỉ cần tạo project khác viết trong Areas là xong, dễ chia nhỏ chức năng cho nhiều người, mỗi người ôm một cục.
jQuery Tips Everyone Should Know
This is awesome post of AllThingsSmitty, it’s useful for anyone who are web developer.
Original article: https://github.com/AllThingsSmitty/jquery-tips-everyone-should-know
A collection of simple tips to help up your jQuery game.
- Checking If jQuery Loaded
- Back to Top Button
- Preload Images
- Checking If Images Are Loaded
- Fix Broken Images Automatically
- Toggle Classes on Hover
- Disabling Input Fields
- Stop the Loading of Links
- Cache jQuery Selectors
- Toggle Fade/Slide
- Simple Accordion
- Make Two Divs the Same Height
- Open External Links in New Tab/Window
- Find Element By Text
- Trigger on Visibility Change
- Ajax Call Error Handling
- Chain Plugin Calls
Checking If jQuery Loaded
Before you can do anything with jQuery you first need to make certain it has loaded:
if (typeof jQuery == 'undefined') {
console.log('jQuery hasn\'t loaded');
} else {
console.log('jQuery has loaded');
}
ASP.NET MVC – ViewData, ViewBag và TempData
Chiều nay ngồi ở cty đầu óc đặc quánh với đủ thứ bùi nhùi chẳng đâu vào đâu nên chán quá ngồi nhấp nhổm như học trò đợi trống tan trường, mọi người vừa lục tục ra về thì tui cũng cuốn gói vác balo lên vòng ra ngoài kiếm một không gian làm việc […]
NuGet là gì?
Là một hệ thống quản lý gói (package manager) dành cho nền tảng phát triển phần mềm của Microsoft, mà chính yếu là .NET. Được giới thiệu vào năm 2010, sau đó đến phiên bản Visual Studio 2012 thì được tích hợp mặc định khi cài đặt, đến nay NuGet Gallery – một dạng như […]
KendoUI và Intellisense trong Visual Studio
Trong Visual Studio có tính năng intellisense giúp cho việc code trở nên thú vị hơn rất nhiều so với việc xài Notepad. Với những components của hãng thứ 3 thì đôi khi việc này không được trơn tru lắm và nếu cũng muốn sướng thì đôi khi bạn phải làm bằng tay. Trường hợp ở […]
ASP.NET 4.0 Validation Request
Lâu lâu, trong lúc lập trình ASP.Net xử lý các dữ liệu có yếu tố HTML trên form thì bạn hay gặp lỗi kiểu vầy Server Error in ‘/’ Application. A potentially dangerous Request.Form value was detected from the client (ctl00$Content$txtURL=”<iframe width=’750′ …”). Description: ASP.NET has detected data in the request that is potentially dangerous […]
[ASP.NET] Vài vấn đề gặp phải khi dùng UrlRewritingNet
Hôm nay tui gặp phải lỗi khi dùng UrlRewritingNet Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not […]
[Dev Tip] SQL Server: Understanding and Controlling Connection
Bài viết gốc sudo man:
I got the idea for this article when one of our clients complained that their server’s performance was degrading during business hours. They thought it was weird that at the same time, SQL Server would list more than 1200 connections on SQL server Activity Monitor. The server…