Solved

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

Posted on 2010-11-19
3
341 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
vb.net convert long time to mm:ss 23 34
Data organization issue 7 56
ASP.Net problem with GridView using filters and checkboxes on lines 9 42
Json and ajax javascript 24 25
The most up-to-date version of this article is on my Blog https://iconoun.com/blog/
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

751 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