Microsoft Q&A

ASP.NET Web Forms

391 questions

A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.

Browse all .NET tags

391 questions with ASP.NET Web Forms tags

Sort by: Updated
3 answers

after running code , this error show i am using window 10, C#, Asp.net, Bootstrap, JavaScript, Html lang

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
443 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 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.
6,923 questions
asked 2023-01-24T09:23:53.4466667+00:00
Rupa Kumari 0 Reputation points
commented 2023-01-30T02:47:04.53+00:00
QiYou-MSFT 851 Reputation points Microsoft Employee
1 answer

CSS for grid layout?

Hello all: I have an ASP.NET MVC site, so on the image of the page the green header and footer on the overall page is from _LayoutStatic.cshtml, and I tried a blank page but that made no difference. I am trying to create a simple Grid layout in the main…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
asked 2023-01-23T14:29:02.4533333+00:00
John Straumann 21 Reputation points
commented 2023-01-30T02:41:49.2133333+00:00
QiYou-MSFT 851 Reputation points Microsoft Employee
3 answers One of the answers was accepted by the question author.

when user if user leaves blank any step cursor to where error is taken (jquery)

when user if user leaves blank any step cursor to where error is taken For Example var name = $('#name').val(); if (name == '') { $('#name').css('border-color', 'red'); alert('Please write your first and last name') return false; } else…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2023-01-24T06:12:55.2933333+00:00
Harun Ergün 65 Reputation points
edited the question 2023-01-30T02:22:04.0733333+00:00
Lan Huang-MSFT 8,876 Reputation points Microsoft Employee
4 answers

Web form issue

Hi, I get "undefined" unexpectedly to the column/field below, while there is the proper row value returned from the table. What is the reason? html += "<td >货币</td><td style='font-weight:…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
443 questions
asked 2023-01-20T07:49:30.2666667+00:00
Peter_1985 1,831 Reputation points
commented 2023-01-30T01:52:36.41+00:00
Peter_1985 1,831 Reputation points
2 answers

404 issue to the file

Hi, Due to issue like What to adjust below? <body style="background-color: ???; background-image:url(beautiful_Currency0e.jpg);">

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
443 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2023-01-28T08:50:16.07+00:00
Peter_1985 1,831 Reputation points
commented 2023-01-30T01:50:37.76+00:00
Peter_1985 1,831 Reputation points
0 answers

How to convert xml to style so that browser can render html from xml when using RSS

I have downloaded a app called MessageBoard and trying to configure RSS Feed to output serialised data to browser. The result display a error message with code written in xml format. This XML file does not appear to have any style information associated…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
asked 2023-01-30T01:05:53.09+00:00
peter liles 371 Reputation points
0 answers

the taghelper do not rendered?

