Microsoft Q&A

ASP.NET

1,175 questions

A set of technologies in the .NET Framework for building web applications and XML web services.

Browse all .NET tags

351 questions with ASP.NET tags

Sort by: Updated
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
1 answer One of the answers was accepted by the question author.

Converting Virtual Directory into an Application.

I am attempting to run a application and encounter this error when trying to execute a install script in browser. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. …

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-07T20:08:38.327+00:00
peter liles 371 Reputation points
accepted 2023-01-27T23:20:03.4233333+00:00
peter liles 371 Reputation points
3 answers One of the answers was accepted by the question author.

How do I modify this jQuery to allow for more controls?

Greetings again mates. I have been trying quite unsuccessfully for the last three days to try to figure out how to dynamically add rows based on selecting DropDownList values. There are quite a good number of examples on how to do this by clicking a…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,827 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
482 questions
asked 2023-01-03T19:53:00.06+00:00
Simflex 81 Reputation points
edited the question 2023-01-25T22:15:50.1566667+00:00
Simflex 81 Reputation points
1 answer One of the answers was accepted by the question author.

ASP.Net Core API Error (Unable to resolve service for type 'TapAPI.Models.TodoContext' while attempting to activate 'TapAPI.Controllers.TapController')

Hi Y'all, If someone could please help me with the below issues? I built a Web API using ASP.Net Core (from Microsoft Tutorial). When calling the API, I got this error below: The error can be read here: …

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
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2022-03-25T22:12:09.157+00:00
Huynh, Phuong Thao 81 Reputation points
commented 2023-01-24T16:31:47.32+00:00
Yoann Cassis 0 Reputation points
3 answers One of the answers was accepted by the question author.

How to Dynamically Add a Photo with Labels Underneath So Labels Don't Shift Up & Down

I have a simple HTML/ASPx page that loads an image, and then sets a caption underneath in the Page_Load method. The filename of the image is passed as a parameter. The height of the image is unknown at design time.  When loading the page, the labels…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
601 questions
asked 2023-01-20T23:46:50.7266667+00:00
Jan Tervonen 20 Reputation points
edited an answer 2023-01-24T09:15:25.34+00:00
QiYou-MSFT 851 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
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 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-23T18:37:21.48+00:00
abiodunajai 146 Reputation points
commented 2023-01-23T21:34:41.0433333+00:00
abiodunajai 146 Reputation points
2 answers One of the answers was accepted by the question author.

How to Stop UpdatePanel Progress Loading after completion of file download

Hi, I am downloading file (from folder) properly, after completion of file down, unable to stop the progress loading, how to fix this. Pls ref my attached code, VB.Net & asmx file download code. progressVBCode.txt

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-18T16:55:12.65+00:00
Aypn CNN 386 Reputation points
accepted 2023-01-21T04:49:39.3833333+00:00
Aypn CNN 386 Reputation points
3 answers One of the answers was accepted by the question author.

Login cannot redirect to another page

