A callback function is executed after the current effect is finished.
after the shadow is 100% complete
$("button").click(function(){
$("p").hide("slow", function(){
alert("The paragraph is now hidden");
});
});
A callback function is executed after the current effect is finished.
after the shadow is 100% complete
$("button").click(function(){
$("p").hide("slow", function(){
alert("The paragraph is now hidden");
});
});
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"
type="text/javascript">
var value = $('.txtTest').val();
</script>
<input runat="server" id="txtTest" value="test" class="txtTest" />
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">
$(function(){
$("#input1").val("Hello world");
});
</script>
<input type="text" id="input1" />
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">
function test() {
var recipient = $("#<%=txtTheoryHours.ClientID%>").val();
var theoryHours = $('#<%=txtTheoryHours.ClientID %>').val() == '' ? 0 : $('#<%=txtTheoryHours.ClientID %>').val();
var practicalHours = $('#<%=txtPracticalHours.ClientID %>').val() == '' ? 0 : $('#<%=txtPracticalHours.ClientID %>').val();
//to get the value
var ojtHours = $('#<%=txtOJTHours.ClientID %>').val() == '' ? 0 : $('#<%=txtOJTHours.ClientID %>').val();
var genericNOSHours = $('#<%=txtGenericNOSHours.ClientID %>').val() == '' ? 0 : $('#<%=txtGenericNOSHours.ClientID %>').val();
var nsqfReimburseCourseDuration = parseInt(theoryHours) + parseInt(practicalHours) + parseInt(ojtHours) + parseInt(genericNOSHours);
//to set the value
$('#<%=txt_NSQFReimburseCourseDuration.ClientID %>').val(nsqfReimburseCourseDuration);
$('#<%=txt_NSQFcourseDuration.ClientID %>').val(parseInt(theoryHours) + parseInt(practicalHours));
}
<script>
<asp:TextBox ID="txtTheoryHours" runat="server" MaxLength="4" placeholder="Enter theory hours"
CssClass="form-control" onchange="test()" OnTextChanged="txtTheoryHours_textChanged" ></asp:TextBox>
or we can use clientidmode to static and directly use txt id
<asp:TextBox ID="txtPIPD" runat="server" ClientIDMode="Static"/>
javascript
$(function () {
$("#txtPIPD").datepicker({
changeMonth: true,
changeYear: true
});
});
<script language="javascript" type="text/javascript">
function test() {
debugger;
var recipient = $("#txtTheoryHours");
alert(recipient);
var theoryHours = document.getElementById('<%=txtTheoryHours.ClientID %>').value == '' ? 0 : document.getElementById('<%=txtTheoryHours.ClientID %>').value;
var practicalHours = document.getElementById('<%=txtPracticalHours.ClientID %>').value == '' ? 0 : document.getElementById('<%=txtPracticalHours.ClientID %>').value;
var ojtHours = document.getElementById('<%=txtOJTHours.ClientID %>').value == '' ? 0 : document.getElementById('<%=txtOJTHours.ClientID %>').value;
var genericNOSHours = document.getElementById('<%=txtGenericNOSHours.ClientID %>').value == '' ? 0: document.getElementById('<%=txtGenericNOSHours.ClientID %>').value;
var nsqfReimburseCourseDuration = parseInt(theoryHours) + parseInt(practicalHours) + parseInt(ojtHours) + parseInt(genericNOSHours);
document.getElementById('<%=txt_NSQFReimburseCourseDuration.ClientID %>').value = nsqfReimburseCourseDuration;
document.getElementById('<%=txt_NSQFcourseDuration.ClientID %>').value = parseInt(theoryHours) + parseInt(practicalHours);
// alert(theoryHours);
}
</script>
<asp:TextBox ID="txtTheoryHours" runat="server" MaxLength="4" placeholder="Enter theory hours"
CssClass="form-control" onchange="test()" OnTextChanged="txtTheoryHours_textChanged" ></asp:TextBox>
<script type="text/javascript">
function burstCache() {
if (!navigator.onLine) {
document.body.innerHTML = "Loading....";
window.location = "../Logout.aspx";
}
}
</script>
<body onload="burstCache()">
<form id="form1" runat="server" method="post" autocomplete="off" oncopy="return false;"
onpaste="return false;" oncut="return false;" ondragstart="return false;" onselectstart="return false;">
<div>
</div>
<form>
<body>
Devops: It is a mythology that is having continuous integration and continuous delivery. It save money.
Devops is a set of practices that combines software development and IT operations. It aims to shorten the systems development life cycle and provide continuous delivery with high software quality
> Devops engineer do all the responsibilities of entire life cycle.
Planning> Analysis> Design> Develop>Testing> Deploy> Maintenance
continuous development
------------------------------
Agile:- In agile, No documentation working on softwares., continuous deployment, continuous delievery
equal to condition
SELECT *
FROM table_name
WHERE mod(column_name,2) = 0;
------------------------------
Not equal to condition
SELECT *
FROM table_name
WHERE mod(column_name,2) <> 0;
SELECT max_student_allowed, max_student_allowed/2 AS Half_of_Max_Student, *, Total_Certified, Total_Placed,
Total_Trained FROM VW_getInvoiceBatchDetails WHERE Training_Partner_id = 'ESDM-HR-TP-000379' and batch_code = 'batch-hr-20452-db'
AND Total_Placed>=(CASE WHEN max_student_allowed % 2 = 0
THEN ((max_student_allowed/2))
ELSE ((max_student_allowed/2)+1)
END )
--------------------------------
Also we can use mod function for finding even and odd values
for even
SELECT *
FROM table_name
WHERE mod(column_name,2) = 0;
------------------------------
for odd
SELECT *
FROM table_name
WHERE mod(column_name,2) <> 0;
Use Firefox instead of Chrome
Dim i As Integer
protected void DDL_KIA_OnSelectedIndexChanged(object sender, EventArgs e)
{
//New Code Add on 15072020
DDL_FinYear.SelectedIndex = -1;
DDL_Course.SelectedIndex = -1;
DDL_Batch.SelectedIndex = -1;
DDL_Status.SelectedIndex = -1;
//BindYear();
}
<asp:DropDownList ID="DDL_Status" Width="150px" runat="server" AutoPostBack="true" CssClass="form-control input-sm" OnSelectedIndexChanged="DDL_Status_OnSelectedIndexChanged">
<asp:ListItem Value="-1">-- Select --</asp:ListItem>
<asp:ListItem Value="5">New Request</asp:ListItem>
<asp:listitem Value="0">Requested to KIA</asp:listitem>
<asp:listitem Value="2">Approved</asp:listitem>
<asp:listitem Value="3">Rejected</asp:listitem>
</asp:DropDownList>
START C:\"Program Files\Microsoft Visual Studio"\2022\Community\Common7\IDE\devenv.exe
start C:\"Program Files (x86)\Microsoft SQL Server Management Studio 18"\Common7\IDE\Ssms.exe
start C:\"Program Files"\Google\Chrome\Application\chrome.exe --profile-directory="Profile 21" "gmail.com" "mail.live.com" "sonipat.gov.in" "panipat.gov.in" "karnal.gov.in" "https://www.aiims.edu/en/notices/recruitment/aiims-recruitment.html" "http://www.nhmharyana.gov.in/page?id=37" "https://hartronservices.com/advertisement/" "https://iasri.icar.gov.in/Emp_vacancy.aspx/" "https://www.becil.com/vacancies" "https://www.iari.res.in/index.php?option=com_content&view=article&id=706&Itemid=471" "https://icar.org.in/content/vacancy-0"
start C:\"Program Files"\Google\Chrome\Application\chrome.exe --profile-directory="Profile 18" "email.gov.in" "localhost" "esdm-skill.deity.gov.in"
You can find (--profile-directory="Profile 18") this on
>Right click on Chrome
> Click on Properties
> Find this on target
> Click on Menu Icon left to "settings" in chrome
> Click on 'Manage profile' Icon right to "other Profile"
> Click on Profile settings icon
> Click on Edit and scroll down
> You will see "Create desktop icon" toggle button
> Also you can Customize profile or Change name in this settings.
> Open google Docs(docs.google.com)
> Click on Tools and click on Voice Typing
1) Drop Procedure
2) Create Procedure
3) Alter Procedure
> Click On File
> Click on save as
> In save as option Click on save 'Excel Macro enable file'
1048576
Sub test()
Dim rng As Range, cell As Range
Set rng = Range("A1:A10")
For Each cell In rng
cell.Value = cell.Value * cell.Value
Next cell
End Sub
or change Set rng = Range("A:A")
for lakhs of values
or
change
Set rng = Selection
Public Sub LoopCells()
Dim c As Range
For Each c In Range("A1:A10")
If c.Value = "FindMe" Then
MsgBox "FindMe found at " & c.Address
End If
Next c
End Sub
Public Sub LoopColumn()
Dim c As Range
For Each c In Range("A:A")
If c.Value = "FindMe" Then
MsgBox "FindMe found at " & c.Address
End If
Next c
End Sub
> Open Exce
> Click on Developer
>Click on Insert
>Click on Button
> Right click on it and Click on assign macro or click on edit macro
and paste below code
macro below
Sub Button5_Click()
Range("A1").Value = "hello"
End Sub
We can say macros are events(Click event) or functions just like asp.net.
To view Macro
>Open excel
>Click on Developer
> Click on Macros
> Select the macro and click on run
Record Macro
> Open Excel
> Click on 'Record Macro'
> Enter the name of the macro
> And click on OK
> Now enter the values in row or do any thing (create button)
> Now click on stop recording
> Now click on macros and you can run the macro
Create new macro with VB
>Open excel
>Click on Developer
>Click on Visual basic
>Under 'Microsoft excel objects'
>Click on Sheet 1
> Write the below code
Sub test()
ActiveCell.FormulaR1C1 = "12"
Range("A2").Select
ActiveCell.FormulaR1C1 = "34"
Range("A3").Select
End Sub
> And now click on Macros and click on Run
Edit Macro
>Open excel
> Click on Developer
>Click on Macros (test 1)and Click on Run
Delete Macro
>Open excel
> Click on Developer
>Click on Macros (test 1)and Click on Delete
First Drop procedure
Create procedure
Alter Procedure
>Click on settings
> Click on More tools
>Click on task manager
> Open Firefox
> Click on settings
>Click on zoom and click on default zoom to 110% or 125%
and there are other options such as font change etc.
>Open firefox
> Click on settings
>Click on Firefox settings and Click on Dark mode
or You can go to themes and change the theme
or you can use extensions below:-
https://addons.mozilla.org/en-US/firefox/addon/darkreader/
https://addons.mozilla.org/en-US/firefox/addon/night-eye-dark-mode/
> Click on Debug
> Click on Profiler
> Click on Diagnostic
https://whatsabyte.com/fix-100-disk-usage-windows-10/
Or you can use paging (reset virtual memory)
>Right Click on 'MY Computer'
>Go to Properties
> Go to 'Advanced System Settings'
>Click on 'Advanced' tab
> Click on settings
>Click on Advanced
>Click on Change
using System;
namespace FactorialExample
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter a number");
int number = Convert.ToInt32(Console.ReadLine());
long fact = GetFactorial(number);
Console.WriteLine("{0} factor
string cacheKey = "TestCache";
//Add cache
Cache.Add(cacheKey, "Cache content", null, DateTime.Now.AddMinutes(30), TimeSpan.Zero, CacheItemPriority.High, null);
Cache.Remove(cacheKey);//C# clear cache
IDictionaryEnumerator allCaches = HttpRuntime.Cache.GetEnumerator();
while (allCaches.MoveNext())
{
Cache.Remove(allCaches.Key.ToString());
}
Response.Write("Remove all caches!");
OR
>In IIS Goto HTTP Responses
>Click on 'set common headers'
> Click on 'Expire web content' and click OK
reference:- https://mohamedradwan.com/2010/12/26/caching-static-files-js-files-css-and-images-in-iis-7/
ASPX CODE
<%@ Page Title="" Language="C#" MasterPageFile="~/Common.master" AutoEventWireup="true" CodeFile="DecryptPassword.aspx.cs" Inherits="DecryptPassword" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Panel ID="panelOverlay2" runat="server" CssClass="Overlay" Visible="false">
</asp:Panel>
<asp:Panel ID="panelPopUpPanel2" runat="server" CssClass="PopUpPanel" Visible="false"
Style="left: 5%; right: 5%; top: 100px">
<asp:Panel ID="panelPopUpTitle2" runat="server" Style="width: 100%; height: 20px; text-align: right;">
//da.SelectCommand.CommandTimeout = 0; set this in c#
--------------------------------
run command prompt with administrator
Go to c:\windows\system32
run below command
netsh int ip reset c:\resetlog.txt
netsh winsock reset
ipconfig /flushdns
or disable or enable your internet
or goto network reset and restart now
<table cellspacing="1" cellpadding="6" width="100%" class="listTable persist-area">
<tr>
<td align="left" width="19%">Attendance Upload <br />(PDF with size up to 10 MB):<asp:Label ForeColor="Red"
runat="server" ID="Label34">*</asp:Label>
</td>
> Go to 'disk management' in control panel or write “diskmgmt.msc” in run
Click the below link
> Right click on Desktop
> Click on themes
> Click on 'Desktop icon settings'
> Check/uncheck checkbox 'Computer'
const num1 = 5;
const num2 = 3;
// add two numbers
const sum = num1 + num2;
// display the sum
console.log('The sum of ' + num1 + ' and ' + num2 + ' is: ' + sum);
document.getElementById('<%=txtTheoryHours.ClientID %>').value