Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, March 13, 2008 5:45 PM
Hi
I want to be able to retrieve some data from a database when an object is clicked on the web page, but I don't want to refresh the page. When I used to use ASP I would use a hidden IFRAME (to do a hidden post) or even RDS (if I felt brave!). However, I have seen some .net sites that seem to handle this in a far more graceful way.
Not sure if the answer is actually AJAX and not through a .NET.
All replies (5)
Thursday, March 13, 2008 6:10 PM ✅Answered
You can use the AJAX.NET framework or you use your own javascript libaries but it is done through javascript calls.
Thursday, March 13, 2008 11:18 PM ✅Answered
You are looking for the UpdatePanel control.
-Damien
Thursday, March 13, 2008 11:30 PM ✅Answered
Use UpdatePanel Control
http://www.asp.net/ajax/documentation/live/overview/UpdatePanelOverview.aspx
http://www.asp.net/ajax/documentation/live/overview/UpdatePanelOverview.aspx#CodeExamples
Friday, March 14, 2008 5:43 AM ✅Answered
Actually it seems to me that you should use a ScriptService, if you are only retrieving data.
http://www.asp.net/ajax/documentation/live/tutorials/ExposingWebServicesToAJAXTutorial.aspx
http://weblogs.asp.net/dwahlin/archive/2006/12/28/understanding-asp-net-ajax-web-service-proxies.aspx
If you are updating any webcontrols based on the data you retrieve, then I would recommend an UpdatePanel.
Friday, March 14, 2008 7:18 AM ✅Answered
hi MattLuckham,
there are different ways to do this.
yes AJAX is also an option but if you dont want to go for AJAX then ASP.NET 2.0 has another option script call back .
so two options :
1) using asp.net script callback
2) using AJAX update panel for partial refresh .
3) using traditional JAVAscript method
Both of these ways has there own pros and cons so depending on the application need you have to select the better option.
IF you can provide details about platform you are using and the applicaiton scenario can give you some suggestion
-Priyanka
* Dont forget to mark as answer if my post help you