Search results for query: *

  • Users: SaeedP
  • Content: Threads
  • Order by date
  1. SaeedP

    Server connection problem on a blazor site

    Hi I have made this app in blazor: Index Occasionally, I encounter this error: "Attempting to connect to the server." Do you know how to solve it? regards, Saeed
  2. SaeedP

    What is the simplest method to update a variable on the index page from a component?

    Hi, I need to update a variable in my Blazor server index page when the user clicks the "upload" button in the "upload" component. You can see my code here: I added this code to my index page: [Parameter] public EventCallback<bool> isConverting { get; set; } private void UpdateParent() {...
  3. SaeedP

    I'm having trouble writing the code to downloading the page.

    Hello, I'm trying to make an app that converts image format to SVG. I am having trouble writing the code to download the image. Please inform me. private void DownloadSvg() { byte[] svgBytes = Encoding.UTF8.GetBytes(svgContent); var fileName = "convertedImage.svg"; var...
  4. SaeedP

    How to open web form web sites

    Hi, I'm trying to open an ASP.NET web form site in Visual Studio, but it keeps asking me which page is the starter page. When I right-click on an aspx page to set it as the starter page, there isn't an option for that. "What should I do?" thanks,
  5. SaeedP

    Problem in bitmap to vector image converter

    ...Microsoft.JSInterop @inject IJSRuntime JsRuntime <h1>Convert Bitmap to Vector</h1> <input type="file" @oninput="ConvertImage" accept="image/*" /> <br /> @if (!string.IsNullOrEmpty(VectorSvg)) { <h2>Vector Graphic:</h2> <div> <svg width="200" height="200"...
  6. SaeedP

    Trouble on placing a map on the blazor server app

    Hi there, I'm looking to add a map to a Blazor Server page, but I'm encountering the following error: Status 500 The map library I'm using is openstreetMap. Here's the code I'm using: <!-- Using jsDelivr CDN --> <script...
  7. SaeedP

    Why do I get this Chrome console error

    ...id="imageText" @bind="@ImageText" /> </div> <button @onclick="GenerateImage" type="button">Generate Image</button> </form> <div> @* Display the generated image if available *@ @if (generatedImageUrl != null) { <img src="@generatedImageUrl" alt="Generated...
  8. SaeedP

    Strange issue on label id

    .../> </div> <button @onclick="GenerateImage" type="button">Generate Image</button> </form> <div> @* Display the generated image if available *@ @if (generatedImageUrl != null) { <img src="@generatedImageUrl" alt="Generated...
  9. SaeedP

    Exception issue

    Hi, I'm encountering this exception while running my code. Can someone help me understand what it means and what could be causing it?
  10. SaeedP

    issue with the input tag

    Hello, I need to import an image in my Blazor web assembly app. I have tested and read a lot of content from the web and AI. But I don't know why none of my input tags are working! <InputFile @OnChange="HandleFileUpload" /> <input type="file" @onchange="HandleFileUpload" /> <input type="file"...
  11. SaeedP

    ML.net builder tutorial question

    Hello, I'm trying this tutorial: What is Model Builder and how does it work? - ML.NET but on this page: ML.NET Tutorial | Get started in 10 minutes | .NET When I press the brows button, nothing happens! Can you guide me? thanks,
  12. SaeedP

    problem with Microsoft ML

    Hello, This class is a logo builder project app. I have installed Microsoft ml but I still see a red line under Predict. I've tried many AI modes but still couldn't find what package should I install: using Microsoft.ML; namespace BlazorWasm_ML.net_Monica_Claude.Services { public class...
  13. SaeedP

    Problem with AI logo builder program

    Hello, In these lines of code, I have tried to create a logo builder program using DeepAI API. It seems that the program works, but the received image is not clear. @page "/LogoBuilder" @layout EmptyLayout @inherits LayoutComponentBase <div> <h3>LogoBuilder</h3> <SaeedMenu />...
  14. SaeedP

    What is the process of adding an API to the most recent release of Blazor server?

    Hello, What is the process for creating an instance of a class within a Blazor component and utilizing its methods? By "latest version," I am referring to the most recent release. thanks, Saeed
  15. SaeedP

    What is the process for creating an instance of a class within a Blazor component and utilizing its methods?

    Hello, My question is regarding Blazor service: In my app, I have a component: Logo-builder. razor @page "/logo-builder" @using BlazorApp_AI_1.Data @inject LogoBuiderService logoBuilderService <h1>Logo Builder</h1> <label for="text-input">Text:</label> <input type="text" id="text-input"...
  16. SaeedP

    Need help to understanding the code

    Hi, This is part of a tutorial for OpenAI development: https://www.c-sharpcorner.com/article/building-ai-chatbot-app-with-chatgpt-api-and-blazor-a-step-by-step-guide/ Can you please help me to understand this part of the code: Content = new StringContent("{\"model\": \"text-davinci-001\"...
  17. SaeedP

    What is the meaning of this part of code

    Hello, Can you please tell me what is the meaning of this code: return responseString!.choices[0].text; regards, Saeed
  18. SaeedP

    Resolved Problem with adding favicon to blazor server

    Hello, I want to insert a link for the site favicon in the layout. C HTML, my link is: <link rel="icon" type="image/x-icon" href="wwwroot/favicon.ico"> but I get this error: But as you can see my favicon is in the wwwroot folder: Do you think what is wrong? regards, Saeed
  19. SaeedP

    Why I can't see my menu in Blazor?

    ...@inherits LayoutComponentBase <PageTitle>BlazorApp1</PageTitle> <div class="page"> <div class="sidebar"> <saeedMenu /> @*<NavMenu/>*@ </div> <main> @*<div class="top-row px-4"> <a href="https://docs.microsoft.com/aspnet/"...
  20. SaeedP

    Resolved code section in blazor

    Hello, Can the code that is written in Blazor in the code section be written in the controller? Are the codes exactly the same? thanks,
Back
Top Bottom