I recently tried to use authentication and authorization on my login, but when I click to login nothing happens; it does not redirect here is my code Login.aspx.cs private bool ValidateUser(string email, string pass) { SqlConnection…

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
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2023-01-13T16:06:10.11+00:00
Donald Symmons 941 Reputation points
accepted 2023-01-19T08:06:28.23+00:00
Donald Symmons 941 Reputation points
1 answer One of the answers was accepted by the question author.

Successful after the button

I want to see the text Alert (Successful) after the button is clicked. How should I do ?

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
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
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
8,474 questions
asked 2023-01-19T05:44:16.66+00:00
Harun Ergün 65 Reputation points
accepted 2023-01-19T07:34:51.72+00:00
Harun Ergün 65 Reputation points
2 answers One of the answers was accepted by the question author.

Overlay cards on each other

Hello forum, Please how can a situation where I have about 4 cards that overlay each other on a webpage, just as shown in the image below? When the cursor hovers on any card, the card will be brought forward and other cards go behind. Here is what I…

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-15T10:26:09.24+00:00
Donald Symmons 941 Reputation points
accepted 2023-01-18T07:48:07.62+00:00
Donald Symmons 941 Reputation points
2 answers One of the answers was accepted by the question author.

how i get the clicked row in gridview with link button add by code asp.net?

Hi members i want to get the row of the gridview when i click the linkbutton column this is my try Protected Sub OnSubmit(ByVal sender As Object, ByVal e As EventArgs) Dim lnkSubmit As LinkButton = TryCast(sender, LinkButton) Dim row As…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,827 questions
asked 2023-01-14T09:12:42.42+00:00
HOUSSEM MAHJOUBI 206 Reputation points
accepted 2023-01-17T10:03:07.59+00:00
HOUSSEM MAHJOUBI 206 Reputation points
1 answer One of the answers was accepted by the question author.

How to use authentication on a custom login.aspx webform

Please forum, I know I asked lots of questions about this issue, but I need you guys to help me out with my own code here. Recently, I read about authenticating users based on their roles. The webforms used were default webforms with its controls, but I…

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
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2023-01-11T16:52:20.1933333+00:00
Donald Symmons 941 Reputation points
accepted 2023-01-17T06:16:28.49+00:00
Donald Symmons 941 Reputation points
1 answer One of the answers was accepted by the question author.

C# XDocument replace attributes values

Hello, I have it and I want to change and replace attributes. Works well with XmlDocument. Please see attached test files. Product_xml.TXT Product_xml_NEW.TXT Product_Complex_xml.TXT Convert_to_XDocument.txt private void…

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
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2023-01-14T08:32:42.57+00:00
Markus Freitag 2,961 Reputation points
accepted 2023-01-15T19:16:08.28+00:00
Markus Freitag 2,961 Reputation points
2 answers One of the answers was accepted by the question author.

How to read XPS file in ASP.NET Core?

I need to read and process the contents of XPS files in Asp.Net Core what is the best way to do this? I can't find any Nuget package that can handle it.

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 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
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2022-01-12T14:21:54.033+00:00
j c 21 Reputation points
answered 2023-01-11T11:14:08.2433333+00:00
wst 1 Reputation point
2 answers One of the answers was accepted by the question author.

How to pass data from (front-end) .aspx to (back-end) .aspx.cs using hidden filed

I want to pass data from back-end to front-end and front-end to back-end so far I have tried like below back-end to front-end :- back-end (.aspx.cs):- public string amt; protected void Page_Load(object sender, EventArgs e) …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 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-09T11:19:52.853+00:00
Ashok Kumar 121 Reputation points
commented 2023-01-11T05:50:48.74+00:00
Ashok Kumar 121 Reputation points
2 answers One of the answers was accepted by the question author.

Creating blog

I want to learn how to create a blog. I created 3 webform to take care of this. The first webform is used to insert data into the database, the second web form is used to display the Titles and the third webform is to display the Titles, and contents of…

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
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2022-12-29T16:22:11.377+00:00
Donald Symmons 941 Reputation points
accepted 2023-01-10T08:06:59.573+00:00
Donald Symmons 941 Reputation points
1 answer One of the answers was accepted by the question author.

Error with migrating from website to web application: Could not load type ‘quirver_Application.Default’

I will try an debug this issue I am facing but I thought I should ask first if there be any help It seems like there is a difference between web application and a website. A few hours I decided to try out something; created a new web application and…

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
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-09T07:59:53.517+00:00
Donald Symmons 941 Reputation points
accepted 2023-01-10T08:04:23.457+00:00
Donald Symmons 941 Reputation points
4 answers One of the answers was accepted by the question author.

Connection ID required SignalR Asp.net core Web api

Good Day Everyone i have created a Asp.net Core web api for the purpose of SignalR my hub is defined like this public class ChatHub : Hub { public ChatHub() { } public void SendMessage(string AUTHOR, string…

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
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,804 questions
asked 2023-01-01T23:19:10.33+00:00
Vuyiswa Maseko 351 Reputation points
accepted 2023-01-04T10:42:25.85+00:00
Vuyiswa Maseko 351 Reputation points
2 answers One of the answers was accepted by the question author.

SqlCommand issue

Hi all, There is the proper existing connection on Webconfig file. What is the reason to the issue below?

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-04T06:19:52.873+00:00
Peter_1985 1,831 Reputation points
answered 2023-01-04T07:04:50.613+00:00
Olaf Helper 25,556 Reputation points
1 answer One of the answers was accepted by the question author.

Help with if statement in repeater

Hi, How can I add If statement to repeator, this line: <%# double. Parse(Math.Round((Replace(Eval("VPC"), ".", ",") / 7.5345), 2, MidpointRounding.ToEven)).ToString("0.00") & " €"%> …

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,827 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 2022-12-31T13:48:29.817+00:00
nickCroat 96 Reputation points
commented 2023-01-01T10:38:10.667+00:00
nickCroat 96 Reputation points