Chuyển đến nội dung chính

Bài đăng

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

Eaiest way of debug the datatype mismatch in c#

     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

     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

     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

     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)) {         return;       }       var selValue = listbox.options[selIndex].value;       var selText = listbox.options[selIndex].text;       listbox.options[selIndex].value = listbox.options[selIndex + increment].value       listbox.options[selIndex].text = listbox.options[selIndex + increment].text       listbox.options[selIndex + increment].value = selValue;       listbox.options[selIndex + increme

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

     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

     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

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,             width: 50,             height: 50          });       world.add(square);       world.render();                var circle = Physics.body(          'circle', {             x: 250,             y: 250,             vx: 0.10,             radius:20             //width: 50,             //height: 50          });       world.add(circle);       world.render();      Physics.util.ticker.on(function(time, dt ){         world.step(time);      });          world.on('step', function(event){       

physicsjs circle coefficient for re-bouncing

     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

     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

     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 such websites, the size of the CSS is quite large and a lot of information may be repeated in multiple places. For example, maintaining a coherent color scheme throughout a document implies reusing a few color values at numerous positions in the CSS files. Altering the scheme, whether tweaking a single color or completely rewriting it, therefore be

ULLAKKAI ARUVI WATERFALLS

                                               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 town. Water is accessible in this water fall even in the summer season. Numerous vacationers come here for showering and to appreciate the nature. The pathway to this waterfall lies in the Reserve Forest. So you get the exceptionally immaculate air