23,861 questions with .NET-related tags

Sort by: Updated
0 answers

Data Inserting Through Selected Radio and checkbox button

Sir, in this code, if i click bad radio button2 and untaste checkbox2 means data inserting only radio button1 and taste checkbox1 that is good and tasty itself inserting in database sir if (!string.IsNullOrEmpty(textBox11.Text) &&…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,827 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.
10,234 questions
asked 2022-03-26T08:40:54.247+00:00
Mohamed Rafi N 106 Reputation points
commented 2022-03-28T10:56:08.803+00:00
Karen Payne MVP 35,036 Reputation points
1 answer

Login Session in same Master Page different pages

I made a session in the master page and link with the web form. But it seems it only display the user name after login in home page only, when I move to other pages, the session didn't link. This is the code in the home page: protected void…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,252 questions
asked 2022-03-28T06:24:32.407+00:00
Baiti95 1 Reputation point
commented 2022-03-28T09:25:03.3+00:00
Yijing Sun-MSFT 7,066 Reputation points
1 answer One of the answers was accepted by the question author.

try to make notepad++ with WPF

1. Drap and Drop 2. can add Tab with button **I tried to mix them. but Tab2 is not appeared immediately. I have to click button. Can anyboy help this problem? Thank you! ** MainWindow.xaml <Window x:Class="XMLEditor.MainWindow" …

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,670 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.
10,234 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
762 questions
asked 2022-03-16T06:48:28.447+00:00
LooBi 141 Reputation points
commented 2022-03-28T06:54:43.107+00:00
LooBi 141 Reputation points
0 answers

Layout problems

I have a simple form with one ContentView in the MainForm. I have tried just about every combination of HeightRequest, HeightOptions and the ContentView only takes one half of the MainForm. I have tried Grid and StatckLayout with no change. If I put a…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-03-25T15:30:26.1+00:00
Lloyd Sheen 1,376 Reputation points
commented 2022-03-28T06:50:18.23+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,221 Reputation points Microsoft Vendor
3 answers

Undefined string input

The ampm = -5 from Textbox2. It should be a string of "AM" or "PM". the value for hr24 is undefined. It cannot be greater than 12 or less than zero. function Button1_Click(){ var hr = Textbox1.value; var ampm = Selectbox1.value;…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,252 questions
asked 2022-03-26T02:04:57.56+00:00
John Ertle Jr 1 Reputation point
answered 2022-03-28T06:11:59.103+00:00
Lan Huang-MSFT 25,471 Reputation points Microsoft Vendor
2 answers

Help Incrementing Date by 1 day for 30 days

I have a project where class has a DateCreated. I need to increment that DateCreated by 1 day for 30 days. So I should have 30 records in the table with a 1 day difference than the previous. Thank you!

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,252 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.
10,234 questions
asked 2022-03-25T14:13:03.17+00:00
Nick R 66 Reputation points
commented 2022-03-28T05:57:46.887+00:00
Yijing Sun-MSFT 7,066 Reputation points
0 answers

Xamarin Forms release mode error with red screen

Hi, I have an issues in release mode of Cross-Platform iOS and Android. When I release the Xamarin forms apps, the initial splash screen is running properly and then it comes to white screen and later it's turn into red screen. Later there is no…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-03-27T04:07:58.983+00:00
Muthu Kumar 1 Reputation point
commented 2022-03-28T05:45:57.137+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,491 Reputation points Microsoft Vendor
0 answers

Xamarin Andorid Designer not updating shared style changes in Style.xml?

I am working a WearOs project with Xamarin.Native and when use share styles in Styles.xml, everytime I make changes they arent recognized by the xamarin Andorid designer. Newly created styles are also highlighted as cannot be found. Build, Rebuild doesnt…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-03-25T18:08:02.653+00:00
Emil Alipiev 271 Reputation points
commented 2022-03-28T05:21:43.883+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,491 Reputation points Microsoft Vendor
1 answer

saving data in core without model

In the Get command I'm reading data from tables with unknown column names using an sql returning a datatable and can show it in a view using the datatable as a model but the post/submit does not return anything. I can see the HttpContext string id =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-02-09T19:24:40.8+00:00
Roger 26 Reputation points
commented 2022-03-28T03:22:49.877+00:00
Roger 26 Reputation points
1 answer

I want to populate select list directly from view(cshtml file) using dependency injection but getting following error......

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-03-25T09:47:37.81+00:00
Atif Shah 1 Reputation point
answered 2022-03-28T03:05:57.267+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

SoftInput.AdjustPan Not Working in Landscape

I have created a default & landscape layout for my app, both of which contain an EditText. The EditText is exactly the same in both xml files. In the Activity attribute of my MainActivity class I include WindowSoftInputMode = SoftInput.AdjustPan, and…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-03-26T21:41:11.057+00:00
Nathan Sokalski 4,116 Reputation points
accepted 2022-03-28T03:01:10.233+00:00
Nathan Sokalski 4,116 Reputation points
1 answer

Freeze a Grid upon scrolling

Hi, I have below XAML in my Xamarin app to show the post details. I have kept the Grid inside a ScrollView because the LabelPostDetailsFull has long text but I am ok to move the ScollView somewhere else if needed. My requirment here is when the user…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 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.
10,234 questions
asked 2022-03-22T20:37:00.32+00:00
Jassim Al Rahma 1,521 Reputation points
commented 2022-03-28T00:47:03.067+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,291 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Deep linking in Xamarin.iOS

Hi, My Xamarin.Andriod XForm app uses the deep linking: It will launch when an URL in email is clicked. Now I will develop the Xamarin.iOS version of this app. Could you give me an example code for the deep linking in Xamarin.iOS? Thanks in…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-03-03T17:41:19.537+00:00
Yongqing Huang 241 Reputation points
commented 2022-03-27T21:21:31.613+00:00
Yongqing Huang 241 Reputation points
1 answer One of the answers was accepted by the question author.

How pass arguments to WPF application in VS2022 in Debug Mode?

Is there a way to run a WPF application in Visual Studio 2022 in Debug Mode and pass in command-line arguments?

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,670 questions
asked 2022-03-27T18:25:16.22+00:00
Nicholas Piazza 531 Reputation points
accepted 2022-03-27T18:58:18.973+00:00
Nicholas Piazza 531 Reputation points
3 answers

c# sqlite save to database textboxs and Datagridview inputs

Is it possible to have a Sqlite database that will save information from textboxes and a Datagridview? I would like to use just one table. Lets say I have 2 panels one is Textboxes and the other is a Datagridview I save to a database. When I…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,827 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,693 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.
10,234 questions
asked 2021-01-17T18:54:00.31+00:00
Booney 166 Reputation points
answered 2022-03-27T18:07:42.023+00:00
Kostas 1 Reputation point
1 answer

Trigger EventHandler of one ViewModel in another ViewModel

I have achieved desired result with MessagingCenter, but I have got an information from reading Xamarin articles that MessagingCenter is not the preferred way to trigger 30+ events. Additional to that I have to unsubscribe from MessagingCenter after…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 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.
10,234 questions
asked 2022-03-26T17:31:05.223+00:00
mrw 201 Reputation points
answered 2022-03-27T15:38:42.447+00:00
pugthegreat 11 Reputation points
1 answer One of the answers was accepted by the question author.

Gett customerid from token in backend Webapi

Goal: How to get customerid from token when you are located at backend webapi. Background: Today, you get your token from backend and it will be sent to frontend. The token alreadly contain the customerid. In order to use customerid as a filtration…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-03-23T21:19:47.357+00:00
JJ TT 141 Reputation points
commented 2022-03-27T14:03:17.127+00:00
JJ TT 141 Reputation points
7 answers

Rotation on image from CameraView

How can I rotate the image (is byte[]) captured by CamerView (Xamarin Community Toolkit) since rotation doesn't have a setter?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2021-09-19T08:43:38.667+00:00
Andrea Farina 21 Reputation points
answered 2022-03-27T11:28:24.297+00:00
Sebastian Hoppe 1 Reputation point
2 answers One of the answers was accepted by the question author.

Deploy an ASP.NET Core-Web-API (.NET 5, Visual Studio 2019) to IIS

Dear all, I'm trying desperately to deploy an ASP.NET Core-Web-API (.NET 5) to IIS. I use Visual Studio 2019. To test server setup (ASP.NET Core Hosting Bundle 5.0.15) I created an ASP.NET Core-Web-App and deployed it via file system, it works. …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-03-26T09:15:17.397+00:00
Matthias Schuppe 21 Reputation points
answered 2022-03-27T08:17:05.01+00:00
Matthias Schuppe 21 Reputation points
1 answer One of the answers was accepted by the question author.

Serialize a Nullable double property - best way

Hello! private double? _Width; [XmlAttribute("width")] public double? Width { get { return _Width; } set { if (value != null) _Width = Math.Round(value.Value, 2); } …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,252 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.
10,234 questions
asked 2022-03-24T13:06:22.937+00:00
Markus Freitag 3,786 Reputation points
accepted 2022-03-26T17:07:22.17+00:00
Markus Freitag 3,786 Reputation points