Bài đăng

Đang hiển thị bài đăng từ 2018

Area trong ASP.Net MVC 6

Hình ảnh
MVC5WithArea.rar Download Free .NET & JAVA Files API Before reading this article, I highly recommend reading my previous parts: Getting Started With ASP.Net MVC First ASP.Net MVC 5.0 Application How to Publish ASP.Net MVC on IIS MVC 5.0: Part 3 How to Publish ASP.Net MVC 5.0 Application on Windows Azure: Part 4 ASP.NET MVC 5.0 Views (Dynamic/Strongly Typed Views) - Part 5 From ASP.Net MVC 2.0 Microsoft provided a new feature in MVC applications,  Areas . Areas are just a way to divide or “isolate” the modules of large applications in multiple or separated  MVC . like:   When you add an area to a project, a route for the area is defined in an AreaRegistration file. The route sends requests to the area based on the request URL. To register routes for areas, you add code to the  Global.asax  file that can automatically find the area routes in the  AreaRegistration  file. AreaRegistration.RegisterAllAreas(); Benefits of Area in MVC Allows us to organize mode

Google reCaptcha v2 with MVC5, source: https://www.codeproject.com/Tips/894940/Google-reCaptcha-v-with-MVC

Download example - 5.5 MB Introduction The main purpose of this tip is to show a way of using the new Google reCaptcha plugin with MVC5. I think it would cover MVC4 as well. Background I was working on a project which required reCaptcha and the nuget plugin which seems to be the most documented in the old version. I couldn't find much on the new plugin, so I thought I should show how I came up with a solution. Using the Code To start, I signed up to reCaptcha and acquired my public and secret key. I added these to the  web.config  file. Hide     Copy Code < appSettings > < add key =" RecaptchaPrivateKey" value =" PRIVATEKEYHERE" / > < add key =" RecaptchaPublicKey" value =" PUBLICKEYHERE" / > < /appSettings > I then set out to display the reCaptcha plugin using an  HtmlHelper  extension. I pulled the public key from the  web.config  and sent back the HTML string. Hide     Copy Code

Bắt đầu với Selenium IDE (Cài đặt và Tính năng) – Selenium Tutorial #2 - nguồn https://viblo.asia

Hình ảnh
Trong bài hướng dẫn lần này, chúng ta sẽ học về  Selenium IDE , bắt đầu từ việc cài đặt đến tìm hiểu chi tiết về các tính năng của tool. Kết thúc bài hướng dẫn, hi vọng các bạn đọc sẽ có thể cài đặt IDE và thử nghiệm với các tính năng của nó. Giới thiệu về Selenium IDE Selenium integrated development environment - Môi trường phát triển được tích hợp Selenium, được viết tắt là Selenium IDE là một tool test tự động được phát triển như một plug-in của trình duyệt Firefox. Đó là một trong những tool đơn giản và dễ nhất để cài đặt, học và tiến tới việc viết kịch bản test. Tool được dựa trên tính năng play and record - chạy và ghi lại rất cơ bản và cho phép chỉnh sửa lại các kịch bản đã được record. Điểm ấn tượng nhất trong việc sử dụng Selenium IDE là người dùng không cần phải phải nắm được bất kỳ kiến thức lập trình trước. Họ chỉ cần biết một chút về HTML, DOMS và JavaScript để tạo ra nhiều kịch bản test bằng tool này. Là một plug-in của Firefox, Selenium IDE chỉ hỗ trợ trên trình