Friday 30 December 2022

Education E-commerce Synopsis | BCA, MCA, Bsc, O-Level, A-Level, IGNOU

 Education E-commerce Synopsis



This is an e-commerce category project, with the help of this project, you can sell education-related material online such as audio, video, PDF, etc. A payment gateway is integrated with this project and detailed reporting is done for admin. The website is completely dynamic so there is no need to change any kind of static code. This website is completely secure and the latest technology has been used.

Thursday 15 December 2022

FormsAuthentication C# ASP.NET MVC

 


FormsAuthentication

FormsAuthentication class from System.Web.Security is used to authenticate a user whether login or not. FormsAuthentication class has many functions to check the user login and it's very easy to implement. Follow the code given below

Views

<h2>Login</h2>

<form method="post">

    <input type="text" name="UserName" placeholder="User Name"  required /><br /><br />

    <input type="password" name="Password" placeholder="Password" required /><br /><br />

    <input type="submit" value="Login" />

    @if (Request.QueryString["msg"] != null)

    {

        <br /><br />

        <span style="color:red">@Request.QueryString["msg"]</span>

    }

</form>

Monday 12 December 2022

How to insert into a table with just one IDENTITY column? SQL Server

 I have a table named Slider, Which stores my website's homepage slider image. So I need one column auto-increment identity field for the slider image record and the uploaded image will be renamed as the identity field value.

So I had to insert a row in a single-column auto increment field. I have achieved this by the query given below.

INSERT INTO [dbo].[Slider]  DEFAULT VALUES 

Next Topic