Hii,
i am getting image details llike img src and img id in variables using javascript in aspx page.on button click i want to add these details into database. what is the way to achieve it?
JavaScript cannot directly call server side method. You will need to use ASP.Net AJAX or jQuery AJAX
ASP.Net AJAX
http://www.aspsnippets.com/Articles/Calling-server-side-function-from-JavaScript-in-ASP.Net.aspx
jQuery AJAX
http://www.aspsnippets.com/Articles/Make-AJAX-Call-to-ASP.Net-Server-Side-Web-service-method-using-jQuery.aspx
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.