Solved

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

Posted on 2010-11-19
3
340 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
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…

828 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