23,847 questions with .NET-related tags

Sort by: Updated
1 answer

Is it possible to Implement Azure Ad Authentication in webforms without cookie authenticationtype ?

Can we implement the below code without using cookies public void Configuration(IAppBuilder app) { app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType); …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,250 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,444 questions
asked 2022-05-17T19:40:19.423+00:00
Praneeth Kumar Pagunta 1 Reputation point
answered 2022-06-02T18:52:00.257+00:00
2 answers

Command problem

Hi, I see that UserID0.Value is with the proper value 18 and there is the existing record with INT column user_id having the value 18. But it is not getting the record by the following command. Why? SqlCommand cmd = new…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,363 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,250 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,229 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,118 questions
asked 2022-05-31T05:18:53.857+00:00
Peter_1985 2,486 Reputation points
answered 2022-06-02T17:12:39.967+00:00
bet365samcom 1 Reputation point
2 answers One of the answers was accepted by the question author.

Display all months from (today) and go back 14 months

I have a requirement to return a rolling 14 months to the app. I'm creating an WebAPI So, I need to go back 14 months from todays date. I have this so far, but drawing a blank: [HttpGet("[months]") //allows them to define the months to go…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,156 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,229 questions
asked 2022-06-02T13:33:55.99+00:00
TheCoder 91 Reputation points
accepted 2022-06-02T15:05:03.697+00:00
TheCoder 91 Reputation points
1 answer One of the answers was accepted by the question author.

Cannot download files in .Net 6

I have an MVC .Net Core 2.1 application. It has an action that generates a .csv file and returns it to download. Now, as this .Net version is not supported, I created a new application with .NET 6, and moved there my controllers, views etc. from the old…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,156 questions
asked 2022-06-02T13:07:25.767+00:00
Dmitriy Reznik 236 Reputation points
commented 2022-06-02T14:02:16.163+00:00
Dmitriy Reznik 236 Reputation points
1 answer

Biztalk XSLT: how to use replace function ?

hi Experts, i have a scenario to convert the dateTime filed in XSLT via replace function input1: 2019-08-12T12:59:26+01:00 output1:1259 output2:+ output3:0100 How can i acheive this in xslt without calling the c# method or (CDATA)?

Microsoft BizTalk Server
Microsoft BizTalk Server
A family of Microsoft server products that support large-scale implementation management of enterprise application integration processes.
347 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,156 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,229 questions
asked 2022-06-01T10:38:45.437+00:00
LALITHA KRISHNA 41 Reputation points
answered 2022-06-02T13:41:37.31+00:00
Kamlesh Kumar 3,861 Reputation points
1 answer

Why Do my Event Handlers have stopped working in Razor Component through Razor Class Library.

Hi, I have developed a nested Razor Components and placed in Razor Page through razor class library. Now I am using it , It is being displayed as it should be but My Event Handlers have been stopped working. You can get the details from…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,156 questions
asked 2022-06-02T12:54:16.42+00:00
mehmood tekfirst 766 Reputation points
answered 2022-06-02T13:03:10.7+00:00
mehmood tekfirst 766 Reputation points
2 answers One of the answers was accepted by the question author.

ASP.NET: session in a dropdownlist only works in one panel.

I'm using a dropdown list where when selected it will filter data based on the selected branch in two panels. the problem is it will filter only one panel and ignore the other even though I added the session in both panels. this is my code: aspx…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,250 questions
asked 2022-05-30T05:24:15.273+00:00
mush 181 Reputation points
commented 2022-06-02T10:52:12.193+00:00
mush 181 Reputation points
0 answers

In wpf or uwp how to know that the narrator has finished reading?

Hi After I turn on Narrator mode, I actively focus a TextBlock control and let it start reading. How do I know that it has finished reading? Thanks Hi After I turn on Narrator mode, I actively focus a TextBlock control and let it start reading.…

Universal Windows Platform (UWP)
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-05-31T06:33:32.777+00:00
leif li 46 Reputation points
commented 2022-06-02T09:36:37.767+00:00
Hui Liu-MSFT 38,191 Reputation points Microsoft Vendor
0 answers

Is it possible to use WPF InkCanvas 's FitToCurve in real time?

I've been asked several questions in this regard. But still can't solve it. When the user draws a stroke I want the lines to be drawn smoothly. I want to correct the part where the coordinates are shaken due to the user's mouse shaking or hand…

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-06-02T05:29:15.013+00:00
HoneyBee 186 Reputation points
commented 2022-06-02T08:56:29.897+00:00
Hui Liu-MSFT 38,191 Reputation points Microsoft Vendor
1 answer

Image Adjustments in Xamarin

Good Day All i have the following Image from this and i display the image like this and my xaml that shows the image is <ffimage:CachedImage x:Name="img_profile_picture" Aspect="AspectFill" …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-06-02T00:43:14.6+00:00
Vuyiswa Maseko 351 Reputation points
answered 2022-06-02T08:21:35.65+00:00
Vuyiswa Maseko 351 Reputation points
0 answers

