Skip to content

Magenaut

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

c#

Pass a Dictionary parameter in web api

August 25, 2022 by Magenaut

I’m trying to pass a Dictionary<string,string> object as a parameter to my web api method but if I inspect the log file it always comes through with a count of 0:

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

Remove primary key in datatable

August 25, 2022 by Magenaut

is there a way to remove primary key from the datatable Or is there any way to remove the constraints of “PK” first and then remove the column itself?

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

Get the index of an element inside queue c#

August 25, 2022 by Magenaut

I have a queue of users(string of emails) a in c# and I want to send the user his location in this queue.

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

json newtonsoft : Deserialize Object containing a list of string

August 25, 2022 by Magenaut

I have the following issue with this json :

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

String.Format an integer to use a thousands separator with decimal value in danish culture

August 25, 2022 by Magenaut

I have a string totalPRice which holds a value like this 1147,5
I want two things.
1)round the value so that there is always two digits after ,
2)Implement thousands separator in this string, So that final out put will be some thing like this 1.147,50
I have tried some thing like this

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

GroupPrincipal method FindByIdentity throw strange exception

August 25, 2022 by Magenaut

I am trying to get all users by group name and dispalay it in sharepoint webpart. adGroupName something like = “CompanyGroup”.

Categories ASP.NET, Q&A Tags .net, active-directory, asp.net, c#, sharepoint-2010 Leave a comment

HttpRuntime CacheInternal NULL reference exception while reading user sessions (Reflection)

August 25, 2022 by Magenaut

After some updates on our windows servers(2008R2 ,2012) Asp.net application throwing error:

Categories ASP.NET, Q&A Tags asp.net, c#, iis-7, reflection, reflectionpermission Leave a comment

EF extension method: “This function can only be invoked from LINQ to Entities.”

August 25, 2022 by Magenaut

I have made an extension method to EF entities:

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

Separate number with comma for thousands asp.net

August 25, 2022 by Magenaut

How do you do separate numbers with commas for every thousand on asp.net gridview (with c# in the back)

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

Error: There is already an open DataReader associated with this Command which must be closed first

August 25, 2022 by Magenaut

I’m using a sql connection to access to different tables in my database. However the code returns me the below error.

Categories ASP.NET, Q&A Tags asp.net, c#, sql Leave a comment
Older posts
Newer posts
← Previous Page1 … Page375 Page376 Page377 … 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