When the user clicks the button, I need to create a .bmp file on the server. After creating the .bmp file, I upload it to the html page. Would Ajax be the best way to do this?
Yes AJAX is the best way. This can be done through the ASP.NET AJAX mechanisms , jQuery itself or another of your choice.
If you just create an image to return to the browser, instead of calling the ASP.NET page life cycle (.aspx) instead, use a lighter HTTP handler (.ashx). Here is a server side example .
(HTTP handlers work by inheriting your class from something like DefaultHttpHandler or by implementing IHttpHandler instead of the Page class.
Additional Samples and AJAX Communications Notes:
, HTTP Monitoring, Fiddler, HTTP- .
: .
ajax - . jquery . - . , , .
http://docs.jquery.com/Main_Page
jQuery ajax documentation.
http://api.jquery.com/category/ajax/
jQuery, , , .
. BMP , HTML?
BMP , Serer, , JPG . , AJAX .
, AJAX - , ( ), .
, Fiddler, Firefox Firebug, -.
, .
, Ajax, , postback
You do not need to use Ajax. You can set your page to AutoEventWireUp = "false" and handle all events manually. Circle the Page_Load event on the click button and voila.
Source: https://habr.com/ru/post/1749103/More articles:Using a Bean Session - javaСравнение с вставкой в запрос лучше - performanceПередайте нам файл NuSOAP - soapWPF DataGrid HeaderTemplate Таинственное заполнение - c#Defining global in Python module from API C - cHow to deduce csv from enumeration of anonymous type? - c #Serialization of configurations for dependency injection / inversion - dependency-injectionwhere does IValueConverter.Convert return the CultureInfo parameter? - wpfМожете ли вы использовать веб-службу в качестве источника данных для почтового отправления - web-servicesCreating a foreign key in MySQL results in an error: - sqlAll Articles