TCP: While sending smaller data (15bytes) on frequenly causes timeout.

Hi, I am working on application (Xamarin) which communicates with hardware (acts as server). In mobile application, i am using TCP Client class to send data for every 100ms where server has timedout 800ms. Application is able to communicate for few…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-06-01T12:27:39.237+00:00
A Ramesh 1 Reputation point
commented 2022-06-02T07:40:51.52+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,261 Reputation points Microsoft Vendor
0 answers

Xamarin WeView not able to load render javascript styles when offline

My Application works fine when I am online and try to bind data to webview but when I am binding the data in offline mode then some of the styles are not rendering properly. I am using default Xamarin forms WebView. The Webview is binded with data…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-05-30T15:16:42.777+00:00
Vinay Choudhary 1 Reputation point
commented 2022-06-02T05:30:06.413+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,291 Reputation points Microsoft Vendor
1 answer

How to get current Bahrain Date Time in Xamarin

Hi How to get current Bahrain Date Time in Xamarin i am using below code but getting error. public static DateTime GetBahrainTime() { DateTime BHTime; TimeZoneInfo UAETimeZone = TimeZoneInfo.FindSystemTimeZoneById("Arab Standard Time"); …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-06-01T08:21:52.687+00:00
Bhuwan 616 Reputation points
answered 2022-06-02T05:13:16.103+00:00
Bhuwan 616 Reputation points
0 answers

Javascript: replace /escape character

Hi. I am trying to do a javascript change location bookmarklet - if condition to replace with another URL javascript:if(location.host=='abc')(location.href='http://cde'+location.pathname+'\?test\=enable'); The code works fine, but the last ' comes as %27…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,250 questions
asked 2022-06-01T07:02:16.053+00:00
venkatesh padmanabhan 181 Reputation points
commented 2022-06-02T03:12:44.16+00:00
Yijing Sun-MSFT 7,066 Reputation points
1 answer

My First Call is being established and getting the data from the server while my second custom localhost call is being rejected by using Http.GetFromJsonAsync

Hi, I am trying to add custom component using razor.component and use in razor.view (in Asp.Net MVC Core 6). My First Call is being established and getting the data from the server while my second custom localhost call is being rejected. May be due to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,156 questions
asked 2022-05-31T14:36:41.93+00:00
mehmood tekfirst 766 Reputation points
commented 2022-06-02T02:07:44.913+00:00
Rena Ni - MSFT 2,061 Reputation points
1 answer One of the answers was accepted by the question author.

How to set Label in Xamarin Mobile Apps ?

Hi. I'm a Xamarin Newbies. I've this in Android Emulator How to change " SFA2 " into Sales Force ? Which file to open and modify Please help

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-05-31T02:46:00.153+00:00
Jerry Lipan 916 Reputation points
commented 2022-06-02T02:06:43.587+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,261 Reputation points Microsoft Vendor
3 answers

Retain Listview datakey value within insert event handling.

I have a Listview bound to sqldatasource. I open the insert template from a add button within selected itemtemplate from page behind. I would like to store some of these itemtemplate values within insert template or retrieve these values when i insert a…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,250 questions
asked 2022-05-16T23:34:48.003+00:00
peter liles 556 Reputation points
commented 2022-06-02T01:25:10.12+00:00
Lan Huang-MSFT 25,471 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Location, Insets & Orientation

I need to get the X/Y location of several View(s). I am doing this using the GetLocationOnScreen, GetLocationInWindow & GetLocationInSurface methods (I wasn't sure what the difference was, since they seemed to be giving the same values). I am also…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-05-30T03:07:03.677+00:00
Nathan Sokalski 4,116 Reputation points
accepted 2022-06-01T19:24:25.993+00:00
Nathan Sokalski 4,116 Reputation points
1 answer One of the answers was accepted by the question author.

i want to navigate from a page to an other page

0 i want to navigate from a page(not main page) which is in a tabbed page to a page when clicking on a button. i tried this : MainPage = new NavigationPage(new listofinterest()); MainPage = new TabbedPageMain() { BarBackgroundColor…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2021-02-19T15:41:01.197+00:00
bilel miled 21 Reputation points
commented 2022-06-01T19:23:22.03+00:00
Deej 21 Reputation points
1 answer One of the answers was accepted by the question author.

Custom Drawable Alignment

I have created the following Custom Drawable by inheriting from ShapeDrawable as follows: public class TextDrawable : ShapeDrawable { public override void Draw(Canvas canvas) { base.Draw(canvas); Paint textpaint = new Paint() { Color…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-05-29T00:41:59.907+00:00
Nathan Sokalski 4,116 Reputation points
accepted 2022-06-01T19:15:40.057+00:00
Nathan Sokalski 4,116 Reputation points