Category "c++sharp"

How to fire click event of the LinkButton in gridview and Show PopUp window in asp.net

I have tried to build one gridview with dynamic columns based the data source using the template fields in asp.net through code behind. For that, to implement

check if string exists in a file

I have the following piece of code which opens a text file and reads all the lines in the file and storing it into a string array. Which then checks if the st

C# OpenTelemetry against Jaeger works in Simple but not Batch

Have a pretty much working environment to use for tracing, OpenTelemetry against Jaeger Tracing. I sort of read that Batch for process is the preferred way then

Call a System.Action in a .NET dynamic method

I have a function that is building a dynamic method. As part of this dynamic method, it is calling an action known at generation time. As a minimal reproducible

Impossible to add a User-Defined-Data Type parameter to my query

I'm trying to use a User-Defined-Data Type with C# and SQL Server 2008 but I have an exception raised when command.ExecuteReader() is executed. string qyery

Swashbuckle - Add Model and Example values to Swagger UI from a Model from another project

I am using Swagger to document my .NET C# API and when my models are on another project Swagger just crashes and doesn't load anything. When I load the sample

How to do non-cached file writes in C# winform app

I'm trying to determine worst case disk speed, so I wrote the following function. static public decimal MBytesPerSec(string volume) { string filename = vo

Converting an int[] to byte[] in C#

I know how to do this the long way: by creating a byte array of the necessary size and using a for-loop to cast every element from the int array. I was wonde

How do I solve SecurityNegotiationException and InvalidCredentialException in WCF

So I've written a small game and wish for the game to be playable over the internet. I've been testing the game just through localhost using these configs: Cl

Performance Considerations of Microsoft Application Insights?

I couldn't find any information about an async implementation of application Insights, specifically the TelemetryClient for Microsoft.ApplicationInsights Nuget.

Does C# WinForms have a slider control?

Can someone guide me if C# WinForms has a slider control? I see WPF has it but it doesn't show up for me in WinForms what could be the problem?

What Salt size and position for AES 256?

I haven't written encryption in a while and have forgotten some stuff. I remember that to have the output be different for the same data using the same key, I w

Writing to Excel using C#

I have a basic WinForms application and want to be able to write data from this application to an Excel spreadsheet. So far I have the following code: Microsof

Return SqlDataReader with closed connection

I have created a Sql helper class which handles most of my needs. Amongst those, I have a function which executes a SQL statement and returns a SqlDataReader a

Is it possible to run a .NET Core console application silently (hide console window)?

I'm trying to automate some tasks for myself and I wrote a few .NET Core 1.0 console applications. One of them is BrowserRouter - a simple application which, ba

Why does "dotnet ef migrations add" start my application?

I've created a new project using .NET 6 and EF Core 6 but when I try to create a migration using dotnet ef migrations add, the CLI begins running the applicatio

Is there an equivalent C# syntax for C's inline anonymous struct definition?

Greetings Overflowers, I know in C we can define a struct inline with the variable declaration so that the struct type is specific to this variable. This is in

Outlook 365 vs Professional [save mailitem] Encoding Issues

I have an outlook addin currently in development that reads mail properties from outlook and displays on a winform. I built the outlook on an environment with

Problem with configuring ssl certificates in asp .net core API

I have the following certificates Certificates I want to configure my asp .net core web API to use these certificates in order to use https redirection. I am us

Problem with configuring ssl certificates in asp .net core API

I have the following certificates Certificates I want to configure my asp .net core web API to use these certificates in order to use https redirection. I am us