3,253 questions with ASP.NET tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

populate dropdown list ,on event change of textbox

I have below table.i want, when i input in textbox Prdno (10001) then relevent data get display in dropdown list(ItemMasterFile) and label(Orderno) Create table #itemMasterFile (Codeitem int,Descriptionitem varchar(50)) Create table #Probale (Prdno…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 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,235 questions
asked 2023-03-16T12:08:32.29+00:00
Analyst_SQL 3,531 Reputation points
commented 2023-03-17T10:32:30.56+00:00
Analyst_SQL 3,531 Reputation points
1 answer

how to call a controller method from razor view text input field

how to call a controller method from razor view text input field

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
asked 2023-03-16T10:02:17.9766667+00:00
Padma Anantha Krishnan 0 Reputation points
answered 2023-03-17T06:57:20.8+00:00
QiYou-MSFT 4,306 Reputation points Microsoft Vendor
0 answers

How to pass a TextboxID in an HTML Link

I have an aspx page and it has a standard TextBox for input. For testing, I place an integer in it (i.e. 5), run the solution and it displays information pulled from SQL table into the page based on the ID entered. How do I call this from a link where…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
asked 2023-03-15T17:29:21.35+00:00
Alex P 0 Reputation points
commented 2023-03-17T06:28:21.15+00:00
Viorel 112.1K Reputation points
1 answer

Highlighte table cells

When the 'add line' button is clicked, I want to check the values of each cell in all rows in my table and if the value is 0 or empty, i want to highlight those cells. I tried something like this, but it doesn't work: var $row =…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
866 questions
asked 2023-03-15T09:00:29.1633333+00:00
Kabdar 1 Reputation point
commented 2023-03-17T05:55:51.7666667+00:00
Lan Huang-MSFT 25,471 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

are below mentioned packages windows-specific dependencies?

My web application is using below packages, System.Security.Principal.Windows WindowsAzure.Storage Microsoft.WindowsAzure.ConfigurationManager System.windows.forms this particular application also has .resx files It does not have .xaml…

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,671 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
asked 2023-02-01T08:36:51.65+00:00
Tanuja Valluru 40 Reputation points
accepted 2023-03-17T05:52:32.66+00:00
Tanuja Valluru 40 Reputation points
0 answers

Where to store Access Token after Web API Authentication?

I am having 2 application components: Web API protected with JWT WEB APPLICATION WEB APPLICATION authenticates user with login page (username, password) to the WEB API and gets the Access-token & Refresh-token. Where do I store the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
asked 2023-03-14T18:53:38.6266667+00:00
Kevin Azure 141 Reputation points
commented 2023-03-17T03:22:07.6833333+00:00
Lan Huang-MSFT 25,471 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

System.InvalidOperationException: The ConnectionString property has not been initialized. ASP.NET Core 7

I am encountering the following error when I debug my application. System.InvalidOperationException: The ConnectionString property has not been initialized. Otherwise, if I don't debug it just shows no data. I am very new to ASP.net and not sure how to…

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
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
asked 2023-03-08T17:07:45.6433333+00:00
tjestesjr77 20 Reputation points
accepted 2023-03-16T17:02:13.5633333+00:00
tjestesjr77 20 Reputation points
1 answer One of the answers was accepted by the question author.

ASP.net: Data field used in gridview is not showing as column but turns into title in another field

Hi. I have a SQL datasource that returns 5 columns and a gridview to show them, but one of the columns does not show as a column in the gridview but turns into title (showing when holding the mouse over) in one of the other columns. It keeps doing it no…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
asked 2023-03-07T07:47:55.6666667+00:00
Kurt Jensen 20 Reputation points
commented 2023-03-16T12:04:10.6233333+00:00
Kurt Jensen 20 Reputation points
1 answer One of the answers was accepted by the question author.

Change event on Dropdown list ,populate label

I have table Create table #SalesOrder (orderno int,Order_Date date) Create table #OrderDetail (ID int,orderno int,orderqty int) Insert into #SalesOrder values(11,'2023-03-15') insert into #OrderDetail Values(1,11,25) insert into #OrderDetail…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 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,235 questions
asked 2023-03-15T18:02:54.8833333+00:00
Analyst_SQL 3,531 Reputation points
commented 2023-03-16T11:51:45.27+00:00
Analyst_SQL 3,531 Reputation points
2 answers

If there any alternative for parallel foreach issue

We are using the parallel foreach for Asyn process, and it sometimes returns an unexpected value, how can I resolve this functionality issue Or is there any alternative solution for parallel foreach

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 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,235 questions
asked 2023-03-10T08:20:52.8466667+00:00
Settu Ranganathan 1 Reputation point
commented 2023-03-16T09:10:04.1233333+00:00
Lan Huang-MSFT 25,471 Reputation points Microsoft Vendor
0 answers

