Bài đăng

Đang hiển thị bài đăng từ Tháng 5, 2016

Eaiest way of debug the datatype mismatch in c#

Hình ảnh
     Consider one situation I need to pass some data to sql using linq to sql, so I am created and object for dbml and send the values through it. But it show some error, we can easy to identify the error while give the value directly to the method, so we can find the data type mismatch error.      In the following image we are pass the value directly, so we can find the data type mismatch. Compare to the both image third variable is wrong.

How to get the selected value from asp radio button list?

     Usually some one checking all the radio button(checked or not) one by one and get the selected radio button value. But we can get the radio button value in a single line using jquery. Example asp Radio button    <asp:RadioButtonList ID="Rbtn_ModeSetBy" runat="server">         <asp:ListItem Value="0">All Employees</asp:ListItem>         <asp:ListItem Value="1">Grade</asp:ListItem>         <asp:ListItem Value="2">Job Title</asp:ListItem>         <asp:ListItem Value="3">Employment Status</asp:ListItem>    </asp:RadioButtonList> jQuery Code    var val =$('[id*="<%=Rbtn_ModeSetBy.ClientID%>"]').find('input:checked').val();

Hatsun curd reviews

Hình ảnh
     I am a customer of hatsun curd . I brought two hutsun curd for my 1year baby, but it was defected and have some bad smell so I thought it reached the expiry date, but 5days left for expiry. So please don't brought, mainly for baby's. I saw the defect, if I not seen then? I can't think about it. I attached some screen shot below please seen it and don't brought it for your baby's. Note:      If any hatsun related pepole seen this post please I request you to care about this problem.

Create Simple Notepad using javascript

Hình ảnh
     In the following code is used to create a simple notepad, used to enter the text and apply bold,italic and underline style. Example Program:- (Editor) Editor is Loading... Output:- Advertisement

Move up and down listbox item using javascript

Hình ảnh
     In the following example,we can easy to move the list box item up and down using javascript code. Example     function listboxMove(listID, direction) {       var listbox = document.getElementById(listID);       var selIndex = listbox.selectedIndex;       if (-1 == selIndex) {         alert("Please select an option to move.");         return;       }       var increment = -1;       if (direction == 'up')         increment = -1;       else         increment = 1;       if ((selIndex + increment) < 0 ||         (selIndex + increment) > (listbox.options.length - 1)) {  ...

Select all values from list box in a single click using javascript

Hình ảnh
     The following example code will help you to select all or deselect all the items from list box using javascript code.     function listboxSelectDeselect(listID, isSelect) {       var listbox = document.getElementById(listID);       for (var count = 0; count < listbox.options.length; count++) {         listbox.options[count].selected = isSelect;       }     } Example Program:- (Editor) Editor is Loading... Output:- Advertisement

Warn the user if leave the current page using javascript

Hình ảnh
     In some situation user have chance to wrongly press back, close or reload button in browser, if we want to show any waning message we can use the onbeforeunload event. Example     window.onbeforeunload = function() {         return "Are you sure to go back?";     }; Example Program:- (Editor) Editor is Loading... Output:- Advertisement

physicsjs - Increase the restitution value for circle and retangle

Hình ảnh
In this example we are increase the edge-collision-detection restitution value.     Physics(function(world) {       // bounds of the window       var renderer = Physics.renderer(          'canvas', {             el: 'viewport', // id of the canvas element             width:500,             height:500          });       world.add(renderer);       var square = Physics.body(          'rectangle', {             x: 250,             y: 250,             vx: 0.10, ...

physicsjs circle coefficient for re-bouncing

Hình ảnh
     In this example each and every objects are interacting with other objects, this edge detection is automatically calculating. Example Program:- (Editor) Editor is Loading... Output:- Advertisement

physicsjs Collide with each other - animation

Hình ảnh
     In this example each and every objects are interacting with other objects, this edge detection is automatically calculating. Example Program:- (Editor) Editor is Loading... Output:- Advertisement

Variable in CSS

Hình ảnh
     We can use variables in css. CSS Variables are entities defined by authors, or users, of Web pages to contain specific values throughout a document. They are set using custom properties and are accessed using a specific functional notation var(). syntax    :root    {      --variable_name_1:value_1;      --variable_name_2:value_2;      ....      ....      ....      --variable_name_n:value_n;    } Example    :root    {      --clr:red;      --mrgn:50px;        }    div    {      background:var(--clr);      margin-top:var(--mrgn);    } Problems to solve      When building large sites, authors often face a maintainability challenge. In s...

ULLAKKAI ARUVI WATERFALLS

Hình ảnh
                                               ULLAKAI ARUVI WATERFALLS                             Ulakkai Aruvi is a wonderful falls on Pazhayar, near its birthplace. It is so named as it looks like a wooden utensil fit as a fiddle of hour glass. Left Keeripara in our WagonR with Senthil, a domain chief based at Keeripara, who is extremely acquainted with the part. Hit Thadikarakonam and took left for Azhagiapandiapuram along SH 45 of Tamil Nadu. Short stop at Azhagiapandiapuram for get-together light eatables and entered the restricted street to one side, coordinated towards the Western Ghats is the course from Trivandrum. SPECIALTY IN ULLAKKAI ARUVI:                       Ulakkai Aruvi is a natural waterfall located  in Azhagiapandipuram...