Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

javascript

asp.net C# get selected row from gridview using javascript function

September 4, 2022 by Magenaut

I created a javascript function to get the selected row from a gridview and it is working fine when I use BoundField DataField, but when I use label inside the ItemTemplate in the gridview it returns a value but with html codes.

Categories ASP.NET, Q&A Tags asp.net, c#, javascript Leave a comment

How do I tell a Javascript method to wait until after binding values to execute in DotVVM?

September 4, 2022 by Magenaut

I use a value binding (<dot:HtmlLiteral Html="{value: BannerHTML}" class="mainBanner"/>) to generate some of my page content based on a number of variables.

Categories ASP.NET, Q&A Tags asp.net, dotvvm, javascript Leave a comment

Prevent Clicking Again When Submitting Form in React

September 4, 2022 by Magenaut

I have a form in my React app and i wanted to disable or not be able to click the Pay button once i have submitted it. The problem is, that it is not submitting through API but through a <form>.

Categories ASP.NET, Q&A Tags asp.net, ecmascript-6, javascript, react-hooks, reactjs Leave a comment

Change color tr in asp.net

September 4, 2022 by Magenaut

@foreach(var item in model){ <tr id ="nameoftr"> <td> asd </td> @if(item.num > 5) { <script>document.getElementById('nameoftr').className = 'blinkAction';</script> } </tr> } i tried like this to change class of the tr but only the first row affected but there are many >5 rows. i tried the if block under the tr block the result was same. … Read more

Categories ASP.NET, Q&A Tags asp.net, asp.net-core, javascript, jquery Leave a comment

JQuery dropdownlist/select onchange event not fired

September 4, 2022 by Magenaut

I have this dropodownlist / combobox / select element inside an asp.net form:

Categories ASP.NET, Q&A Tags asp.net, javascript, jquery Leave a comment

How to change the value of an asp label with JavaScript?

September 4, 2022 by Magenaut

I’m trying to add an error label to the top of a panel I have. I have a button created in C# on page load that calls a JavaScript function that I want to display an error message on my panel when clicked.

Categories ASP.NET, Q&A Tags asp.net, c#, javascript Leave a comment

How to add additional attributes to a dropdown created using an HTML helper?

September 4, 2022 by Magenaut

I have two dropdowns created using HTML helpers, however i am not entirely sure on where i could add additional attributes to these two helpers? More specifically, i want to add an “onblur” attribute that calls a javascript function, as follows:

Categories ASP.NET, Q&A Tags asp.net, html, javascript, razor Leave a comment

How can load file to Kendo PDF Viewer?

September 4, 2022 by Magenaut

I have the following PDF Viewer in my view, How can I update pdf.File(Url.Content("~/pdf/test.pdf") based on the selected project.

Categories ASP.NET, Q&A Tags asp.net, javascript, jquery, kendo-asp.net-mvc, kendo-ui Leave a comment

Removing required property once other textbox is filled

September 4, 2022 by Magenaut

Hiii.. i am very new here and i need help šŸ™

Categories ASP.NET, Q&A Tags asp.net, javascript, vb.net Leave a comment

Access Messages from Message Center

September 4, 2022 by Magenaut

Hi I’m try to display the top 5 messages from the message center on the homepage. But I’m not sure what I’m doing wrong. I try to get the messages from the message view model here is my code.

Categories ASP.NET, Q&A Tags asp.net, asp.net-core, c#, javascript, razor-pages Leave a comment
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page81 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress