Binding DropDownListFor from enum, database and some hard coded values in our previous article [MVC dropdown binding best ways][1]. In this article we will try to bind child Dropdown on selection change of parent Dropdown, say Country to State or Sate to City, by using jQuery which will call an action in controller and return JSON for selected id, and with the help of jQuery append values to... By Ali Adravi On 11 Apr 2015 Viewed: 168,728
In this article we will discuss different way of show and hide (open and close) modal popup by using Ajax ModalPopupExtender, how to open/close a modal popup from code behind in asp.net or by using JavaScript, how to use multiple buttons to hide the modal popup in asp.net etc. Suppose we have a grid view to show the record in tabular format and give functionality to edit a record from grid... By Jonathan King On 08 Apr 2013 Viewed: 28,543
I was checking how to validate a user email from database without post back, using JavaScript. After some search and RND found the way to call the web service method with the help of Ajax and JavaScript. Let’s say we have a registration page on which we accept email from the user and we expect it should be unique in entire database. So we need a method to immediately validate the email from... By Ali Adravi On 24 Jun 2012 Viewed: 14,569
There are ways to call a web service method JavaScript, for more detail you can see [how to retrieve data from database using JavaScript in asp.net][1], but is there any way to call a normal method from JavaScript? And the answer is No; show how we can call a code behind method from JavaScript, let’s see this with code Add following HTML on page: <asp:ScriptManager ID="ScriptManager1"... By Jonathan King On 08 Apr 2013 Viewed: 12,445
We can use JavaScript to get parent element or jQuery to get parent element but which one would be best for you is up to your need and familiarity with JavaScript and jQuery. In this article we will take different conditions and examples to show how jquery finds parent element and same case with JavaScript. First we will see the simplest form of parent of any element <div id="div1"> ... By Hamden On 06 Apr 2013 Viewed: 10,479
I was searching for select/deselect all checkboxes code into a gridview. I found most of them only provide to select and deselet all the checkboxes if any of the checkbox is unselected into grid the main checkbox is not affecting. I further try to search some useful code but could not found any useful solution, some of them are selecting all the checkboxes on the page or some provides only to... By Ali Adravi On 10 Jul 2012 Viewed: 5,376
A website isn't complete without the inclusion of all the right elements. Progress bar is one of the key components of every website. It informs the user about the total waiting time for a particular web page or a specific task to load. Apart from adding value to the website, the progress bar is also capable of enhancing the overall user-friendly experience. Today, through this article I'll be... By Celin Smith On 18 Feb 2015 Viewed: 4,955
There are many situations when we need our progress icon at mouse pointer, if page is quite big then we can not show the progress icon either on top or at bottom, in that case if user is doing something in middle of the page then he can not see the progress or wait icon. Suppose we have a grid which shows 100 records per page with some edit functionality, it is useless to show the progress... By Flower On 31 Dec 2012 Viewed: 1,243
Quill is an open-source, rich text editor developed to add wings on JavaScript powered projects. The text editor boasts a solid architecture and a feature-rich API so that you customize it on the basis of your project needs. Developed for modern browsers, Quill is a perfect substitute for WYSIWYG editors and addresses the challenges posed by them. It works exactly as per your needs and is... By Celin Smith On 13 May 2015 Viewed: 1,177
ArrayList and JavaScript, How to declare and store an ArrayList inside JavaScript, create an array in javascript, add item to javascript array, delete an item in an array in javascript, find an item in an array in javascript, these are the very basic question which most of the new developer searching for so I decided to write an articled to understand what is array in javascript and how it can... By Hamden On 30 Dec 2012 Viewed: 828
You can show and hide the content to get attention of the user on a web page. it's a very useful thing for web designer and web developers. You can use JavaScript and CSS to achieve it. I am going to show some examples of it. There are many libraries available on internet having the feature to hide and show different section of page but usually they carry heavy files to download which may slow... By Hamden On 30 Dec 2012 Viewed: 772
In JavaScript getAttribute() method is used to get the value of an attribute in an object. **Syntax:** object.getAttribute(attributename) **Parameter:** It takes only one parameter *attributename* **Example:** Suppose you have an anchor tag with following attributes <a href="http://www.advancesharp.com" id="hlnkWebsite" target ="_blank" title=... By Alicia Gonzalez On 02 Dec 2012 Viewed: 695
In JavaScript we have a function isNan (Not a number) to check whether the value is a number or not. It takes only one parameter, value and returns true or false, we will check here some values and conditions to understand it better. It supports in all browsers. isNaN(123); // false -- 123 is a number isNaN(1.23); // false -- 1.23 is a number isNaN(12 - 3); // false... By Jason Olivera On 30 Mar 2013 Viewed: 528