CSS table - column width adjustment

i wish to make a table 1. column 1 wrap must be true 2. if column 1 has short text, column 2 push to the left 3. if column 2 has long text or multiline, column 2 push to the right within 100% width of the table Thanks a…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
asked 2023-03-15T09:53:20.6066667+00:00
WONG Tony 161 Reputation points
edited a comment 2023-03-16T03:11:39.0266667+00:00
Lan Huang-MSFT 25,471 Reputation points Microsoft Vendor
1 answer

how to edit the razor pages url?

I have razpr pages :ProductEidt and its url will be http://localhost/ProductEdit?id=1 can i change the@page directive to use the url like http://localhost/p-e-1 ? ProductEidt to p-e and the parameter is 1

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
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
asked 2023-03-16T00:36:38.28+00:00
mc 3,641 Reputation points
answered 2023-03-16T02:52:12.5066667+00:00
SurferOnWww 1,906 Reputation points
1 answer One of the answers was accepted by the question author.

Date parameter is not working Properly

I am using linq ,in which date parameter is not working public ActionResult BBDetail(DateTime? start, DateTime? end) { var list = new List<ProbaleMV>(); List<ItemMasterFile> tblitem =…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 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,235 questions
asked 2023-03-14T08:31:07.04+00:00
Analyst_SQL 3,531 Reputation points
accepted 2023-03-15T17:55:11.55+00:00
Analyst_SQL 3,531 Reputation points
1 answer One of the answers was accepted by the question author.

Get a list of files in a directory in descending order by creation date.

I have created a folder that a user can copy and paste a monthly newsletter PDF into. Trying to get the monthly newsletter PDF list of files and sort them by the day they were created on the crownfile page, and then select the last recently modified file…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
asked 2023-03-14T17:21:59.24+00:00
Oneil Drummond 40 Reputation points
accepted 2023-03-15T17:45:51.0433333+00:00
Oneil Drummond 40 Reputation points
1 answer One of the answers was accepted by the question author.

Asp.net require field validator stops click event

Hi, i have designed web part in SharePoint 2019, problem: as i place required field validator on text box, so it stops button click event. (asp.net button click event) as i remove require field validator, button click events works. Kindly suggest, what…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,668 questions
asked 2023-03-09T14:20:24.5666667+00:00
qasimidl 106 Reputation points
accepted 2023-03-15T12:19:31.93+00:00
qasimidl 106 Reputation points
1 answer

Created a new project in asp.net web application visual studio 2022 and i get a blue screan when trying to open it

so i created a brand new project i tried to run it right away and i'm getting blue screens everytime after compiling the project.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,604 questions
asked 2023-03-14T14:45:57.02+00:00
Rikuc 0 Reputation points
answered 2023-03-15T09:27:05.03+00:00
Abishek Haththakage 0 Reputation points
4 answers One of the answers was accepted by the question author.

Is it possible to show empty label value if the value of a column used for date or time is null?

I have column for Name, Date and another one for Time. If the values of date and Time columns are null or empty, how do I get to still show the label value in null data value? Is this Possible? please how can I do that?. Here is what I mean in the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 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,235 questions
asked 2023-03-13T13:41:43.36+00:00
Donald Symmons 2,856 Reputation points
accepted 2023-03-15T09:00:07.7533333+00:00
Donald Symmons 2,856 Reputation points
2 answers One of the answers was accepted by the question author.

Is there a way to capitalize first letters of each word in a parameter string?

I tried to set letters case to store textbox values in the database table, and store the beginning of each word in capital letter, but so far, I have been able to set only capital letters into the database, with this lines. These are two different…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 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,235 questions
asked 2023-03-14T14:04:14.9+00:00
Donald Symmons 2,856 Reputation points
accepted 2023-03-15T08:49:40.15+00:00
Donald Symmons 2,856 Reputation points
1 answer One of the answers was accepted by the question author.

web config page access and permission not working with Global asax Routing

How do I give permission to a web page or web form for all users in web config file when routing is done in the Global asax file? This is how I grant permission to all users in the web config file for a page named topic.aspx <location…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 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 2023-03-04T11:45:18.51+00:00
Donald Symmons 2,856 Reputation points
commented 2023-03-14T19:58:07.0166667+00:00
gary nagel 0 Reputation points
1 answer One of the answers was accepted by the question author.

Programmatically Change Field Name at runtime

Is there a way to change the FieldName of a model at runtime instead of using resource files? I'm trying to develop a multi-language set of forms where the FieldName is loaded from a database rather than a resource file. The reason for this is the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
asked 2023-03-02T01:52:21.3766667+00:00
Kmcnet 691 Reputation points
accepted 2023-03-14T17:21:11.6266667+00:00
Kmcnet 691 Reputation points