Hello, I’m Nilesh

Tag: JavaScript

  • JQuery UI AutoComplete TextBox from Database using PageMethod in ASP.Net

    In this post we’ll see how to user JQuery UI Autocomplete with asp.net pagemethod. For database, we’ll be using Northwind database. PageMethod: In above code, we’re fetching data from customer table from northwind database based on text entered by user. You may want to have this code in separate (data access) layer and must use […]

  • jQuery multiselect plugin retain selection on postback in Asp.net

    The jQuery Mutiselect plugin allows users to select multiple items from the options available in the dropdown. When we click on the dropdown, it looks something like the below : Check out the demo page of the plugin here. The problem with the plugin is that it won’t remember the user selection, and value will […]

  • Reset .net validation controls client side

    We often provide form reset functionality, and people handle it client-side or server-side. Generally, we validate user input and show the proper validation messages. But sometimes, the user has entered the wrong information, and thus it will display validation messages. Now, if you have handled form reset functionality client-side, you must also reset all validation […]

  • How to display message box in Asp.net?

    Every new beginner from windows form development background uses MsgBox.Show method but unfortunately it executes server side and will display the message box on server. Then they ask it on different forums seeking help, how to display message box in Asp.net then? (one of the most frequent and common question on asp.net forums) There are […]

  • Show Modal Dialog with Asp.net webpage

    For last few days one question is arising on asp.net forums and that is how to display Modal Dialog with Asp.net webpage. It can be done using JavaScript ShowModalDialog method. Syntax: Where This method is introduced by Microsoft Interent Explorer4 and support added to Firefox 3. Firefox 3 doesn’t support dialogHide, edge, status, or unadorned […]

  • Nested Gridview in Asp.net 2.0

    As I said in my last post, I would write about the Check/ Uncheck checkboxes of Treeview based on database value, and I think it’s very easy, so skipping that part and here I am going to write about Nested Gridview will look like the below image: Rather than displaying Nested Gridview in the same […]

  • TreeView Node Value at Client Side

    As I said in my last post, in this post, I will demonstrate how to retrieve the value of selected nodes on the client side. First of all, if you are not aware of how to Populate Treeview dynamically with database fields and check/ Uncheck TreeView Checkboxes, then please refer to respective posts. Here’s the snap of Treeview selected nodes: As […]

  • Check/ Uncheck Treeview Checkboxes with Javascript

    As I said in my last post, I would post the code on retrieving treeview node values on the client and server sides. But before that, we must add a client script to check/ uncheck treeview checkboxes. First of all, add the following to your page_load event: C# VB JavaScript Next time I will post […]