Skip to content

Magenaut

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

c#

get index of DataTable column with name

August 31, 2022 by Magenaut

I have some code which sets the value of cells in a DataRow by column name i.e.

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

LinkButton Send Value to Code Behind OnClick

August 31, 2022 by Magenaut

I have a ASP LinkButton Control and I was wondering how to send a value to the code behind when it is clicked? Is that possible with this event?

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

How to dump ASP.NET Request headers to string

August 31, 2022 by Magenaut

I’d like to email myself a quick dump of a GET request’s headers for debugging. I used to be able to do this in classic ASP simply with the Request object, but Request.ToString() doesn’t work. And the following code returned an empty string:

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

Web Api + HttpClient: An asynchronous module or handler completed while an asynchronous operation was still pending

August 31, 2022 by Magenaut

I’m writing an application that proxies some HTTP requests using the ASP.NET Web API and I am struggling to identify the source of an intermittent error.
It seems like a race condition… but I’m not entirely sure.

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api, c#, dotnet-httpclient Leave a comment

What does vary:accept-encoding mean?

August 31, 2022 by Magenaut

the google page speed addon informs me:

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

System.ObjectDisposedException: The ObjectContext instance has been disposed and can no longer be used for operations that require a connection

August 31, 2022 by Magenaut

I am using EF 4 to retrieve a list of Employees.

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

Which types should my Entity Framework repository and service layer methods return: List, IEnumerable, IQueryable?

August 31, 2022 by Magenaut

I have a concrete repository implementation that returns a IQueryable of the entity:

Categories ASP.NET, Q&A Tags architecture, asp.net, c#, entity-framework Leave a comment

How to add static list of items in MVC Html.DropDownList()

August 31, 2022 by Magenaut

I would like to assign a static list of items in a SelectList() to a Html.DropDownList() in ASP.NET MVC, what is the best practice?

Categories ASP.NET, Q&A Tags .net, asp.net, asp.net-mvc, c#, html-helper Leave a comment

ASP.NET Custom Validator Client side & Server Side validation not firing

August 31, 2022 by Magenaut

This has not happened to me before, but for some reason both the client and server side validation events are not being triggered:

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

How to add text in PdfContentByte rectangle using itextsharp?

August 31, 2022 by Magenaut

I have created rectangle using PdfContentByte. Now I want to adda text inside this rectangle. How can I do this. If anybody have idea please share with me.My rectangle code is

Categories ASP.NET, Q&A Tags asp.net, c#, itextsharp Leave a comment
Older posts
Newer posts
← Previous Page1 … Page169 Page170 Page171 … Page451 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