Wednesday, 6 November 2024

Send OTP Using C# MVC5

 



This blog post will guide you through implementing OTP verification during user signup using C# in ASP.NET MVC5. I've simplified the steps to make the OTP verification process clear and easy to Implement.

Tuesday, 22 October 2024

Razorpay payment gateway intergration C# ASP.Net MVC5

 

Streamline your payments with Razorpay integration in ASP.NET MVC5 using C#. This comprehensive guide provides step-by-step instructions and includes well-commented source code.

Key benefits:
  • Versatile application: The code can be seamlessly integrated into any e-commerce or web application requiring a secure payment gateway.
  • Real-world example: The accompanying sample code demonstrates a printing house scenario, similar to VistaPrint, where users upload PDFs for printing and utilize Razorpay for secure transactions.

Need help? Don't hesitate to reach out for assistance via email at rajkumar9795@gmail.com.

Screen Shots



Checkout

Checkout


Razorpay Payment Page

Monday, 26 August 2024

Enum C#

public  enum BranchCode
{

            Branch1=1,

            Branch2,

            Branch3

}

Console.Write(((int)BranchCode.Branch2));


Sunday, 30 June 2024

Fill date in input type date using javascript

<input type="date" name="DOB"  id="dob" placeholder="Date of Birth  " >

Input type date takes date in format of yyyy-mm-dd. But it will show you as per your local clock setting.

While editing A form we need to fill the date coming from the database into the date picker. You will have to change format yyyy-mm-dd otherwise date will not be show .

My date formate coming from the database is 15-05-1985
 <input type="hidden" id="ddob" value="@Model.DOB" />

var dt = new Date($("#ddob").val().split("/").reverse().join("/"));

        var td = dt.getFullYear() + "-";

        month = (dt.getMonth() + 1);

        if (month < 10)

            td += "0" + month;

        else

            td += month;

        td += "-";

        day = dt.getDate();

        if (day < 10)

            td += "0" + day;

        else

            td += day;       

        $("#dob").val(td);


Next Topic