Questions tagged [.net]

The .NET framework is a software framework designed mainly for the Microsoft Windows operating system. It includes an implementation of the Base Class Library, Common Language Runtime (commonly referred to as CLR), Common Type System (commonly referred to as CTS) and Dynamic Language Runtime. It ...

0
votes
1answer
11 views

How to return an html document from WebApi 2 action using IHttpActionResult interface?

I need to build an html document and return it in my web api. All available answers on the net and the forum suggest using HttpResponseMessage. I would like to achieve this by IHttpActionResult. Below ...
0
votes
0answers
20 views

How to validate two columns on a GridView

I have the following code, it validates a single column on the grid, but, when I click into another row to edit that column, it throws an error: class MyHyperlinkTemplate : ITemplate...
1
vote
2answers
24 views

Change app.config programmatically at the runtime

I want to change TNS_ADMIN property in appconfig dynamically at the runtime.Here is the app.config;<?xml version="1.0" encoding="utf-8"?><configuration><configSections>...
0
votes
0answers
8 views

What's best method for overriding bot framework “My bot code's having an issue” message

The botframework's throwing error messages for issues that resolve themselves, and I want to override the default message with something like "Please wait a moment." There seem to be various ways to ...
0
votes
0answers
14 views

C# Remove Unwanted Lines GraphicsPath

Currently I am creating a a lot of different GraphicsPaths by reading a few different files. Unfortunately sometimes there are coordinates and lines in this data which are excess. Will it be possible ...
0
votes
0answers
8 views

Can't connect oracle Database using c#

I Installed odp.net managed driver and i can make ez connections. However i can't connect using Oracle Client's tnsnames.ora file. There is a regedit registry which shows oracle homes correctly ...
1
vote
1answer
25 views

how to practice large SQL Server index or partition issues for interview?

Sorry if this should be on careers or workplace stack exchanges. It seemed to cross boundaries so I wasn't sure which to put it on. I have an onsite, technical interview coming up, at a highly ...
0
votes
0answers
13 views

How to run multiple instance of an application in a single daemon

I created a dotnet application which can run on linux, so I used the supervisor to get my application working as a system service. This mechanism works well, but I would like run the app with more ...
0
votes
2answers
23 views

how to read a file from a different project?

how to read a file from a different project?I have a solution:Solution1-MyProject-MyProject.Artifacts----Message.XML-MyProject.TestsI am attempting to read the contents of Message.XML from ...
0
votes
1answer
6 views

.NET core asp-for radio button bound to model with clickable labels?

I wanted to make a radio button list which is bound to a model in asp.net core. But, I also wanted the unique labels to be clickable and associated with each radio button. I have this:<...
0
votes
0answers
18 views

How to include table data and push between objects without any foreign key relation

I have following structure of tablesTableA --> TableB (FK with tableA) --> TableC(FK with tableB)TableX --> TableY(FK with tableX and another FK with tableC)I am using .NET core EF scaffold and ...
0
votes
0answers
17 views

ASP.NET Core HttpClient accept all certificates for localhost only, otherwise behave normally

I'm trying to replicate the normal certificate validation for anything other than requests to localhost public static readonly HttpClient _httpClient=new HttpClient(new HttpClientHandler()...
0
votes
0answers
17 views

Calculate x offset on FormattedText instance with TextAlignment.Center

I've a class which inherits from Shape and also needs to precisely draw some multiline text within the OnRender(DrawingContect drawingContext) method.I can fill a rectangle which exactly fills the ...
0
votes
0answers
56 views

Parsing file in c#

I have tnsnames.ora file which includes 50+ aliases. Added example content below.Currently I use below code to get aliases from tns;tnsnamesreadercustom tsc=new tnsnamesreadercustom();uceTNS....
0
votes
0answers
11 views

IReadOnlyDictionary or IDictionary for Method Arguments in Public API

Should I use a IReadonlyDictionary or a IDictionary for Methods which expecting Dictionaries as arguments for a public API. The Methods are not changing the Content of the Dictionaries. The Dotnet ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,