All Questions
199 questions
0
votes
1
answer
65
views
How to find HTML elements and ASP controls that have CSS class references that have no definition in Visual Studio
I am looking for a way to locate CSS class names that HTML elements and ASP controls reference in their "class" and "CssClass" properties, but where the class that is referenced ...
0
votes
2
answers
1k
views
How do I Create Azure Static Web App with Visual Studio?
I want to create an Azure Static Web App, aka (No server side code/Razor/MVC etc.) that consists of a single index.html and site.css sheet with Visual Studio 2022 and then deploy those two resources ...
0
votes
2
answers
271
views
Double Clicking Asp button in Designer mode creates function in unwanted aspx.cs fle
On double clicking the asp:Button in Design mode, a button click function is generated in .aspx.cs file of some other .aspx file. How do I make it such that on double clicking the button, it opens in ...
0
votes
1
answer
2k
views
How to reformat a razor (or html) page in visual studio 2022
I used Ctrl +K +D to reformat the c# code, but I can not find a way to do a similar task for HTML/Razor pages.
Is there any such capability in VS 2022 that automatically reformat HTML/Razor page?
-3
votes
1
answer
1k
views
how do I display data to a text area in html from any sort of input aka text box or database in asp.net core ( runat doesnt work or pop up) [closed]
i can't find anything that tells me how to display data to a text area from a database or textbox without using runat or tells me how to use run at, what i am trying to do is this , I have text boxes ...
5
votes
3
answers
963
views
Visual Studio project for Javascript, HTML website with debugging
I want to play with javascript and html and a bit more and would like to do so in Visual Studio. There is a very similar question here. The solution says I can can create an empty ASP.Net Web site and ...
0
votes
1
answer
188
views
Adding ASPX lines through aspx.cs
I have an aspx website that is linked to an Access database. I want to generate cards, for each cards it contains a specific data from the database
(I want each row to be a card). so I need the number ...
0
votes
1
answer
693
views
asp.NET button has an onclick event but the connection between the button and the onclick event is not made
Here is the button code in the productdetails.aspx file:
<asp:Button ID="Button2" runat="server" Text="Add to Wish List"
CssClass="btn btn-...
3
votes
1
answer
259
views
KnockoutJS - How to hide certain elements inside foreach using Observable Arrays?
I have a list of WebsiteOwners. I'm trying to build a UI which will display more information about the owners when I click on them.
this.toExpand = ko.observableArray(); //initialize an ...
0
votes
1
answer
235
views
How to make string builder append button that shows a hidden modal
I'm trying to append a button using a string builder to append the button in a placeholder
the button will be appended depending on a value on the data table
button append works fine but the ...
0
votes
0
answers
483
views
Wrong indentation in .cshtml file [duplicate]
When I use c# code into an cshtml file, it doesn't follow the indentation standard of c#, as shown below it adds three indents. How could I correct these indents?
@model Vidly.ViewModels....
0
votes
1
answer
879
views
Use image or checkbox to include with text with asp:ListItem in Webforms and C#
I have been given some Html pages that require linking with code behind code in a WebForms website. The code doesn't appear to use any controls but a lot of Css classes. I've tried a number of ways to ...
0
votes
0
answers
88
views
Minifying in visual studio 2019
I installed the nuget package related to bundlerMinifier in Visual Studio 2019, but when I select the file related to css,html and etc. for minifying, there is no option related to minifition and ...
0
votes
1
answer
1k
views
How do I do an Input validation in cshtml?
I am trying to do an input validation such that I let the user input a number and I want to check that it is a number. When I click a submit button I want it to check if it is a number. If it is I ...
0
votes
0
answers
30
views
hmultiple records at once into a database in ASP.NET
i’m trying to get a Repository to dave multiple records into a database simultaneously using ASP.NET code first approach. thank you in advance