using Microsoft.AspNetCore.Razor.TagHelpers; namespace tag.Components { [HtmlTargetElement("pagination", TagStructure = TagStructure.WithoutEndTag)] public class PaginationTagHelper : TagHelper { …

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
asked 2023-01-28T01:27:55.3233333+00:00
打玻璃 1,446 Reputation points
commented 2023-01-28T07:54:24.9066667+00:00
打玻璃 1,446 Reputation points
1 answer One of the answers was accepted by the question author.

What is the difference of = and {get;set;}?

public int PageIndex{get;set;}=0; public int PageIndex=0; what is the difference?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
asked 2023-01-27T14:03:05.81+00:00
打玻璃 1,446 Reputation points
accepted 2023-01-28T01:08:55.3866667+00:00
打玻璃 1,446 Reputation points
1 answer

How to setup Vnet integration between ASP.NET 4.8 Azure Service V3 app and SQL Managed Instance?

I just created a simple ASP.NET Web Forms app to Azure Service - Premium V3 plan. This app runs fine as long it does not access our database in SQL Managed Instance (MI). When trying to access the database (a simple SQL SELECT statement in the…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
1,173 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,306 questions
Azure SQL Database
asked 2023-01-17T16:43:22.7466667+00:00
Jan J. Vopalensky 0 Reputation points
answered 2023-01-27T14:29:08.0133333+00:00
Jan J. Vopalensky 0 Reputation points
0 answers

How to remove validation-info in text?

in Index.cshtml <form> <div class="row"> <div class="col-sm-2"> <label class="col-form-label">客户:</label> <div> …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
asked 2023-01-27T12:33:03.2066667+00:00
打玻璃 1,446 Reputation points
commented 2023-01-27T12:42:05.3866667+00:00
AgaveJoe 17,021 Reputation points
1 answer One of the answers was accepted by the question author.

How to use HttpContext or Claims in __Layout.cshtml?

I am using asp.net core 7.0 how to get UserClaims in Pages/Shared/_Layout.cshtml ? I do not want to use ViewData because I have to set it in each page.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
asked 2023-01-27T07:05:48.23+00:00
打玻璃 1,446 Reputation points
accepted 2023-01-27T12:30:12.55+00:00
打玻璃 1,446 Reputation points
2 answers

Getting User Details from Azure AD in ASP.NET

In my ASP.NET 4.8 MVC application, I was able to get user authenticated using Azure AD. Now I need to get user details like job title, department, email, etc. From the research I did so far, it looks like MS Graph API is the way to go. Am I correct? Can…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,583 questions
asked 2023-01-17T14:32:53.06+00:00
Joe Green 141 Reputation points
edited an answer 2023-01-27T08:04:51.4433333+00:00
Givary-MSFT 11,341 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

How to clear text box records before or after downloading a file in ASP.NET web application

using (FileStream fs = File.Create(dataDir + xmlFileToConvertTo)) { Byte[] info = new UTF8Encoding(true).GetBytes(xmlData); fs.Write(info, 0, info.Length); …

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 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.
6,923 questions
asked 2023-01-26T04:58:36.0633333+00:00
Roefatin, Ridzuan 20 Reputation points
commented 2023-01-27T01:34:34.4033333+00:00
Roefatin, Ridzuan 20 Reputation points
1 answer

Asp.Net web application with Token implementation

Hi, In my Asp.Net (aspx) web application, we are using form based authentication. As part of modernization, we are asked to move to token based authentication. How will I enable token based authentication in my application without impacting the current…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
asked 2023-01-26T02:20:27.5633333+00:00
Selvakumar Ramachandran 1 Reputation point
commented 2023-01-26T13:42:26.1033333+00:00
AgaveJoe 17,021 Reputation points
3 answers One of the answers was accepted by the question author.

How can add Phone Number Charecter Validation asp.net mvc web

Guys I have question How can Add Phone Number Charecter Validation For example.. User writing 8 charecter but ı want minimum 10 charecter and maximum 20 charekter how can add ? Model index.cshtml

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 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.
6,923 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
144 questions
asked 2023-01-26T09:07:25.9433333+00:00
Harun Ergün 20 Reputation points
answered 2023-01-26T11:19:34.17+00:00
Harun Ergün 20 Reputation points
0 answers

Trying to upload excel file size 2 MB, when rows are more than 10000 then reading only 6000 rows and remaining rows are not added.

I am using Asp.net, using FileUpload control trying to read excel file and converting them into StringWriter. IF StringWriter data is processed directly in SQL query I can see all the rows are available but when I run through interface then I can see…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
601 questions
asked 2023-01-25T05:26:17.8+00:00
Mohammed Tajudeen 0 Reputation points
edited a comment 2023-01-26T06:21:04.7033333+00:00
XuDong Peng-MSFT 4,571 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

How Do I Return ContentDisposition.FileName -PDF from a Method To be Attached to MailMessage

Please I have a method SendRenewalNotification() that calls another Method PolicyScheduleGenerator() to get PDF that it will attach to a MailMessage. The SendRenewalNotification() is pasted below: private void…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
144 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2023-01-23T18:37:21.48+00:00
abiodunajai 146 Reputation points
commented 2023-01-23T21:34:41.0433333+00:00
abiodunajai 146 Reputation points
0 answers

How Do I Return ContentDisposition.FileName -PDF from a Method To be Attached to MailMessage

Kindly show me how to achieve this. I have a method SendRenewalNotification() that sends Policy Renewal Notification to Clients. This Method calls another Method called PolicyScheduleGenerator() that Generates PDFs to be attached to MailMessage. …

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
144 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2023-01-23T18:03:39.4366667+00:00
abiodunajai 146 Reputation points
edited the question 2023-01-23T18:21:35.97+00:00
abiodunajai 146 Reputation points
1 answer One of the answers was accepted by the question author.

how to use components in razor pages?

I know I can use component like this: <component type="typeof(Editor)" render-mode="ServerPrerendered" /> but can I use it like <Editor /> or <my-editor /> with out import blazor?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
asked 2023-01-19T02:14:12.6466667+00:00
打玻璃 1,446 Reputation points
accepted 2023-01-23T13:05:13.7633333+00:00
打玻璃 1,446 Reputation points
0 answers

can i make a website with asp .NET on which i can embed different free tools made on JavaScript?

I want a website like this one: https://ahbtools.com but the question is can I embed different tools made in JavaScript on an asp .NET? if yes how? anyone knows the solution provide me a link or some explanation. thanks.

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
443 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
391 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2023-01-15T20:26:51.8733333+00:00
danielgomez 0 Reputation points
edited the question 2023-01-20T02:40:15.2266667+00:00
TP 10,511 Reputation points