Friday, 28 February 2025

Parameterized Queries Without Stored Procedures In ASP.NET

 

Why Use Parameterized Queries?

Parameterized queries help prevent SQL injection, making them a secure way to interact with a database. While stored procedures are highly recommended for their security benefits and performance advantages, they also come with some practical limitations.

Tuesday, 25 February 2025

Coming Soon page with animated background

 


A Coming Soon page is essential when upgrading or launching a new website. Building or updating a website takes time, and working on it live may expose users to incomplete pages, which can leave a negative impression.

A better approach is to display a Coming Soon page while you work on the website in the background. Once your site is ready, simply replace the Coming Soon page with your live website.

I have created a fully responsive Coming Soon page with smooth animations in the background. Just copy the code below, save it as a .html file, and upload it to your server.


Code (HTML, CSS, Javascript)

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Coming Soon</title>

Thursday, 20 February 2025

Client Testimonal/ Review UI

 

review-testimonials


Responsive, Customizable Client Review & Testimonial UI
Enhance your website with a sleek and fully customizable client review and testimonial UI. Designed to seamlessly adapt to any device, ensuring a perfect fit and optimal user experience across desktops, tablets, and smartphones.

Fully Customizable Client Testimonial UI
Responsive design that fits every device, delivering a seamless user experience.

Tuesday, 24 December 2024

Summernote Image Upload at server in ASP.NET MVC5 using C#

 




Summernote is an online WYSIWYG (What You See Is What You Get) editor that is lightweight and easy to integrate into any platform. Its tools resemble those of MS Word, making it user-friendly and intuitive. By default, Summernote stores images as base64 strings in the database. However, this approach is not ideal from a bandwidth and performance perspective.

A better solution is to store images on a server and save only the file paths in the editor. Summernote also supports adding images via URL, providing additional flexibility.

In this post, I share my custom solution for saving images to a server and integrating them into the editor. Although the example is based on an ASP.NET MVC5 C# web application, the approach is platform-independent and uses jQuery AJAX to handle image uploads.