Skip to content

Magenaut

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

c#

Does ConfigurationManager.AppSettings[Key] read from the web.config file each time?

August 30, 2022 by Magenaut

I’m wondering how the ConfigurationManager.AppSettings[Key] works.

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

SQL Server (2008) Pass ArrayList or String to SP for IN()

August 30, 2022 by Magenaut

I was wondering how I can pass either an ArrayList, List<int> or StringBuilder comma delimited list to a stored procedure such that I find a list of IDs using IN():

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

WCF REST Service Template 40(CS) Cross domain error

August 30, 2022 by Magenaut

Hi I have a WCF Rest service using ( WCF REST Service Template 40(CS)). I have managed to get it to return Json response. It is working fine when the project is run. But when I try to make a Ajaxcall to the service from the browser, I am getting Error:

Categories ASP.NET, Q&A Tags asp.net, c#, wcf-rest, web-config Leave a comment

Problems with IDENTITY_INSERT Set to OFF? :-/

August 30, 2022 by Magenaut

I’m trying to insert order details into my DB, and it keeps saying:

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

Task.WaitAll hanging with multiple awaitable tasks in ASP.NET

August 30, 2022 by Magenaut

Below is a simplified version of the code I’m having trouble with. When I run this in a console application, it works as expected. All queries are run in parallel and Task.WaitAll() returns when they are all complete.

Categories ASP.NET, Q&A Tags asp.net, async-await, c#, task-parallel-library Leave a comment

How to get rid of Naming rule violation messages in Visual Studio?

August 30, 2022 by Magenaut

I just installed Visual Studio 2017. When I open an existing website, I get all sorts of warning messages such as this one:

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

Slow Performance — ASP .NET ASPNET_WP.EXE and CSC.EXE Running After Clicking Redirect Link

August 30, 2022 by Magenaut

I click on a link from one page that does a redirect to another page (Response.Redirect(page.aspx)).

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

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

VS2013 publish Web deployment task failed The file is in use

August 30, 2022 by Magenaut

I am using VS2013 Premium to publish a site to Windows Server 2012.
All files publish ok except these:
SqlServerTypesx64msvcr100.dll

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

How to select top n rows from a datatable/dataview in ASP.NET

August 30, 2022 by Magenaut

How to the select top n rows from a datatable/dataview in ASP.NET? Currently I am using the following code, passing the table and number of rows to get the records. Is there a better way?

Categories ASP.NET, Q&A Tags ado.net, asp.net, c# Leave a comment
Older posts
Newer posts
← Previous Page1 … Page216 Page217 Page218 … 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