<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Web Development topics</title>
    <link>https://techcommunity.microsoft.com/t5/web-development/bd-p/web-dev</link>
    <description>Web Development topics</description>
    <pubDate>Mon, 09 Mar 2026 11:32:37 GMT</pubDate>
    <dc:creator>web-dev</dc:creator>
    <dc:date>2026-03-09T11:32:37Z</dc:date>
    <item>
      <title>Blazor parameter passed by reference</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/blazor-parameter-passed-by-reference/m-p/4497411#M687</link>
      <description>&lt;P&gt;I got the impression that in Blazor parameters are always effectively passed by value which is why you need to use EventCallback for two-way binding to send a change in the parameter value back up to the component that passed it.&lt;/P&gt;&lt;P&gt;But not so; reference types really are passed by reference.&lt;/P&gt;&lt;P&gt;Therefore if a child component updates a parameter value that is a reference type then the value in the parent is changed and all you need to do is call `StateHasChanged` on the parent.&lt;/P&gt;&lt;P&gt;Is this as intended?&lt;/P&gt;&lt;P&gt;Have I misunderstood the documentation?&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://drive.google.com/file/d/1i1Rh36nHU1Z2voyHDtLVZ9GyziLw9AQq/view?usp=sharing&lt;/P&gt;&lt;P&gt;(Don't seem to be able to attach here and it's not really feasible to inline a whole Blazor project.)&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 09:58:37 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/blazor-parameter-passed-by-reference/m-p/4497411#M687</guid>
      <dc:creator>RichardB1640</dc:creator>
      <dc:date>2026-02-26T09:58:37Z</dc:date>
    </item>
    <item>
      <title>SharePoint List View Threshold Error while Fetching 5000+ Records in list.</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/sharepoint-list-view-threshold-error-while-fetching-5000-records/m-p/4496599#M686</link>
      <description>&lt;P&gt;I am fetching data from a SharePoint list that contains more than 5000 records inside my function. While retrieving the data, I am getting the following error:&lt;/P&gt;&lt;P&gt;“Flow Reminders→ The attempted operation is prohibited because it exceeds the list view threshold.”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The SharePoint list has 5000+ items.&lt;/LI&gt;&lt;LI&gt;Data is being fetched programmatically.&lt;/LI&gt;&lt;LI&gt;The error occurs during query execution.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;What I need help with&lt;/STRONG&gt;&lt;BR /&gt;What is the recommended and best-practice approach to retrieve large datasets from a SharePoint list without hitting the list view threshold?&lt;BR /&gt;Questions:&lt;/LI&gt;&lt;/UL&gt;&lt;OL&gt;&lt;LI&gt;What is the recommended approach to fetch large data from a SharePoint list without hitting the list view threshold?&lt;BR /&gt;&lt;BR /&gt;Any suggestions, examples, or documentation references would be greatly appreciated.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 03:49:05 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/sharepoint-list-view-threshold-error-while-fetching-5000-records/m-p/4496599#M686</guid>
      <dc:creator>AjayM</dc:creator>
      <dc:date>2026-02-24T03:49:05Z</dc:date>
    </item>
    <item>
      <title>It appears and error that does not exist</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/it-appears-and-error-that-does-not-exist/m-p/4477641#M683</link>
      <description>&lt;P&gt;&amp;nbsp;I am using VS 2022 Community&amp;nbsp; and when i develope asp.net apps it happens sometimes that it appears an error that does not exist adn only after many hours of searching for the error or rewriting the same code the app begins to run correctly. Somehitng simmilar happened to any of you ? how can i avoid these strange behaviour of the compiler ?&lt;/P&gt;&lt;P&gt;Thank you in advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Luis Martin&lt;/P&gt;</description>
      <pubDate>Sat, 13 Dec 2025 06:15:30 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/it-appears-and-error-that-does-not-exist/m-p/4477641#M683</guid>
      <dc:creator>lmobarq</dc:creator>
      <dc:date>2025-12-13T06:15:30Z</dc:date>
    </item>
    <item>
      <title>Connect .Net (4.6.2) to Dataverse using the Dataverse plugin</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/connect-net-4-6-2-to-dataverse-using-the-dataverse-plugin/m-p/4476310#M682</link>
      <description>&lt;P&gt;Hi Microsoft Tech Community,&lt;/P&gt;&lt;P&gt;We have a Dataverse environment in our tenant, and I have its URL. I'm building a .NET application and need to connect it to Dataverse for data access.&lt;/P&gt;&lt;P&gt;From the Learn docs, ChatGPT, and Copilot, it seems I need to use an App ID (Client ID) and Client Secret in the connection string (e.g., via Microsoft.PowerPlatform.Dataverse.Client). However, the Dataverse environment itself doesn't expose any App ID or Client Secret—where would I even find those if they exist?&lt;/P&gt;&lt;P&gt;Here's the code snippet we found online that's using OAuth with AppId and RedirectUri, but we're unsure about the app registration part:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using Microsoft.Crm.Sdk.Messages;
