Skip to content

Magenaut

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

extension-methods

ASP.NET repeater alternate row highlighting without full blown

August 30, 2022 by Magenaut

I’m trying to accomplish simply adding a css class to a div on alternate rows in my <itemtemplate/> without going to the overhead of including a full blown <alternatingitemtemplate/> which will force me to keep a lot of markup in sync in the future.

Categories ASP.NET, Q&A Tags asp.net, c#, data-binding, extension-methods, repeater Leave a comment

Can I use Extension Methods inline in an ASPX page?

August 28, 2022 by Magenaut

Is it possible to do something like this inline in an ASPX page?

Categories ASP.NET, Q&A Tags asp.net, extension-methods, inline-code Leave a comment

Why doesn’t the Controls collection provide all of the IEnumerable methods?

August 27, 2022 by Magenaut

I’m not for sure how the ControlCollection of ASP.Net works, so maybe someone can shed some light on this for me.

Categories ASP.NET, Q&A Tags asp.net, c#, extension-methods, ienumerable, linq Leave a comment

How to call extension methods using Eval in a databound control

August 26, 2022 by Magenaut

I have a simple extension method on the int type so I can do the following:

Categories ASP.NET, Q&A Tags asp.net, data-binding, extension-methods, late-bound-evaluation Leave a comment

NVelocity extension method ASP.NET webform

August 25, 2022 by Magenaut

I was wondering if it’s possible to use an extension method with asp.net webforms and nvelocity. I would like to set some defaults if the string value is null or empty.

Categories ASP.NET, Q&A Tags asp.net, extension-methods, nvelocity Leave a comment

Extension Method and Razor Page

August 25, 2022 by Magenaut

I have defined an extension method in app_code like below.

Categories ASP.NET, Q&A Tags asp.net, c#, extension-methods, razor, webmatrix Leave a comment
  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