Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 July 7th, 2006, 09:22 AM
Registered User
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Populating a list control using clientside JS

I have created a page which populates a server side asp.net list control using Jsvascript. When I click a asp serverside button to perform the postback any items added to the control are not seen by the server side hence can not update a server side database with the items.

Any help would be much apreciated.

Robbie


 
Old July 11th, 2006, 12:19 PM
Authorized User
 
Join Date: Dec 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ysiline Send a message via Yahoo to ysiline
Default

I am not sure whether you populate that list control using pure ASP.net control or just a simple HTML list control...but mostly likely you are using HTML control so...you will handle it post value by "Context.Request.Querystring('control_name')" or "Context.Request.Form('control_name')".....

If you are using multi-selected list....it's better to stor the item value in any hidden control...and post it....

just an idea....not sure whether it can help or not.








Similar Threads
Thread Thread Starter Forum Replies Last Post
Populating a list box VBAbeginner Access VBA 1 April 8th, 2008 09:24 AM
Populating list view columns Yasho Visual Basic 2005 Basics 1 December 21st, 2006 05:29 PM
populating textboxes using list/Menu rylemer Javascript 0 November 23rd, 2005 10:05 PM
populating a drop down with a file list cjcd BOOK: Beginning ASP.NET 1.0 1 April 17th, 2004 02:53 AM





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