using Microsoft.PowerPlatform.Dataverse.Client;
using Microsoft.Xrm.Sdk;

class Program
{
   // TODO Enter your Dataverse environment's URL and logon info.
   static string url = "https://yourorg.crm.dynamics.com";
   static string userName = "email address removed for privacy reasons";
   static string password = "yourPassword";

   // This service connection string uses the info provided above.
   // The AppId and RedirectUri are provided for sample code testing.
   static string connectionString = $@"
   AuthType = OAuth;
   Url = {url};
   UserName = {userName};
   Password = {password};
   AppId = 51f81489-12ee-4a9e-aaae-a2591f45987d;
   RedirectUri = app://58145B91-0C36-4500-8554-080854F2AC97;
   LoginPrompt=Auto;
   RequireNewInstance = True";

   static void Main()
   {
      //ServiceClient implements IOrganizationService interface
      IOrganizationService service = new ServiceClient(connectionString);

      var response = (WhoAmIResponse)service.Execute(new WhoAmIRequest());

      Console.WriteLine($"User ID is {response.UserId}.");

      // Pause the console so it does not close.
      Console.WriteLine("Press the &amp;lt;Enter&amp;gt; key to exit.");
      Console.ReadLine();
   }
}&lt;/LI-CODE&gt;&lt;P&gt;Do I need to create a separate app registration in Microsoft Entra ID (Azure AD), link it to the Dataverse environment (perhaps as an application user?), and then use that app's Client ID/Secret in my .NET code? If so, could someone outline the exact steps, including permissions and Power Platform admin center setup?&lt;/P&gt;&lt;P&gt;Any guidance or links to official walkthroughs would be greatly appreciated—thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 07:18:58 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/connect-net-4-6-2-to-dataverse-using-the-dataverse-plugin/m-p/4476310#M682</guid>
      <dc:creator>AjayM</dc:creator>
      <dc:date>2025-12-09T07:18:58Z</dc:date>
    </item>
    <item>
      <title>Debug Asp.Net - "This site can't be reached"</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/debug-asp-net-quot-this-site-can-t-be-reached-quot/m-p/4461833#M678</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Today, all my Visual Studio 2019 Community projects stopped debugging and are displaying the following message in the browser: "This site can't be reached."&lt;/P&gt;&lt;P&gt;I've tried using Visual Studio 2022 Community, but the problem is the same. I have numerous projects (Asp.Net - vb), and they all have the same issue. Even creating a new project (VS 20219 or VS 2022), the error persists. I've tried reinstalling IIS Express, disabling my antivirus, and reinstalling Visual Studio 2022 (since it was just for testing). Nothing works.&lt;/P&gt;&lt;P&gt;Everything was working until yesterday, but now I can't work anymore. It seems like a Windows update, but I don't have restore points to revert to.&lt;/P&gt;&lt;P&gt;I'd appreciate it if anyone has any idea what this could be.&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 22:35:40 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/debug-asp-net-quot-this-site-can-t-be-reached-quot/m-p/4461833#M678</guid>
      <dc:creator>EduardoFornaro</dc:creator>
      <dc:date>2025-10-15T22:35:40Z</dc:date>
    </item>
    <item>
      <title>Debugging Java script in old asp core app</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/debugging-java-script-in-old-asp-core-app/m-p/4451729#M674</link>
      <description>&lt;P&gt;Hy, I need to modify an asp.net.core app witch I made years ago.&amp;nbsp; in version 2.2.&amp;nbsp; I do succeed to alter C# code in visual studio (2022), but I need to alter also some Java script. The problem is that if I try to do so and I want to debug it it seems that the script in my browser (MS Edge) is not changing.&lt;/P&gt;&lt;P&gt;I have enabled Java script debugging in VS. I emptied the browsers cache but nothing seems to help. When I run the application in debugging mode and hit F12 I still see the old script.&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;</description>
      <pubDate>Sun, 07 Sep 2025 21:13:19 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/debugging-java-script-in-old-asp-core-app/m-p/4451729#M674</guid>
      <dc:creator>RobertWarning</dc:creator>
      <dc:date>2025-09-07T21:13:19Z</dc:date>
    </item>
    <item>
      <title>Is Native RDLC Report Support Planned for Future .NET Versions?</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/is-native-rdlc-report-support-planned-for-future-net-versions/m-p/4445393#M672</link>
      <description>&lt;P&gt;Good day Team,&lt;/P&gt;&lt;P&gt;Given the demand for cross-platform reporting solutions, is there any plan to provide native RDLC (Report Definition Language Client-side) support for .NET Core or upcoming .NET releases (e.g., .NET 9 and beyond)? Many enterprise applications rely on RDLC, and the current lack of official support limits modernization efforts and forces continued reliance on the legacy .NET Framework or Windows-only workarounds.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is RDLC on the roadmap for future .NET versions, or should we consider alternative technologies for long-term reporting requirements? Any official guidance or updates would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 06:39:36 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/is-native-rdlc-report-support-planned-for-future-net-versions/m-p/4445393#M672</guid>
      <dc:creator>Velkumar</dc:creator>
      <dc:date>2025-08-19T06:39:36Z</dc:date>
    </item>
    <item>
      <title>Creating a pooled resource for Dependency Injection</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/creating-a-pooled-resource-for-dependency-injection/m-p/4441617#M670</link>
      <description>&lt;P&gt;Currently, we have AddSingleton(), AddScoped(), and AddTransient() to generate resources in DI.&lt;BR /&gt;&lt;BR /&gt;Is there a way to request a new feature for an AddPooled() which will allow us to create and reuse unused instances from a pool?&lt;BR /&gt;&lt;BR /&gt;I have a class that has an expensive creation (a little over 5 seconds) that cannot be instantiated as a singleton. I don't need it to maintain any state, so it would be an ideal candidate for a pooled resource in DI.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 16:58:55 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/creating-a-pooled-resource-for-dependency-injection/m-p/4441617#M670</guid>
      <dc:creator>WhiteEagle5150</dc:creator>
      <dc:date>2025-08-08T16:58:55Z</dc:date>
    </item>
    <item>
      <title>When should I use SQL Server, MySQL, or PostgreSQL?</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/when-should-i-use-sql-server-mysql-or-postgresql/m-p/4440172#M668</link>
      <description>&lt;P&gt;I'm working on a web application (using C#/.NET backend), and I need to choose a relational database. I'm considering three options:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Microsoft SQL Server&lt;/LI&gt;&lt;LI&gt;MySQL&lt;/LI&gt;&lt;LI&gt;PostgreSQL&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I want to understand:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;What are the strengths and weaknesses of each?&lt;/LI&gt;&lt;LI&gt;Which database is better suited for:&lt;BR /&gt;&lt;OL&gt;&lt;LI&gt;Transactional performance&lt;/LI&gt;&lt;LI&gt;Advanced querying / analytics&lt;/LI&gt;&lt;LI&gt;Ease of use with .NET&lt;/LI&gt;&lt;LI&gt;Cross-platform support&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Are there any licensing or hosting concerns I should consider?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My use case involves:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Moderate traffic&lt;/LI&gt;&lt;LI&gt;Complex queries with joins&lt;/LI&gt;&lt;LI&gt;APIs and background jobs&lt;/LI&gt;&lt;LI&gt;Deployment to cloud (Azure)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I’d appreciate any recommendations or real-world experience comparing these databases.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 10:28:41 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/when-should-i-use-sql-server-mysql-or-postgresql/m-p/4440172#M668</guid>
      <dc:creator>UdhayarajanJ</dc:creator>
      <dc:date>2025-08-05T10:28:41Z</dc:date>
    </item>
    <item>
      <title>Help with my ASP.NET API Application</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/help-with-my-asp-net-api-application/m-p/4414234#M660</link>
      <description>&lt;P class="lia-align-justify"&gt;I have been developing API for a full stack application with React FrontEnd in ASP.NET for my Internship project which is an Asset Management System. I have successfully implemented API Endpoints for CRUD with Authentication with JWT. What topic should I learn next ? &amp;nbsp;Should I start providing API Documentation or is there something else I need to learn ? I have also uploaded the Schema the project is using.&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;I am using ADO.NET instead of Entity Framework for quering with the database. The link to my Repository Source Code: &amp;nbsp;&lt;A class="lia-external-url" href="https://github.com/bibashmanjusubedi/Internship" target="_blank"&gt;https://github.com/bibashmanjusubedi/Internship&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 16:18:12 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/help-with-my-asp-net-api-application/m-p/4414234#M660</guid>
      <dc:creator>bibash</dc:creator>
      <dc:date>2025-05-15T16:18:12Z</dc:date>
    </item>
    <item>
      <title>Singleton Class with Async</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/singleton-class-with-async/m-p/4414127#M659</link>
      <description>&lt;P&gt;I'm working on building a Blazor Web App (.net 9) for an internal company portal.&lt;/P&gt;&lt;P&gt;I want to load some persistent data to be used throughout the app into a class and then load that class as a scoped service.&lt;/P&gt;&lt;P&gt;Most of the data will be fairly static, but expensive data to retrieve, ie: graph api call for members of groups, etc. So that data will also be loaded asynchronously.&lt;/P&gt;&lt;P&gt;Everything I've found regarding loading data into a class asynchronously basically points back to a post by Stephen Cleary on Asynchronous Lazy Initialization:&amp;nbsp;&lt;A href="https://blog.stephencleary.com/2012/08/asynchronous-lazy-initialization.html" target="_blank"&gt;https://blog.stephencleary.com/2012/08/asynchronous-lazy-initialization.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My question is, given that this post was originally posted back in 2012, is this still an acceptable way of loading data asynchronously for a singleton or are there other, more modern approaches to this scenario?&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 12:53:37 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/singleton-class-with-async/m-p/4414127#M659</guid>
      <dc:creator>GarudaLead</dc:creator>
      <dc:date>2025-05-15T12:53:37Z</dc:date>
    </item>
    <item>
      <title>aspnet c# iterate control in listview and remove a panel from placeholder in one column</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/aspnet-c-iterate-control-in-listview-and-remove-a-panel-from/m-p/4413198#M658</link>
      <description>&lt;P&gt;&lt;STRONG&gt;trying to iterate through controls in listview to remove panel01 from placeholder if detected row in database condition dt.Rows[i]["BidEndWithError"].ToString() == "no" in the row:&amp;nbsp;&lt;BR /&gt;But all the listview's panel01 being removed even dt.Rows[i]["BidEndWithError"].ToString() == "no" is not 'no'`your text`&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;`&amp;lt;asp:PlaceHolder ID="phLabel" runat="server"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:Panel ID="panel01" runat="server"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Day Left : &amp;lt;%# Eval("BidDayLeft") %&amp;gt;&amp;lt;/br&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Hour Left : &amp;lt;%# Eval("BidHourLeft") %&amp;gt;&amp;lt;/br&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Minute Left : &amp;lt;%# Eval("BidMinuteLeft") %&amp;gt;&amp;lt;/br&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Second Left : &amp;lt;%# Eval("BidSecondLeft") %&amp;gt;&amp;lt;/br&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/asp:Panel&amp;gt;&lt;/P&gt;&lt;P&gt;protected void lv01_ItemDataBound(object sender, ListViewItemEventArgs e)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (e.Item.ItemType == ListViewItemType.DataItem)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string constr = ConfigurationManager.ConnectionStrings["bidsystemdb"].ConnectionString;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; using (SqlConnection con = new SqlConnection(constr))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataTable dt = new DataTable();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //string strSQL = "Select * from BidTable2 WHERE ProductName='Toy 1'";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string strSQL = "Select * from BidTable2";&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SqlDataAdapter adpt = new SqlDataAdapter(strSQL, con);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; adpt.Fill(dt);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int ij = 0; ij &amp;lt; e.Item.Controls.Count; ij++)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; dt.Rows.Count; i++)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Response.Write("lv01 reached!");&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (dt.Rows[i]["BidEndWithError"].ToString() == "no")&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.Write("lv01 level 2 reached!");&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PlaceHolder _phLabel = e.Item.Controls[ij].FindControl("phLabel") as PlaceHolder;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Panel _pnlLabel = e.Item.Controls[ij].FindControl("panel01") as Panel;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _phLabel.Controls.Remove(_pnlLabel);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ContentPlaceHolder _MainContent = Master.FindControl("MainContent") as ContentPlaceHolder;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UpdatePanel _udp01 = _MainContent.FindControl("udp01") as UpdatePanel;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _udp01.Update();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }`&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 13 May 2025 03:59:20 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/aspnet-c-iterate-control-in-listview-and-remove-a-panel-from/m-p/4413198#M658</guid>
      <dc:creator>canalso</dc:creator>
      <dc:date>2025-05-13T03:59:20Z</dc:date>
    </item>
    <item>
      <title>Implementation SMTP using MailKit in ASP .NET Core MVC</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/implementation-smtp-using-mailkit-in-asp-net-core-mvc/m-p/4408125#M657</link>
      <description>&lt;P&gt;I am developing a web development project, where I have to implement email trigger along with message. Suppose there is a form where users will put thier name, email, title and message. After hitting submit button it will automatically send the message to the owner. How can I achieve this in latest version of this framework. And MailKit is Version 4.11.0.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 20:17:18 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/implementation-smtp-using-mailkit-in-asp-net-core-mvc/m-p/4408125#M657</guid>
      <dc:creator>soumyadipmajumder03</dc:creator>
      <dc:date>2025-04-25T20:17:18Z</dc:date>
    </item>
    <item>
      <title>Enable .Net ImageFormat.WebP in VS 2022 Prof ASPX Web.Config</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/enable-net-imageformat-webp-in-vs-2022-prof-aspx-web-config/m-p/4404228#M655</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I am developing C# ASPX Web sites in VS Professional 2022 (64 bit).&lt;/P&gt;&lt;P&gt;I want to access the System.Drawing.Imaging.ImageFormat.WebP property so I can manipulate WebP files. I believe this requires .Net 4.8.&lt;/P&gt;&lt;P&gt;I know there are 3rd party libraries out there - I would prefer to keep as much native MS code as possible.&lt;/P&gt;&lt;P&gt;I am unable to get System.Drawing.Imaging.ImageFormat.WebP as a selection option for the ImageFormat.&lt;/P&gt;&lt;P&gt;I can get all of the other formats e.g. TheImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg/Gif/Png etc. WebP is not shown as an option.&lt;/P&gt;&lt;P&gt;I have Web.Config set as:&lt;/P&gt;&lt;PRE&gt;&amp;lt;compilation optimizeCompilations="true" debug="true" targetFramework="4.8.1"&amp;gt; &amp;lt;assemblies&amp;gt; &amp;lt;add assembly="System.Net, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /&amp;gt; &amp;lt;add assembly="System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /&amp;gt; &amp;lt;/assemblies&amp;gt; &amp;lt;/compilation&amp;gt; &amp;lt;httpRuntime targetFramework="4.8.1" executionTimeout="240" maxRequestLength="20480" requestValidationMode="2.0" /&amp;gt;&lt;/PRE&gt;&lt;P&gt;The Targeting Packs &amp;amp; SDK seem to be installed &amp;amp; enabled as per the screen snap below.&lt;/P&gt;&lt;P&gt;Any help in resolving this is greatly appreciated.&lt;/P&gt;&lt;P&gt;Many thanks, Peter.&lt;/P&gt;&lt;img /&gt;</description>
      <pubDate>Tue, 15 Apr 2025 02:07:24 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/enable-net-imageformat-webp-in-vs-2022-prof-aspx-web-config/m-p/4404228#M655</guid>
      <dc:creator>PeterS1</dc:creator>
      <dc:date>2025-04-15T02:07:24Z</dc:date>
    </item>
    <item>
      <title>Build Scalable Web Apps and APIs with ASP.NET Core, Blazor, Angular for Modern Web Apps</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/build-scalable-web-apps-and-apis-with-asp-net-core-blazor/m-p/4399466#M649</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I’m starting this discussion because many developers today need guidance on how to build modern, scalable web applications and APIs by combining ASP.NET Core, Blazor, and Angular—three powerful technologies within the .NET ecosystem. Whether you're focused on server-side development, creating dynamic client-side apps, or integrating both, these frameworks provide incredible capabilities to enhance your projects&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;ASP.NET Core for API Development:&lt;/STRONG&gt; ASP.NET Core is a robust, high-performance framework that allows you to create powerful APIs. Some of the best practices we’ll cover include:&lt;BR /&gt;- Designing RESTful APIs with ASP.NET Core&lt;BR /&gt;- Utilizing Entity Framework Core for efficient database access&lt;BR /&gt;- Securing APIs with JWT and OAuth&lt;BR /&gt;- Handling asynchronous requests for optimal performance&lt;BR /&gt;- Implementing API versioning and changes over time&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Building Dynamic Web Apps with Blazor&lt;/STRONG&gt;: Blazor enables you to create interactive web applications using C# instead of JavaScript. We will discuss:&lt;BR /&gt;- Blazor Web Assembly vs. Blazor Server: Differences and use cases&lt;BR /&gt;- Creating reusable Blazor components for UI&lt;BR /&gt;- Integrating third-party JavaScript libraries with Blazor&lt;BR /&gt;- Using SignalR for real-time features&lt;BR /&gt;- Optimizing Blazor for performance&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Angular for Full-Featured Client-Side Development&lt;/STRONG&gt;: Angular is a powerful, full-featured front-end framework that excels in creating dynamic and complex user interfaces. In this section, we'll dive into:&lt;BR /&gt;- Why you might choose Angular over Blazor in certain cases&lt;BR /&gt;- Using Angular CLI to scaffold, build, and maintain apps&lt;BR /&gt;- Managing state in Angular with NgRx or RxJS&lt;BR /&gt;- Connecting Angular with ASP.NET Core APIs for data handling&lt;BR /&gt;- Working with Angular components, services, and routing for a seamless user experience&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Combining Angular and Blazor in a Single Application:&lt;/STRONG&gt; You may have use cases where you want to combine both Blazor and Angular in one application to leverage the strengths of each framework:&lt;BR /&gt;- When to use Angular for complex frontend features (e.g., dynamic forms, complex data visualization) and Blazor for simpler components or backend-heavy apps.&lt;BR /&gt;- Managing communication between Angular and Blazor components in a single page (e.g., using - JavaScript Interop to pass data between the two).&lt;BR /&gt;- Handling authentication and state management across both frameworks.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Integration between Frontend (Blazor/Angular) and Backend (ASP.NET Core)&lt;/STRONG&gt;: No matter whether you're using Angular or Blazor for the frontend, integrating these with your backend API is key. We'll discuss:&lt;BR /&gt;- Setting up HttpClient for making API calls from both Blazor and Angular&lt;BR /&gt;- Working with SignalR to enable real-time features in both frontends&lt;BR /&gt;- Managing authentication and authorization across both Angular and Blazor (JWT, OAuth)&lt;BR /&gt;- Best practices for passing data and sharing state between the frontend and backend&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Scalable and Maintainable Web Apps&lt;/STRONG&gt;: When building full-stack web applications, it's important to focus on scalability and maintainability. Here are some practices for achieving this:&lt;BR /&gt;- Structuring your application code to separate concerns (e.g., services, components, repositories)&lt;BR /&gt;- Utilizing Dependency Injection for flexible and testable code&lt;BR /&gt;- Modularizing your codebase for easier updates and maintenance&lt;BR /&gt;- Using Lazy Loading for Angular and Blazor components to improve performance&lt;BR /&gt;- Leveraging Caching strategies to enhance response times&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Testing and Continuous Deployment&lt;/STRONG&gt;: For any modern application, testing and deployment are crucial. We’ll discuss:&lt;BR /&gt;- Unit and integration testing in ASP.NET Core, Blazor, and Angular&lt;BR /&gt;- Automated end-to-end testing (e.g., with Cypress for Angular, bUnit for Blazor)&lt;BR /&gt;- Continuous Integration/Continuous Deployment (CI/CD) strategies for seamless deployment to cloud platforms like Azure or AWS&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;When to Choose Angular, Blazor, or Both&lt;/STRONG&gt;: It’s essential and interesting to know when to use each of these frameworks depending on your project’s needs. Some scenarios we’ll explore:&lt;BR /&gt;- When to go for Blazor for a unified C# experience in both frontend and backend&lt;BR /&gt;- Why you might opt for Angular when building highly interactive, feature-rich web applications&lt;BR /&gt;- Hybrid approaches where you can use Blazor and Angular together for a robust full-stack solution&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;SO:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Combining ASP.NET Core, Blazor, and Angular allows developers to choose the right tool for the right job, creating flexible, scalable, and maintainable web applications. Whether you’re leveraging Blazor for its deep integration with .NET or Angular for its powerful frontend capabilities, these technologies offer a powerful suite of tools to build modern web applications.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-text-color-19"&gt;What are your thoughts? How have you integrated Angular or Blazor with ASP.NET Core in your projects? Share your experiences and challenges, and let's collaborate on solutions!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 07:20:52 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/build-scalable-web-apps-and-apis-with-asp-net-core-blazor/m-p/4399466#M649</guid>
      <dc:creator>BENDA_N</dc:creator>
      <dc:date>2025-04-01T07:20:52Z</dc:date>
    </item>
    <item>
      <title>Blazor server app closes without error during debugging</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/blazor-server-app-closes-without-error-during-debugging/m-p/4397562#M648</link>
      <description>&lt;P&gt;The application started in debug mode stops reacting unexpectedly, without errors being intercepted and/or exceptions being generated.&lt;BR /&gt;I don't know if this behavior can also happen when starting in release mode.&lt;BR /&gt;In practice, the web application stops reacting in the browser. However, if I pause the execution in Visual Studio, a message warns me that the debug has timed out because the underlying application is no longer running.&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attempts I made to solve the problem are:&lt;BR /&gt;I tried to hook the unhandled errors with: AppDomain.CurrentDomain.UnhandledException += (handling code)&lt;BR /&gt;But unhandled errors are not intercepted.&lt;/P&gt;&lt;P&gt;I tried to remove the automatic start of the browser when the app starts in order to disconnect the closing of the browser with the end of the execution of the application.&lt;/P&gt;&lt;P&gt;It does not solve the problem.&lt;/P&gt;&lt;P&gt;Notes:&lt;BR /&gt;It is a Blazor server application, it uses .NET 9 (but even with .NET 8 I encountered the problem).&lt;BR /&gt;I updated visual studio, and all the nughet packages connected to the application.&lt;/P&gt;&lt;P&gt;The application, terminating without there being any clues as to the cause because the debugging does not stop anywhere, can no longer be fixed.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;I tried to catch unhandled errors, but it seems that the app does not close due to exceptions during execution (debugging does not catch errors).&lt;BR /&gt;I use Edge browser. I tried to remove breakpoints from the code.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 14:29:14 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/blazor-server-app-closes-without-error-during-debugging/m-p/4397562#M648</guid>
      <dc:creator>Kocahoctpa</dc:creator>
      <dc:date>2025-03-26T14:29:14Z</dc:date>
    </item>
    <item>
      <title>C# code causing XSS vulnerability</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/c-code-causing-xss-vulnerability/m-p/4395573#M644</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We get a vulnerability scan that is show that one of my pages is susceptible to a XSS attack. &amp;nbsp;We are using a telerik tree view to display different data when the nodes are expanded. &amp;nbsp;This is the information they reported back to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue Detail&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;The value of the scrollPosition JSON parameter within the ctl00_ContentPlaceHolder1_VIndex2_tvIndex_ClientState parameter is copied into the HTML document as plain text between tags. The payload sbi7s&amp;lt;script&amp;gt;alert(1)&amp;lt;/script&amp;gt;tx52l was submitted in the scrollPosition JSON parameter within the ctl00_ContentPlaceHolder1_VIndex2_tvIndex_ClientState parameter. This input was echoed unmodified in the application's response.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;older1_VIndex2_tvIndex_ClientState=%7b%22expandedNodes%22%3a[]%2c%22collapsedNodes%22%3a[]%2c%22logEntries%22%3a[]%2c%22selectedNodes%22%3a[]%2c%22checkedNodes%22%3a[]%2c%22scrollPosition%22%3a%220**sbi7s%3cscript%3ealert(1)%3c%5c%2fscript%3etx52l**%22%7d&amp;amp;ctl00_RadWindowManager1_ClientState=&amp;amp;__ASYNCPOST=true&amp;amp;ctl00%24ContentPlaceHolder1%24VIndex2%24btnAddCart=Add%20To%20Cart&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Response&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;gt; HTTP/2 200 OK&lt;BR /&gt;&amp;gt; Cache-Control: no-cache&amp;nbsp;&lt;BR /&gt;&amp;gt; Pragma: no-cache&amp;nbsp;&lt;BR /&gt;&amp;gt; Content-Type: text/plain; charset=utf-8&amp;nbsp;&lt;BR /&gt;&amp;gt; Expires: -1&amp;nbsp;&lt;BR /&gt;&amp;gt; Server: Microsoft-IIS/10.0&amp;nbsp;&lt;BR /&gt;&amp;gt; X-Powered-By: ASP.NET&amp;nbsp;&lt;BR /&gt;&amp;gt; X-Frame-Options: SAMEORIGIN&amp;nbsp;&lt;BR /&gt;&amp;gt; X-Ua-Compatible: IE=edge,IE=11,IE=10,IE=9,IE=8,IE=7&amp;nbsp;&lt;BR /&gt;&amp;gt; Strict-Transport-Security: max-age=31536000&amp;nbsp;&lt;BR /&gt;&amp;gt; Date: Wed, 19 Mar 2025 16:26:27 GMT&amp;nbsp;&lt;BR /&gt;&amp;gt; Content-Length: 82&amp;nbsp;&lt;BR /&gt;&amp;gt; 68|error|500|0**sbi7s&amp;lt;script&amp;gt;alert(1)&amp;lt;/script&amp;gt;tx52l** is not a valid value for Int32.|&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best way to pinpoint this issue? &amp;nbsp;How do I fix this so it isn't showing up on the scans?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 19:02:52 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/c-code-causing-xss-vulnerability/m-p/4395573#M644</guid>
      <dc:creator>Jerry8989-</dc:creator>
      <dc:date>2025-03-20T19:02:52Z</dc:date>
    </item>
    <item>
      <title>.NET Core render modes</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/net-core-render-modes/m-p/4395063#M643</link>
      <description>&lt;P&gt;I moved my Blazor webassembly application form .NET 8 to .NET 9. Previously it was basicly two projects:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Client (static webassembly content served in docker by nginx on port 5007 with API address set to port 5007)&lt;/LI&gt;&lt;LI&gt;Server (database app with API on port 5009)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;and the typical usage was that I connect in the browser to port 5007, webassembly content was downloaded to the browser and display data gathered form the API on port 5007. After migration to .NET 9 I can no loger download web assemby package (connection reset), but instead everything is served on port 5009 (old webassemby content and API). Moreover everything is working considerably faster but I`m confused:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Why and how it is even working (how content from client appear in the server)?&lt;/LI&gt;&lt;LI&gt;Which render mode I`m using currently?&lt;/LI&gt;&lt;LI&gt;Do I still need my second container with nginx?&lt;/LI&gt;&lt;LI&gt;How should I clean my Startup.cs in the Server project after taht migration?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;namespace eTabelki.Server
{
    public class Startup
    {
        readonly string CorsOrigins = "CorsOrigins";

        public Startup(IConfiguration configuration)
        {
            Configuration = configuration;
        }

        public IConfiguration Configuration { get; }

        // This method gets called by the runtime. Use this method to add services to the container.
        // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddDbContext&amp;lt;ApplicationDbContext&amp;gt;(options =&amp;gt;
                options.UseSqlite(Configuration.GetConnectionString("DefaultConnection")));

            services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies());
            services.AddControllersWithViews();
            services.AddRazorPages().AddJsonOptions(options =&amp;gt;
            {
                options.JsonSerializerOptions.ReferenceHandler = System.Text.Json.Serialization.ReferenceHandler.Preserve;
                options.JsonSerializerOptions.PropertyNamingPolicy = null;
            });

            services.AddCors(options =&amp;gt;
            {
                options.AddPolicy(CorsOrigins,
                    builder =&amp;gt; builder.WithOrigins("http://10.0.10.3:5007", "https://10.0.10.3:5008")
                    .AllowAnyOrigin()
                    .AllowAnyMethod()
                    .AllowAnyHeader());
            });

            services.AddTransient&amp;lt;IGenerateInvoiceService, GenerateInvoiceService&amp;gt;();
            services.AddTransient&amp;lt;IExportService, ExportService&amp;gt;();
        }

        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseWebAssemblyDebugging();

                using (IServiceScope scope = app.ApplicationServices.GetRequiredService&amp;lt;IServiceScopeFactory&amp;gt;().CreateScope())
                {
                    var context = scope.ServiceProvider.GetRequiredService&amp;lt;ApplicationDbContext&amp;gt;();
                    context.Database.Migrate();
                    ApplicationDbContextExtensions.EnsureSeedData(context).GetAwaiter().GetResult();
                    ApplicationDbContextExtensions.EnsureSeedTemplates(context).GetAwaiter().GetResult();
                }
            }
            else
            {
                app.UseExceptionHandler("/Error");
                // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
                app.UseHsts();

                using (IServiceScope scope = app.ApplicationServices.GetRequiredService&amp;lt;IServiceScopeFactory&amp;gt;().CreateScope())
                {
                    var context = scope.ServiceProvider.GetRequiredService&amp;lt;ApplicationDbContext&amp;gt;();
                    context.Database.Migrate();
                    ApplicationDbContextExtensions.EnsureSeedTemplates(context).GetAwaiter().GetResult();
                }
            }

            var cultureInfo = new CultureInfo("pl-PL");
            CultureInfo.DefaultThreadCurrentCulture = cultureInfo;
            CultureInfo.DefaultThreadCurrentUICulture = cultureInfo;

            app.UseHttpsRedirection();
            app.UseBlazorFrameworkFiles();
            app.UseStaticFiles();

            app.UseRouting();

            app.UseCors(CorsOrigins);

            app.UseEndpoints(endpoints =&amp;gt;
            {
                endpoints.MapRazorPages();
                endpoints.MapControllers();
                endpoints.MapFallbackToFile("index.html");
            });
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 20:59:30 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/net-core-render-modes/m-p/4395063#M643</guid>
      <dc:creator>baroo</dc:creator>
      <dc:date>2025-03-19T20:59:30Z</dc:date>
    </item>
    <item>
      <title>Newbie here</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/newbie-here/m-p/4394984#M642</link>
      <description>&lt;P&gt;Hi everyone, newbie here!&lt;/P&gt;&lt;P&gt;I’m excited to join the community. Feel free to ask any questions, and I’ll do my best to help out or learn together! Looking forward to getting involved!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 16:34:12 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/newbie-here/m-p/4394984#M642</guid>
      <dc:creator>geeksprep</dc:creator>
      <dc:date>2025-03-19T16:34:12Z</dc:date>
    </item>
    <item>
      <title>Join return red in visual studio</title>
      <link>https://techcommunity.microsoft.com/t5/web-development/join-return-red-in-visual-studio/m-p/4386565#M638</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am newbe in .NET Core, please info what's wrong in my code?&lt;/P&gt;&lt;P&gt;i want to join query using EF, but inside the visual studio tools, my join query return red.&lt;/P&gt;&lt;P&gt;please see attached image bellow:&lt;/P&gt;&lt;P&gt;the join return underline red so i can't run the project. how to fixed it?&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;Thankyou and best regards.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 07:33:57 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/web-development/join-return-red-in-visual-studio/m-p/4386565#M638</guid>
      <dc:creator>tomtom2x</dc:creator>
      <dc:date>2025-02-27T07:33:57Z</dc:date>
    </item>
  </channel>
</rss>

