csharp

  1. P

    Question Problem with NuGet Package in MudBlazor app

    Hello, I managed to install in my VS the MudBlazor Template (updated to .Net 8) for creating projects with MudBlazor already setup, and it works fine. Then I installed the NuGet Packages Microsoft.EntityFrameworkCore version 8.0.6, the *.SqlServer, and the *.Tools. When I wrote the classic...
  2. SiamIT

    cast base class to derived class

    Greetings, I am in a need to extend a class to add few new methods/properties that base class lacks. so, i have created a class that extend another class. but issue arises when i need to covert/cast base class to derived class. it doesn't works. so? is i am doing it wrong, or it's not...
  3. SiamIT

    Issue With Unicode Dictionary

    Greetings, i have tried to convert a js code to c#.. here is the js code: var...
  4. SiamIT

    Call Delphi Dll From C#

    Greetings, I am trying to using a Delphi dll in c# program.. here is the Delphi library code: library UnicodeToBijoy; uses System.SysUtils, System.Classes, BanglaChars in 'BanglaChars.pas', clsUnicodeToBijoy2000 in 'clsUnicodeToBijoy2000.pas'; {$R *.res} var baseClass ...
  5. Roast247

    Question Opening a Resource File?

    Hello, I am getting the following error Argument 1: cannot convert from 'byte[]' to 'string[]' and the code causing that error is Process.Start(Properties.Resources.telephone); Any and all help to resolve this issue will be much appreciated
  6. SiamIT

    Question Loading GIF Picture From File Works But Not From Memory

    I am facing a weird issue, i need to load GIF image/picture from memory to picture box. It's works fine for non GIF picture, but for GIF it throws GDI error. A generic error occurred in GDI+. here is my test codes to show you the error public partial class Form1 : Form {...
  7. Bozuyla

    Yandex mail problem

    Hi guys I have used a Yandex mail account in my project to send mail. I have taken an error for 10 days. The error message is "554 Error: send AUTH command first. 17082980431EZcQL1n9Gk0TJtvpGYN". Why do I take this message although I didn't make any changes in my code? Thanks...
  8. Mohamadshirzad

    Error while sending request

    Hi, I have a code which in windows 10 works properly but in windows 7 ,I recieve the error : An error occurred while sending the request. System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel. at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult...
  9. A

    checkbox not send correct value true or false when click approve button it only working for first time?

    I work on asp.net MVC application I face issue check box yes or no send false value yes or no when click approve button I have two check box one represent true and second false as user requested and i don't it to be radio button because bossiness user request it . Yes represent true No...
  10. fokwabest

    How to customize the default error message "The value '' is invalid" for dynamically generated form

    I am new to asp.net core. I have a form which is generated dynamically. I want the validation error message to be "The value must be numeric" instead I get "The value 'a' is invalid" when I submit the form. Here is my View Model: [RegularExpression("^[0-9]*$", ErrorMessage = "The value must...
  11. R

    Chart - How to set column spacing

    Hi there. I have this code to my chart, using C# WinForms: chart1.Series[0].IsVisibleInLegend = false; chart1.Series[0].ChartType = SeriesChartType.Line; chart1.Series[0].Points.DataBindXY(Enumerable.Range(0, 5000).ToArray(), array1); The result is below: I'd like to set the X legend to...
  12. S

    SQLite Insert Into

    I keep getting "Insufficient parameters supplied to the command" exception when running the code below. I have tried several versions of code with the same result. Searching on line has given me hundreds of examples of this exception, but they have all been simply typos or they used another of...
  13. ahmedaziz

    Question after click on submit button URL change How to keep it as it is without changes?

    I work on an ASP.NET MVC razor page. I face issue Url change from Resignation/RequesterIndex?filenumber=103085 to Resignation/Create after click submit button. I need URL as it was before, without change after click submit button. How to do that please? What is issue on my code that make...
  14. T

    Resolved count DataGridView numbers that match Array

    I have a text file that is generated daily and can contain several lines with 15 numbers drawn from 01 to 25 in each line, the text can have one line or several lines, it changes every day. I need to compare with an array 'Result' and count how many numbers in each line are equal to the numbers...
  15. ahmedaziz

    Question How to write c# function convert text input to sql server statement return string ?

    I work on some ui web tool on asp.net core blazor i need to write csharp function convert this conditions to sql statement so when i filter two columns as databasename and remarks (databaseName == null ? "" : databaseName).ToLower().Contains("db_".ToLower()) and (remarks == null ? "" ...
  16. ahmedaziz

    How to allow table have pagination to display default value 10 rows ?

    I work on razor asp.net core I need to allow data table to have paginations options drop down with 5,10,15,20,25 so when load data it must display default rows per page as 10 rows as first page if i need to increase it to 10 or 15 etc it will accept change according to drop down selection i...
  17. R

    Question ASP.NET Core 6 Web API - How to return 400 bad request responses from middleware

    Hi guys, I have an ASP.NET Core 6 Web API that I am calling 3rd party web services. I have exception middleware in order to log exceptions and return 500 responses to hide the details from the user. When this 3rd party web service returns 400 bad request, I also want to return it to the user but...
  18. SiamIT

    Question Create Installer For Excel VSTO Addin

    Greetings, i have created a excel (vsto) addin and it work fin on local computer. as i didn't have to anything.. just build and it comes to excel. but now i am confused how i can make a installer for the addin so that it can be installed on users end at ease without any user level interaction...
  19. A

    Looking for non-novice books

    Hi, new here. I am looking for english or swedish books mainly about C#. The topics im mostly interested in is OOP, Threading, CLI, WPF (code to controls with data/text), How and when to use unit testing. Would be nice to have stuff that as self-taught, get stuff pointed out "like this and this"...
  20. ahmedaziz

    Question How to allow cell on data table for edit and close after edit ?

    I work on asp.net razor page model . i face issue i can't edit datatable on same page by edit cell without redirect to another page I need to edit cell on same page my code details as below : public class UserModel { public string Id { get; set; } public string Name { get; set; }...
Back
Top Bottom