26,308 questions with .NET-related tags

Sort by: Updated
1 answer

How to test a method in an existing application?

There is a large application with 6 projects and 20 references. It cannot be run as a standalone application. The question here is about invoking one specific method in one part of code that happens with a mouse click of the app in use. The code was…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,531 questions
asked 2021-06-07T01:42:30.157+00:00
Bradley Rogers 116 Reputation points
commented 2021-06-09T07:09:21.007+00:00
Yijing Sun-MSFT 7,086 Reputation points
1 answer

How can I force a value to be displayed outside my model?

So it doesn't seem so complex, I'll give you a simple example of what I want: string statusString = status 2; return View(myData.where(x => x.status == statusString) in sight it will be something of this kind: @foreach (var item in Model) { …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,531 questions
asked 2021-06-08T08:21:41.357+00:00
MiguelBT 96 Reputation points
commented 2021-06-09T06:48:18.823+00:00
Yijing Sun-MSFT 7,086 Reputation points
1 answer

MSAL on Xamarin Native - OnActivityResult is Never Called, Causing App to Hang on BrowserTabActivity

First and foremost this is Xamarin Native, not Xamarin Forms. In the "SplashActivity" which is set as the MainLauncher=true, I have an async function which calls the AcquireInteractiveToken function. The Browser opens properly, user can…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,366 questions
asked 2021-06-04T21:11:01.827+00:00
ThatTechGuy 1 Reputation point
commented 2021-06-09T06:31:04.54+00:00
JessieZhang-MSFT 7,711 Reputation points Microsoft Vendor
0 answers

Xamarin Forms setting platform specific properties

Hi, I've custom WebView rendered in Android. Is it possible to somehow set following properties? android:fillViewport="true" <WebView android:layout_width="match_parent" android:layout_height="wrap_content"/>

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,366 questions
asked 2021-06-04T03:49:24.203+00:00
EJ 366 Reputation points
commented 2021-06-09T05:58:56.407+00:00
JessieZhang-MSFT 7,711 Reputation points Microsoft Vendor
3 answers

Improper neutralization of special elements used in an SQLCOMMAND('sql injection')

Hello everyone, Please help with this SQL Injection flaw of veracode and refer to below code. Recommendations: Avoid dynamically constructing SQL queries. Instead, use parameterized prepared statements to prevent the database from interpreting the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,531 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,748 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,531 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,748 questions
asked 2021-06-04T09:17:28.543+00:00
anand babu 1 Reputation point
commented 2021-06-09T05:50:18.6+00:00
Yijing Sun-MSFT 7,086 Reputation points
3 answers

Improper neutralization of special elements used in an SQLCOMMAND('sql injection')

Hello everyone, Please help with this SQL Injection flaw of veracode and refer to below code. Recommendations: Avoid dynamically constructing SQL queries. Instead, use parameterized prepared statements to prevent the database from interpreting the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,531 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,748 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,531 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,748 questions
asked 2021-06-04T09:17:28.543+00:00
anand babu 1 Reputation point
commented 2021-06-09T05:50:18.6+00:00
Yijing Sun-MSFT 7,086 Reputation points
0 answers

Video File chunks Parallelly upload to server while recording a screen in Windows Application

HI, I have an application for recording the current screen in windows. Which is developed in wpf. My requirement is to record the screen and split up the video file into different chunks and upload to server. All these actions should be done in…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,795 questions
asked 2021-06-09T04:39:01.877+00:00
Mahesh C M 156 Reputation points
2 answers One of the answers was accepted by the question author.

How to hidden all Tabs in TabbedPage?

Now I want to hidden all Tabs in TabbedPage on Android. It should hidden UI only and still working. I try research on google already, but it cannot solve my issues. If have someone know how to hide that, please tell me how to do. …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,366 questions
asked 2021-06-08T07:11:45.42+00:00
YURNO 116 Reputation points
answered 2021-06-09T03:27:57.12+00:00
JarvanZhang 23,961 Reputation points
1 answer One of the answers was accepted by the question author.

How to split Grid 2x5 and display same pattern in XAML

I have a grid and want to display 2x5 child grid in XAML. I made main grid and defined 2 raws and 5 columns. I'd like to display information(Chart#, Patient Name, Phone# and Type) in each cell. Can I make a Style and use it from each cells?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,795 questions
asked 2021-06-03T03:20:22.99+00:00
JeffinAtl 161 Reputation points
commented 2021-06-09T02:56:00.86+00:00
JeffinAtl 161 Reputation points
1 answer

Tooltip Security Concerns

Hi, I have a requirement to show the tool tip with RegEx as text. for Example : First Name Text box has text as : A-Za-z0-9&$. What's the best way to show these tool tips and why? The below are the options. Display it on the hover of the TextBox Or…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,663 questions
asked 2021-06-08T10:44:42.137+00:00
Ramya Gollapudi 1 Reputation point
answered 2021-06-09T02:45:27.867+00:00
Rena Ni - MSFT 2,066 Reputation points
0 answers

How would i be able to validate my model based on the parameters outlined in UserIdentity password

Hello, I was following an identity tutorial, and I was wondering how would I be able to validate my password creation against the default parameters outlined in IdentityOptions without using a regular expression by manually defining these…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
715 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,663 questions
asked 2021-06-08T21:37:29.867+00:00
eddy28 1 Reputation point
commented 2021-06-09T02:16:51.807+00:00
Yinqiu Yao-MSFT 236 Reputation points
2 answers One of the answers was accepted by the question author.

Asp.net Repeater with Gridview

I have a Repeater Control, and within the Repeater, I have a bunch of text boxes and a GridView. I have a button in the Gridview and when the user clicks on the button, I want to read what is in 1 of the textboxes. I can loop through the textbox items as…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,531 questions
asked 2021-06-04T19:50:32.323+00:00
Joseph Mancini 81 Reputation points
commented 2021-06-09T00:27:48.233+00:00
Albert Kallal 5,331 Reputation points
1 answer One of the answers was accepted by the question author.

Razor page Tutorial is not work designs are changed and the attribute button is gone

razor-pages-start I'm following the ASP.NET Core tutorial webapp Razor page but I didn't really touch the design or the button part. Why is the UI I made in the tutorial different from the UI I made? Symptom The symptoms of the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,663 questions
asked 2021-06-04T07:29:15.17+00:00
킴 유지 21 Reputation points
accepted 2021-06-09T00:17:01.987+00:00
킴 유지 21 Reputation points
1 answer One of the answers was accepted by the question author.

Prevent Xamarin.Form Editor from expanding past our of view

I have a Editor in a Horizontal StackLayout. The Editor is set to AutoSize with HorizontalOptions set to FillAndExpand When the text gets to long for the page it just grows past the edge of the page. But I need it to wrap . It works if the…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,366 questions
asked 2021-06-08T05:47:19.077+00:00
Daniel Hughes 96 Reputation points
accepted 2021-06-08T22:05:37.977+00:00
Daniel Hughes 96 Reputation points
1 answer

How to setup Configuration in Class file?

I would like to move these two "secrets" to secrets.json @inject IConfiguration config does not work. using System; using System.Collections.Generic; using System.Linq; using System.Web; using Microsoft.Extensions.Configuration; ///…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,611 questions
asked 2021-06-08T16:24:58.143+00:00
wavemaster 311 Reputation points
answered 2021-06-08T21:13:59.51+00:00
AgaveJoe 28,786 Reputation points
6 answers

Bind and Delimit a stringarray property value in web control and Update content

I would like to be able to bind and convert a stringarray value property into a list for output in web control like gridview bound to datasource like SqlDatasource and able to perform tasks like add string value,update a string value and delete string…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,531 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,665 questions
asked 2021-06-03T00:27:39.417+00:00
peter liles 556 Reputation points
answered 2021-06-08T20:57:06.247+00:00
Erland Sommarskog 113.3K Reputation points MVP
2 answers One of the answers was accepted by the question author.

WCF POST request, GET request, test app server and client as desktop application

Hello, public class FoodAnswer { public bool Result { get; set; } public string ErrorCode { get; set; } public string ErrorMessage { get; set; } } public class FoodOrder { public bool Payed { get; set; } public…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,092 questions
asked 2021-06-05T09:25:14.783+00:00
Markus Freitag 3,791 Reputation points
accepted 2021-06-08T19:02:40.43+00:00
Markus Freitag 3,791 Reputation points
0 answers

DpiDecorator cause blurry text in my WPF application?

Hi there, I developing a WPF application where I use a Dpi Decorator class to adjust my WPF application according to any screen size. All of my application are perfectly working in any resolution except the text written on it. The text are became blurry…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,795 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,092 questions
asked 2021-06-03T20:32:02.203+00:00
MERUN KUMAR MAITY 601 Reputation points
commented 2021-06-08T18:34:05.14+00:00
MERUN KUMAR MAITY 601 Reputation points
1 answer

Turning off part of long running Entity Framework query conditionally

In my Asp.Net Web Api project, there's a GET method to fetch all processes. Process in my app is an entity to log various maintenence activities, it has many properties, e.g. beginning and end. Each processes can be handled by many users and so single…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 questions
asked 2021-06-08T06:21:26.187+00:00
robs23 96 Reputation points
answered 2021-06-08T16:49:52.173+00:00
Duane Arnold 3,216 Reputation points
1 answer One of the answers was accepted by the question author.

Select query does not work when column name has parenthesis in excel sheet

Hi, I am trying to fill the data of an excel sheet in a data table by using select query. When the sheet has parenthesis or any other special characters in its column names, I replace each one with "#" but execution results in error. …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,962 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,092 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,177 questions
Access Development
Access Development
Access: A family of Microsoft relational database management systems designed for ease of use.Development: The process of researching, productizing, and refining new or existing technologies.
888 questions
asked 2021-06-07T06:34:44.977+00:00
Rashmi Gupta 81 Reputation points
commented 2021-06-08T14:49:11.453+00:00
Viorel 118.4K Reputation points