Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 14th, 2008, 01:34 AM
Registered User
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default List Box adding value inside a gridview

 salestxtName1=txt.id;
        chkCounter=document.getElementById(txt.id).value;
        var url='frmtotalproduct.aspx?v='+ chkCounter +'&Rnd='+Math.random();
        sendRequest(url,totalChanged);
        var drpprd = document.getElementById(txt.id);
        var drpprdText = drpprd.options[drpprd.selectedIndex].text;
               txtprdselected = drpprdText;
        alert(txtprdselected);
        var drpprdValue = drpprd.options[drpprd.selectedIndex].value;
        var lstprd = document.getElementById(listbox);
              if (drpprdValue > 0)
        {
        var myOption;
        myOption = document.createElement("Option");
        myOption.text = drpprdText;
        myOption.value = drpprdValue;
        //Added to List box
        lstprd.add(myOption);






Similar Threads
Thread Thread Starter Forum Replies Last Post
Two DropDownList Inside a Gridview ilayaraja ASP.NET 3.5 Basics 3 December 5th, 2008 06:26 PM
multi-column list box values moved to 2nd list box sbmvr Access VBA 1 May 14th, 2007 01:58 PM
adding items to list box using javascript k.manisha ASP.NET 1.0 and 1.1 Professional 3 February 16th, 2007 06:32 AM
TextBox inside GridView michurin ASP.NET 2.0 Basics 2 January 13th, 2007 12:51 PM
DropDownList inside a GridView aidoco ASP.NET 2.0 Basics 0 October 13th, 2006 04:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.