Solved

Need help using webservices to update a datalist in VB.net  3.5

Posted on 2010-11-19
3
339 Views
Last Modified: 2012-06-27
I'm a newbie to asp.net...  I'm using web services to send values into my code behind and I know how to replace an id using that...   So I can pass a value from JavaScript to the code behind and then use the JavaScript to display a different value.   But, I actually need to be able to replace a data-list on my page...  Is that possible?  In PHP I would usually pass that table of data from a function using Ajax...  But,  I'm being told I need to use a data-list for this project...   Can I put an entire data-list (from the aspx code) into a vb call in the code-behind and then call that function on page load and from  my web-services calls?  Or does that make sense?   I could've done this in an hour in PHP...

Please help!  Thanks!
0
Comment
Question by:stephenmp
  • 2
3 Comments
 
LVL 28

Accepted Solution

by:
strickdd earned 500 total points
ID: 34175634
I think your best option is to use the built-in microsoft ajax control called the UpdatePanel. This will pass everything you need back and forth. the only other "easy" way would be to not use the datalist and create the display HTML manually and modify that through javascrtipt. Since you have to use the datalist, you obviously can't use that approach.
0
 

Author Comment

by:stephenmp
ID: 34175746
I was told that I couldn't use an update panel because the values will be dynamic based on the date a user selects...  So how can I use an update panel to accomplish this with a datalist...  My datalist is an array at this point...  But, if the user selects a new date, I would need to be able to change the whole datalist values...

So there is no way to create a datalist and place it in a string or object in the codebehind?
0
 

Author Closing Comment

by:stephenmp
ID: 34261712
Thanks
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question