I am trying to Hide or Show filed on the MVC form base of a value stored in the Viewbag. the value of the Viewbag is a database return. I can see the value of the Viewbag in my JavaScript but when I run the form Hide/Show functionality is not working. I am missing something can anyone help CHTML code
Tag: c#
GUID model binding in ASP.NET MVC
I was hoping someone could help me sort this out. The solution to this is probably obvious but I can’t seem to figure out what I’m missing… I’m trying to issue a get request from my Javascript code, and the URL contains a Guid. The ASP.NET controller does not get hit/register the request to the API. I’ve tried a couple
Is there any way to get full path of file in form?
I am trying to get file by input element of type “file”. That element is in partial view and I want to send it to controller or request it there by “Request.Form[“inputFile”];”. This way give me only name of the file. In the controller i want to send it via email attachment but I need to load that file. Aplication
Blazor autocomplete tagging
Similar to this question, I am looking for a component to add tags to an object like in stackoverflow, meaning autocomplete text field for tags. I am either looking for a native component or a way to wrap a JS solution so that it can be used in blazor. Another idea is a multi-select component with checkboxes like discussed here,
What is the error OpenQA.Selenium.WebDriverException : javascript error: document.getElementByName is not a function
I got a error in executing the below line of code I got the error At line 3 document.getElementByName is not a function (Session info: chrome=87.0.4280.141) what is the reason for it? Answer The JavaScript method is document.getElementsByName(…) (plural – Elements not Element). This method returns a collection of elements, not a single element. Be sure to access the [0]
How can I set Date in second TextBox to first TextBox’s day + 1
I have two TextBox in a page. When user pick a date from first TextBox, second TextBox has to be first TextBox’s day +1(previus dates has to be disable). For exemple: User pick 2020-12-29, second minimum date has to be 2020-12-30. Here is the first TextBox with js codes that sets the date to today. I can’t figure it out
Communication between browser extension and windows service
I have a browser extension(For chrome, Firefox, Edge) and now I want to query some info from the extension to the windows service which is running on the same machine. I need to pass some strings from the extension and the windows service will process these strings and return the processed strings. I have tried WebAssembly but it does not
While loop in node.js
I am trying to convert a C# snippet for a simple while loop to a JavaScript solution. The C# code asks for a input, prints the output, and as long as the input is not 0, continues the question. For the JavaScript solution, I am using VS Code and the integrated terminal for the JS output using node. As I
SVG cannot be displayed as an image
I’ve got svg string file on database. I want to show it on my Asp.Net Core projects view. I’m calling my data as Model from controller. When I’m trying to do it, it displays as text on my page. Here is my svg: And here is my code on Index.cshtml file: How can fix this? UPDATE: Answer I’ve solved problem.
ASP .Net Core 3.1 octokit rest npm package issues
I use npm and a gulpfile.js to essentially export npm packages to a ‘lib’ folder under ‘wwwroot’; this works a treat and whenever I update a specific npm package if it’s in my gulpfile.js watch list it’ll push the contents to the ‘lib’ folder. The issue I have is that I used to use a manually extracted copy of ocktokit-rest