Friday, March 12, 2021

Responsive Image in container

Responsive Image in div  

img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: bottom; 
}  

Thursday, March 11, 2021

Scroll Up and Scroll Down In JavaScript

//Scroll Up and Scroll Down In JavaScript

var scroll_y = document.getElementById("div_top_header");
// Initial state
var scrollPos = 0;
// adding scroll event
window.addEventListener('scroll'function () {
    // detects new state and compares it with the new one
    if ((document.body.getBoundingClientRect()).top > scrollPos){
        // document.getElementById('info-box').setAttribute('data-scroll-direction', 'UP');
        console.log('UP');
        scroll_y.style.display = "block";
    }
    else{
        // document.getElementById('info-box').setAttribute('data-scroll-direction', 'DOWN');
        console.log('down');
        scroll_y.style.display = "none";
    }
        // saves the new position for iteration.
    scrollPos = (document.body.getBoundingClientRect()).top;
});

Monday, December 14, 2020

Register library in asp.net

 Register library in asp.net or import library in asp.net or using library in asp.net:-




<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Import Namespace="System" %>

<%@ Import Namespace="System.Data" %>




  <%

        Dim dt As New DataTable

        If (IsNothing(Session("bill_data")) = False) Then

            dt = Session("bill_data")

        End If


        Dim pg = Request.QueryString("pg")


    %>








Friday, November 20, 2020

Friday, November 6, 2020

Update in Linq

1. Update specific column in linq


 


                     using (var context = new db_context())

                        {

                            d.Srno = data.Srno;

                            context.Configuration.ValidateOnSaveEnabled = false;

                            context.Attendances.Attach(d);

                            System.Data.Entity.Infrastructure.DbEntityEntry<Attendance> entry = context.Entry(d);

                            d.Edate = date;

                            entry.Property(e => e.Edate).IsModified = true;

                            await context.SaveChangesAsync();

                        }

Saturday, August 15, 2020

Google Hindi Font Support in Photoshop 2019

 Menu

Edit > Preferences > Type 

Choose Text Engine Options

Tik on 

Middle Eastern and South Asian



Sunday, July 12, 2020

This page isn’t working

This page isn’t working

If the problem continues, contact the site owner.

HTTP ERROR 401



Linq Expression syntax for where condtion in linq

(Expression<Func<T, bool>> filter)