Catatan

Menunjukkan catatan yang berlabel asp.net

How to Do Web Forms in VS 2022 (Even Though Microsoft Recommends Blazor/.NET 6)

Imej
  https://visualstudiomagazine.com/articles/2022/05/16/vs2022-web-forms-tip.aspx

Response.redirect raises "Thread was being aborted"

Imej
The Problem: The redirect code shows runtime error "Thread was being aborted" Solution : Response.redirect raises "Thread was being aborted" - https://stackoverflow.com/a/4874895/10763264 HttpResponse.Redirect Method

MSSQL Timeout expired. Max pool size was reached.

Imej
mssql 'Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.' Solutions:  1)  How can I solve a connection pool problem between ASP.NET and SQL Server?  https://stackoverflow.com/questions/670774/how-can-i-solve-a-connection-pool-problem-between-asp-net-and-sql-server 2) SQL Server Connection Pooling (ADO.NET)   https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/sql-server-connection-pooling#adding-connections 3) d

Create minimal WEB API ASP.NET

Imej
Tutorial: Create a minimal web API with ASP.NET Core https://docs.microsoft.com/en-us/aspnet/core/tutorials/min-web-api?view=aspnetcore-6.0&tabs=visual-studio Use a database with minimal API, Entity Framework Core, and ASP.NET Core https://docs.microsoft.com/en-us/learn/modules/build-web-api-minimal-database/?wt.mc_id=academic-0000-chnoring Return value JSON or XML format JSON and XML Serialization in ASP.NET Web API https://docs.microsoft.com/en-us/aspnet/web-api/overview/formats-and-model-binding/json-and-xml-serialization Deploying Web API ASP.NET Quickstart: Deploy an ASP.NET web app https://docs.microsoft.com/en-us/azure/app-service/quickstart-dotnetcore?tabs=net60&pivots=development-environment-vs The .NET Core Hosting Bundle https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/hosting-bundle?view=aspnetcore-6.0 Publish .NET 5 Web API on IIS || .NET Core Hosting on IIS

ASP.NET C# Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.

Imej
The Error: <asp:AsyncPostBackTrigger ControlID="Timer1" /> The Solutions: Change  <asp:AsyncPostBackTrigger ControlID="Timer1" /> to  <asp:PostBackTrigger ControlID="Timer1" /> Reference Solution: https://social.msdn.microsoft.com/Forums/en-US/cc3f69ee-6634-4f2c-ab97-0427825ce0e4/syswebformspagerequestmanagerparsererrorexception-the-message-received-from-the-server-could-not?forum=aspwebforms#:~:text=WebForms.-,PageRequestManagerParserErrorException%3A%20The%20message%20received%20from%20the%20server%20could%20not%20be,or%20server%20trace%20is%20enabled.

ASP.Net perform auto reload

Imej
Working with SQL Server ROWCOUNT

ASP.NET show console

Page.Response.Write("<script>console.log(' Message : " + message + "');</script>");