Sunday, 5 August 2018

Jquery search

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication3.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#myInput").on("keyup", function () {
                var value = $(this).val().toLowerCase();
                $("#myTable tr").filter(function () {
                    $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
                });
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <tr>
                <td>
                    <input type="text" id="myInput" name="fname" /></td>
            </tr>

            <table id="myTable" width="100%">

                <tr>
                    <th>First Name</th>
                    <th>Last Name</th>
                    <th>Email</th>
                </tr>
                <tr>
                    <td>Manoj</td>
                    <td>Sahoo</td>
                    <td>manoj@example.com</td>
                </tr>
                <tr>
                    <td>Rakesh</td>
                    <td>Dixit</td>
                    <td>rakesh@mail.com</td>
                </tr>
                <tr>
                    <td>Vipin</td>
                    <td>Dalei</td>
                    <td>vipin@greatstuff.com</td>
                </tr>
                <tr>
                    <td>April</td>
                    <td>Sahoo</td>
                    <td>april@abc.com</td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>

Tuesday, 17 April 2018

Fortran Compile


Fortran Compile
         !ashutosh
!declare below two lines
                  integer*4     val1   
                  character*10   chr2
                  val1=1003
!call below two lines where ever required
         write(chr2,"(I4.4)")val1
         CALL Write_To_Pipe(chr2)
                   !ashutosh

OR


OPEN(5, FILE='C:\MVRS\Routes\DATALOG.TXT',ACCESS='APPEND')
       WRITE(5,*)ERT_ID ! this a characer
             CLOSE(5)
 

Friday, 2 March 2018

Temp Table

Create Table #MyTempTable (
    EmployeeID int,
    Name varchar(100)
);

Insert Into #MyTempTable SELECT dbo.Employee.Id as EmployeeID, dbo.Table_1.Name as Name
FROM   dbo.Employee INNER JOIN
             dbo.Table_1 ON dbo.Employee.Id = dbo.Table_1.id

Select EmployeeID, Name from #MyTempTable

Drop Table #MyTempTable

Saturday, 27 January 2018

multiselect check box in drop down using j query

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <link href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/css/bootstrap.min.css"
          rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>
    <link href="http://cdn.rawgit.com/davidstutz/bootstrap-multiselect/master/dist/css/bootstrap-multiselect.css"
          rel="stylesheet" type="text/css" />
    <script src="http://cdn.rawgit.com/davidstutz/bootstrap-multiselect/master/dist/js/bootstrap-multiselect.js"
            type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $('#lstFruits').multiselect({
                includeSelectAllOption: true
            });
        });
    </script>

</head>
<body>

    <select id="lstFruits" multiple="multiple">
        <option value="1">Mango</option>
        <option value="2">Apple</option>
        <option value="3">Banana</option>
        <option value="4">Guava</option>
        <option value="5">Orange</option>
        <option value="6">Orange</option>
    </select>
    <input type="button" id="btnSelected" value="Get Selected" />

</body>
</html>