Redirect Mobile Users to Mobile Website using Javascript
Very handy code to redirect mobile users to your mobile website. Simplify put it on the home page of your...
Very handy code to redirect mobile users to your mobile website. Simplify put it on the home page of your...
Get screen width and height on a webpage using JavaScript using the screen object <script type="text/javascript"> document.write(screen.width+'x'+screen.height); </script>
Hiding a DIV using javascript document.getElementById('myDIV').style.display = 'none'; Showing it back document.getElementById('myDIV').style.display = '';
The following link can be used to make phone numbers click-able. This code should work on all phone sets. Its...
Contains can be used like Context.table.fieldname.Contains("Criteria") var query = from u in context.users where (u.full_name.Contains(criteria) || u.email.Contains(criteria)) select u;
Fetching all users var query = from u in context.users select u; Add a condition to filter it by user...
using (var context = new MyEntities()) { int count = (from t1 in context.table1 where t1.user_id == userID select t1).Count();...
Make sure jQuery library file is referenced in the code The Javascript part <script language="javascript" type="text/javascript"> $(document).ready(function () { $('#signup').submit(function...
Below is months dropdown list having myClass as the css class name @Html.DropDownList("months", (SelectList)ViewBag.Months, "--Select--",new { @class = "myClass" })
Function returning meta tags. Could use database to get the values function get_meta_tag() { $array = "My Title"; $array =...