.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Moving items from ListBox1 to ListBox2 using jquery

Posted By:      Posted Date: October 15, 2010    Points: 0   Category :ASP.Net

HIi guys,

I have two ListBoxes.I want to movie items from ListBox1 to Listbox2 using jquery.

I want to save ListBox2 items in Xml file.

But i am unable to get ListBox2 items after moving from ListBox2.

I searched for this problem.Solutions is Use HiddenField for getting server side.

I am new to Dot net.So Explain with one simple example.

Thanks all,

Rama krishna

View Complete Post

More Related Resource Links

how to add listbox1 items to listbox2 ?

I have 2 listboxes,if i select listbox1 items ,it has to be displayed in listbox2 without duplicate values.for example if i select item "usa" in listbox1 it has to be added in listbox2.Aagain if i select " usa" it should not add to listbox2.one more point is i dont want to delete items from listbox1 once i select.

jQuery: Styling DropDownList Alternating Items (Rows)

In the following example, I will show how you can style any asp:dropdownlist very easily.

The example demonstrates how you can change alternating row items background color, using the fadeTo() to add a nice touch in the dropdownlist. You can change alt rows with a couple lines.

Cannot count number of checked items using jQuery

Hello,Using Microsoft built-in jquery files, when counting numbers of checked checkbox, the jquery-1.4.2.min.js cannot count the correct result ,however, the version jquery-1.3.2.min.js gives out the correct one, why?            $("#check").click(function () {                var nameSports = new Array();                var i = 0;                $('input[name=selector]:checked').each(function () {                    nameSports[i] = jQuery(this).val();                    i += 1;                });                if (loopCounter != 0) {                    alert(i);                }  

Help Moving Datagrid items with Up and Down arrows!!



I need some help.  I have a datagrid that has photos and a description of the individual in the photo.  I have a procedure that works and if I execute it with the correct parameters it changes the rows in the table.  I have a datagrid with two image buttons, MoveUp and MoveDown.  I just want to be able to reorder the photos when needed.

In my proc called "MoveMember" I have these parameters that are passed in.  The column that gets swapped in my table is the "OrderBy" column, they are just numeric numbers 1,2,3,4 etc.

So in my procedure 2 and 3 can be interchanged. 

@FMFacultyID INT,
@FMFirstOrderBy INT,
@changeValue INT,
@FMSecondOB INT 

Populating listbox2 values after selecting item of listbox1 in Infopath



In Infopath I have two listboxes say listbox1,listbox2.In listbox1 i have the items of list,now my requirement is as soon as i select first item in listbox1,listbox2 values should get populated from other.Please share me your ideas/relevant articles that you have

Thanks & Regards,


Thanks & Regards, Sudheer

JQuery - How to display three items per row ?


Hi everyone,

Can you please modify the following code so that it can display three items per row ?



<table id="RSSTable" cellspacing="0">

    {#foreach $T.d as post}
      <td><a href="./ProductDetail.aspx?ProductId={$T.post.ProductId}">{$T.post.FName}</a></td>

Error moving items with Business data column


Hi people,

I'm trying to move items from a list with a business data column using the move option through content and structure manager but once the proccess are completed, in the destination list I recieve this error when try to add or edit elements: "Failed to retrieve data from a system". Even when i try to modify the business data column , i recieve this another error:"an error has ocurred".

I've tried this operation in two difer site collections and this error always ocurr, Is there a way copy or move list items with business data column, or this is a bug of the plataform?

Thanks and best regards, 


JQuery and List Folder items



I try to get all items inside a folder from a SharePoint list using JQuery and GetListItems methoed of lists.amsx web service.

Can somebody tell me how do I do this ?

I use Jquery as follows but this does not work:

    <soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'>
        <GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'>
              <FieldRef Name='Title' />
              <FieldRef Name='ContentType' />
         <QueryOptions xmlns='' />

GridView Confirmation Box Using JQuery BlockUI in asp.net

JQuery is the most popular JavaScript library. One of the main reasons for its fame is the plugin architecture. Anyone can create a separate library that leverage the JQuery library. In this article we are going to look at the BlockUI library which is used to block the user screen while performing a task.

jQuery $(document).ready() and ASP.NET Ajax asynchronous postback

Many call it the ASP.NET jQuery postback problem, but using the technique below should make it no problem anymore. $(document).ready() isn't called after an asynchronous postback. What this means? You lose the functionality that should be executed within $(document).ready() after an UpdatePanel rendered its contents after an asynchronous postback.

call JavaScript - jQuery code from ASP.NET Server-Side

jQuery got so close to me lately that I can see myself adding the scripts to my project almost unconsciously. The thing is, jQuery is very useful for me, in almost all situations and it has been a do or die enhancement for all my project since I first put my hands on it.

Of course while using it, you encounter few situations which need a bit of research to solve, mostly when you are trying to combine it with some other technologies like: UpdatePanels and ASP.NET Ajax. For instance there are many situations when I would like to run some jQuery magic based on some decision that I make on the server side.

Making Ajax Callbacks to the Server Using jQuery with ASP.NET

In the first part of this article series I introduced jQuery's functionality and how it provides a rich client side programming model. This time around I'll expand on these concepts and show you how you can use jQuery in combination with ASP.NET using it as an AJAX backend to retrieve data. I'll also discuss how you can create ASP.NET controls and otherwise interact with jQuery content from ASP.NET pages in WebForms.

jQuery is just a JavaScript library so it will work seamlessly with ASP.NET both from page code as well as through backend driven code using the Page.ClientScript object or ScriptManager. You can use jQuery on its own as a client side and Ajax library that communicates with ASP.NET or you can use jQuery in combination with ASP.NET AJAX. The two actually complement each other quite well as jQuery provides functionality that the ASP.NET AJAX library does not and vice versa. For the most part the interaction between the two libraries is trouble free except for a few very rare edge cases.

Displaying Row Details Tooltip on GridView using JQuery

Continuing exploring JQuery! I decided to implement a feature to display some kind of details related to a row displayed on GridView. For example when displaying employees details on GridView some information might not fit in the GridView because it will make it huge and wide. These infomration can be diplayed as Tooltip. Or when you want to display a picture and some kind of formated text to be diplayed as tooltip when mouse hover on the image.

jQuery: Highlight Gridview Rows with Checkbox

Im learning and experimenting with jQuery and ASP.NET. Below is a simple solution I created to highlight rows in a gridview by clicking on a checkbox next to the row.

Gridview setup:

Using jQuery with ASP .NET

With that, JQuery is officially embraced by ASP.NET.

A brief introduction of JQuery

jQuery is the star among the growing list of JavaScript libraries. A few of its characteristics are light-weight, cross-browser compatibility and simplicity. A common task that sometimes takes 10 lines of code with traditional JavaScript can be accomplished with jQuery in just one line of code. For example, if you want to dress up a table with an ID mytable with alternative color for every other row, you can simple do this in jQuery.

Sortable GridView using jQuery's TableSorter

This article explains how to use jQuery's plug-in Tablesorter to implement client-side sorting in an ASP.NET GridView. This comes in handy especially when an ObjectDataSource is used with a GridView as GridView does not provide sorting out of the box.

Sorting Gridview using Jquery with ASP.NET

I want to show how to sorting a gridview using a Jquery in ASP.NET, it is a flexible client-side table sorting. We have known that Jquery is a new kind of Javascript Library. You can find detail of Jquery in this site http://jquery.com/ there are lot of example with documentation and also allow free download a latest version.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend