asp.net - Passing a JSON object to a ASPX page from Javascript - Stack Overflow
I'm have a page that's rendered in JS that loads some info from the server that the user can edit. The page has a "pop out" option (similar to gmail when you pose an email and can pop it out to another window).
Here's my problem, if the user changes any of the info in the page I don't want that to be lost when the page is popped out. There is far too much information in the page to pass it all in the URL so I was thinking the best way would be to send a JSON object to the ASPX page and have it parse the information into itself.
I've seen this done through Web Services but I was wondering if it would be possible to do it just through an ASPX page. Am I even on the right track or is there a better way to get the data from the JS code into the ASPX page that I'm overlooking?
Thanks!
I'm have a page that's rendered in JS that loads some info from the server that the user can edit. The page has a "pop out" option (similar to gmail when you pose an email and can pop it out to another window).
Here's my problem, if the user changes any of the info in the page I don't want that to be lost when the page is popped out. There is far too much information in the page to pass it all in the URL so I was thinking the best way would be to send a JSON object to the ASPX page and have it parse the information into itself.
I've seen this done through Web Services but I was wondering if it would be possible to do it just through an ASPX page. Am I even on the right track or is there a better way to get the data from the JS code into the ASPX page that I'm overlooking?
Thanks!
Share Improve this question asked May 10, 2011 at 18:23 johnhaley81johnhaley81 1,19310 silver badges14 bronze badges2 Answers
Reset to default 2You could create a PageMethod on the ASPX page, and use that to process the JSON data.
Take a look at this nice article from Encosia.: http://encosia./2008/05/29/using-jquery-to-directly-call-aspnet-ajax-page-methods/
the answer is yes. you can use call page method from client side
here is an example using jQuery to directly call ASP.NET AJAX page methods
- 向iPhone学习:谷歌计划改进Android后台管理机制
- 谷歌收购移动软件商Quickoffice 整合Apps
- windows 10 - Gamemaker Mobile device Inconsistent Drag Speed Across Different Operating Systems (Win7 vs. Win10) - Stack Overflo
- linux - Zowe Config Error popping up on VSCODE? How may I fix this error? - Stack Overflow
- flutter - App Name Not Updating in Android Recent Apps View Despite Manifest and Strings Configuration - Stack Overflow
- c# - Loading data to dataGridView freezes the window during loading, why threading does not work here? - Stack Overflow
- testrigor - Exception upon running tests to run database query - Stack Overflow
- How do I configure nginx for proxy_pass and ssl redirect? - Stack Overflow
- x86 - how does internal functions of kernel resolve after paging? - Stack Overflow
- java - JAR works in Command Prompt but not in PHP - Stack Overflow
- sql - Merge tables with different timestamps? - Stack Overflow
- javascript - How to secure a Nextjs API call with supabase service key? - Stack Overflow
- docker - Python Telegram bot freezes when run by Airflow - Stack Overflow
- c# - Trouble when setting up Serilog in ASP.NET Core Web API - Stack Overflow
- ios - SwiftUI TextField with UIKit wrapper expanding full screen when entering numbers in custom crypto swap interface - Stack O
- window - Strawberry Perl doesn't include Win32::shortcut? - Stack Overflow
- javascript - useState rerenders bindings increment when key added to object but not removed - Stack Overflow