Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
93 views

ASP .NET Core - Extending @Html.EditorFor to append <span>

I am porting an old .NET 4.8 app to .NET Core and the old app has custom code which extends the @Html.EditorFor to wrap the <input> within a and appends a <span> after the <input> ...
ChrisW's user avatar
  • 13
0 votes
0 answers
39 views

Im making a HTML site but ran into a problem with some buttons that i cant seem to solve

So im making a software for a customer to manage products for a machine with 20 lanes but where i've gotten stuck is that i had it working for a while then i did something that i dont remember and now ...
SkReeD3 Ljungblad's user avatar
0 votes
1 answer
47 views

Html helpers causing errors in ASP.NET MVC

<tr> <td>@Html.LabelFor(LoginVM => model.UserName)</td> <td>@Html.TextBoxFor(model => model.UserName)</td> <td>@Html.ValidationMessageFor(model =&...
Asmar J.'s user avatar
0 votes
0 answers
18 views

I want to add a pop up on a page load in a Volusion based site

I have a Volusion based site and a Klaviyo code. I don't know where to add the code or how to add it so it pops up during the page load. Here is the code: <script type="text/javascript"&...
Cassandra Freeman's user avatar
0 votes
1 answer
37 views

Filtering an HTMLDropDownListFor depending on the ID

I want to be able to filter this dropdownlistfor where it will only display the items in a collection where the MemoId is 0 so far what I've done is this: @Html.DropDownListFor(model => model....
Ray Jay's user avatar
0 votes
0 answers
40 views

What are the steps to establish an LTI 1.3 connection in Laravel using the laravel-celtic-lti library available on GitHub?

What are the steps to establish an LTI 1.3 connection in Laravel using the laravel-celtic-lti library available on GitHub? I tried to make the connection using the example provided in the celtic-lti ...
user24024488's user avatar
0 votes
1 answer
45 views

@Html.ListBoxFor does not select initially selected elements

I have this code in an ASP.NET Core 8 MVC view: <div class="mb-3 position-relative"> @{ var listaAreas = new List<SelectListItem>(); if (Model.Areas != null &...
jstuardo's user avatar
  • 4,450
0 votes
0 answers
23 views

Selecting a Row on page loadup

I have a p-table in ngPrime and when I add a row to it, I want that row to be automatically selected. Does anyone know how to do this? I tried looking through the primeNG docs but theres only options ...
Rookie's user avatar
  • 1
-1 votes
1 answer
703 views

Trying to implement a chatgpt using openai API into an HTML webpage

I'm trying to use a Python script that calls the OpenAI API to get a response from ChatGPT as it currently stands the Python script works and displays the conversation in the terminal but the ...
Mike4082's user avatar
0 votes
0 answers
52 views

How can I remove rows with N/A values after tabulating the database?

This is the code itself. The issue arises when I tabulate the information; the table contains 'Na' values for species that are not found in the sample area. Therefore, I need to find a way to ...
Darthgigas's user avatar
0 votes
0 answers
20 views

How to get value of property Speaks tuff on Model using jQuery?

I work on asp.net MVC 5 .NET Framework . I face issue I can't get value of Property SpeakStuff when catch Detail Action Result . on object ResignationRequester property SpeakStuff represent by two ...
ahmed abdelaziz's user avatar
0 votes
0 answers
25 views

How can I use codepen templates into my react js project

How can I use codepen templates into my react js project? I took help from youtube the resources was not accurate and my component is also not visible and can't get enough resources from google and I ...
Md Azmi Siddique's user avatar
0 votes
0 answers
37 views

using @Html.PasswordFor

I want to print the password on the screen with * (asterisk) using @Html.PasswordFor. It comes with a password on the backend side, but it does not show it as a star on the screen. If I use @Html....
Karayeniceri's user avatar
0 votes
1 answer
38 views

Allowing specific people to view a github html site

How to allow specific people in your HTML site withouth Login? Im trying to do a site that only allows friends in my school to view my site. The persons that are not allowed will only see a white ...
SlimeHacker's user avatar
0 votes
1 answer
861 views

How to add text input filter on Data Table for every column filter?

I work on an ANSP.net MVC app, and I face the issue that I can't add text input filter on top of every column to filter data related to every column with another, meaning I have data table have 3 ...
ahmed abdelaziz's user avatar
1 vote
1 answer
52 views

trying to load text inside a masked image

I'm trying to load a masked photo in black and fill the space with text. I want the text to be responsive to the image's shape and make sure the whole content of the txt file is shown on the photo. ...
Larsen Esteban's user avatar
0 votes
0 answers
13 views

why block on img making the image fit the div vertically [duplicate]

In the following image i have posted the problem i am facing. bellow the images i have also added html code(style is inserted in head element) . when we are not setting image to block there is a gap ...
LOKESH ROY's user avatar
0 votes
1 answer
38 views

How to make question text break to new line when it is too long?

I work on ASP.NET MVC. I face issue on design page with html and CSS and bootstrap. My issue Question 8 is not wrapped to a new line and exceeds outside the border. How to make the question text break ...
ahmed abdelaziz's user avatar
0 votes
0 answers
115 views

Making a mark all as read button

So as the title says i want to make an extension that when clicked marks all the messages (emails in this case) as read instead of going through every single one to get it marked i would assume its ...
SoggyMould's user avatar
0 votes
1 answer
36 views

How to fill the space between the header and the navigation on?

I am currently trying to fill the white space between the header and the navigation. I'm new to HTML and CSS, so please excuse my lack of knowledge. I tried adding a CSS rule to reset the margin of ...
quenthejoker's user avatar
0 votes
1 answer
44 views

How to make Column Stretch all the way to the footer

im learning html css responsive web design and created 3 floated columns to the left with a width of 33.33% width so they align next to each other on computers and they stack on devices with a max-...
Heavenly Gater's user avatar
-6 votes
1 answer
50 views

Why is there a strange space beneath my image? [closed]

There is a weird space underneath my image. I just want a small space but however i change it, it's still as big or bigger which is extremely annoying. What is the problem? I tried adding display: ...
Doofus's user avatar
  • 1
0 votes
1 answer
37 views

How can create a correct marquee

i've had this problem for so long could not fix on my own My marquee keeps having this gaps and empty spaces between each transitionX or some sort of lags if a duplicate the paragraphs `.marquee { ...
achraf's user avatar
  • 1
1 vote
0 answers
51 views

Error: ArgumentException: Cannot bind to the target method because its signature is not compatible with that of the delegate type. in dot net core6

Error: ArgumentException: Cannot bind to the target method because its signature is not compatible with that of the delegate type This is in .NET Core 6; I wanted to add custom html helper textbox ...
pooja sankpal's user avatar
1 vote
2 answers
115 views

ASP.NET Core one-to-many or many-to-one relationship data is not inserted

I try to develop a simple blog app for learning ASP.NET Core. Every Post should have a category and this category should be selectable on creating a post page. I use to DropDownListFor HTML helper for ...
siwm's user avatar
  • 179
0 votes
1 answer
368 views

When submitting a list object through an HTML form in ASP.Net Core MVC, can the indices be non-consecutive?

I have created a form in ASP.Net Core using a dynamic table where the user can add and delete rows. Each row is a being bound to a collection item in the model, e.g., expenses[0], expenses[1], ...
malilymalone's user avatar
1 vote
1 answer
489 views

IHtmlHelper<Model> does not contain a definition for <Foo>

I am migrating an application from ASP.NET 4.8 to ASP.NET Core 6. I have the following in a ButtonExtensions class: public static IHtmlContent HelpButton(this HtmlHelper htmlHelper, Enums.ButtonSize ...
csharpdev's user avatar
0 votes
3 answers
74 views

Why won't my value save to localStorage, others do though

So, I am making a clicker game and whenever any of the buy2inc() functions are pressed they work fine, and everything else saves when you reload. But, whenever you reload, everything saves except the ...
ChickenG1ttr's user avatar
0 votes
1 answer
146 views

Html.ActionLink not aware of current area generates bad links

Context I am migrating an ASP.NET MVC 5 app (running on .NET 4.7.2) to ASP.NET Core 2.2 on .NET 7.0. I am proceeding from a blank project and slowly moving-and-changing files. My current subject is ...
SandRock's user avatar
  • 5,463
0 votes
0 answers
116 views

Using href TO exploit XSS

Every time I try to inject javascript:alert(1) into the href , the website encodes the special characters < : > and when I try to encode it in html the website deletes the encoding and ...
aws abbadi's user avatar
0 votes
1 answer
41 views

Does not exists in the given context

enter image description here $.each(data, function (i, item) { var stdid = item.Studentid; var rows = "<tr>" + "<td class='prtoducttd'>" + item.Studentid + ...
Muzammil Malik's user avatar
-1 votes
1 answer
32 views

how to change the colors of my web page bars based on CSS and HTML

Yeah so I am an average 15y/o. I am new to this field and want help , You see I took a template and customized it. The template was from W3 school.com and now I need to change colors of some bars ...
HasaN Faisal's user avatar
1 vote
0 answers
68 views

Other product variant is disabled and I can not select it for 2 products (JS)

I am a coding beginner and I am building a store. My problem is that I have a product in different fabrics. Now I can only select one fabric type and the other is disabled and I can not select no ...
Eterion's user avatar
  • 11
2 votes
0 answers
31 views

How to stop a scrollable element from being scrolled any further?

I have this scrollable text where the user is able to scroll so that my name is shown. I want to stop the text from being scrolled any further when the element reaches the middle of the user's screen. ...
Rush Shaw's user avatar
1 vote
1 answer
55 views

How do I create something similar to the HTMLHelper namespace for the business name?

I would like to create something that can be called into any view in a website like this @MyBusinessName.TelephoneNumber @MyBusinessName.Address etc... In the same way I would call a HtmlHelper @Html....
Username_null's user avatar
0 votes
1 answer
103 views

Using @HTML.labelFor helper in ASP.NET MVC

I am creating a view for a model in ASP.NET MVC. I am using @HTML.LabelFor @Html.LabelFor(m => m.Name, htmlAttributes: new { @class = "control-label col-md-2" }) but I am getting this ...
Razan Al-Ahmad's user avatar
2 votes
1 answer
849 views

Styles not applying on web from tailwindcss

I followed the tutorial perfectly and made a website while using the live server extension and it was applying. I use Chrome, Edge and Opera to check the .html file itself but no style was applied in ...
Ahmed farid's user avatar
0 votes
2 answers
802 views

datetime-local is showing the data type template on Html.TextBox input box rather than DateTime value

How can I display the preset value of model rather than showing the datetime template on input box? Current view on Edit page for input with type = datetime-local The code for TextBox right now @Html....
amh_300's user avatar
  • 67
0 votes
1 answer
376 views

Display Each Element From Array Using HTML Helper in C#

This is probably a very simple problem, but I am extremely new to C# / MVC and I have been handed a broken project to fix. So it's time to sink or swim! I have an array of strings that is being passed ...
Apolymoxic's user avatar
1 vote
0 answers
76 views

HTML & Javascript Spinner

I am creating a html spinner but having trouble with my code not playing the gif/timer once I've pressed stop and go. I have my html file in the folder with the gifs/png pictures buts its only showing ...
Jaylyn Thomas's user avatar
0 votes
1 answer
194 views

How to add CSS to HTML helpers ASP.NET MVC

I have a HTML helper like this: <p>@Html.EditorFor(model => model.NameUser)</p> this is when the code run : How do I apply a CSS class to it? like i want the input background is blue ...
Nguyễn Tiến Sử's user avatar
0 votes
1 answer
16 views

My MVC Razor Data anotations and some razor helpers arent working

My Data annotations and some helpers like @validationMessage arent working, please help, it is on [required], [maxlength], etc. this is my model: this is my html helper @Html.LabelFor(c => c....
IgnacioCano's user avatar
0 votes
1 answer
52 views

How to make javascript interact with something in a different element (html)?

I am trying to make a webpage with a form where you have an input box and a slider. The slider should display the value of the slider but it only works if put it directly in to the main class but not ...
rohes_kaugummi's user avatar
0 votes
1 answer
52 views

Hide Elements from Html.DropDownListFor() that share the same name

im new to C# and im trying to hide a couple of itens from an html.dropdownlist that i created, i have a dummy list that i created in sql and linked to my project, right now everything works but i have ...
Jonh striker's user avatar
0 votes
0 answers
62 views

Html.ActionLink creating unexpected host address in Razor Page

Creating an AnchorTag in a Razor page table. The table cell with the OrderNbr needs to be a link to the website (e.g. https://host/main?OrderNbr=012345) with the order using the routevalue of the ...
Steven's user avatar
  • 1
1 vote
1 answer
94 views

How to make JS function stay activated as long as radio button is checked after form submission

I have two radio buttons, Yes and No. When Yes is clicked I display some content and hide it when No is clicked. The content is initially hidden, it is displayed only when Yes is clicked. They work ...
Luyolo Mntuyedwa's user avatar
0 votes
1 answer
421 views

How do i run javascript in a eval function

Hi im trying to run js code in a eval() function specifically im trying to disable extentions when you run index.html this is what is inside index.html: index.html: <script> var newWin = ...
philM's user avatar
  • 11
0 votes
1 answer
231 views

Is it possible to not encode the Label tag value rendered in ASP.NET Core HtmlHelper?

I asked a similar question a while back: Is it possible to format Display attribute's Name property value of MVC Model class? I am wondering would it be possible to not apply encoding in the ASP....
Xiao Han's user avatar
  • 1,014
0 votes
0 answers
76 views

Custom search bar modification in Shopify

I was making a medicine store on Shopify and I have two issues: want to make the search bar appear only when the user has signed up, also I cannot show all products available, I only have to show the ...
abrar's user avatar
  • 1
1 vote
1 answer
962 views

DropDown give me null error in ASP.NET MVC

I try to create dropdown list. But it give me error. First dropdown is working which I try with simple list. But in second dropdown which I create with Value and text It give me error. I adopted code ...
Shaheer Ahmed's user avatar

1
2 3 4 5
46