Skip to content

Magenaut

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

c#

Directory vs DirectoryInfo

August 27, 2022 by Magenaut

Are they equivalent or alternatives to each other? Is any of them deprecated and if so, which one? Which one is recommended for use in an ASP.NET web application? My aim is to extract all files from a specific directory recursively.

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

Where can I find a good ASP.NET MVC sample?

August 27, 2022 by Magenaut

I have been using Castle MonoRail for the last two years, but in a new job I am going to be the one to bring in ASP.NET MVC with me. I understand the basics of views, actions and the like. I just need a good sample for someone with MVC experience. Any good links besides … Read more

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

Invalid attempt to call Read when reader is closed?

August 27, 2022 by Magenaut

I’m running a DbDataReader on a query to remove items from a dropdownlist if they are already attached to a specific submission, and I keep getting an error telling me the reader is closed. Can’t see why my reader is being seen as closed here. What am I missing?

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

How to add Button for downloading excel file in Acumatica

August 27, 2022 by Magenaut

I’m trying to add button to Users Maintenance and on button’s click download excel file, containing some data. I have created PXAction and it’s method as above:

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

Convert string to List in one line?

August 27, 2022 by Magenaut

I have a string:

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

IPAddress of a login system

August 27, 2022 by Magenaut

Using the bellow code .

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

Debug ASP.NET application running on remote IIS Server from VS2010

August 27, 2022 by Magenaut

Just wondered if anyone could point me in the right direction here?

Categories ASP.NET, Q&A Tags asp.net, c#, iis-7.5, remote-debugging, visual-studio-2010 Leave a comment

Generate C# class from SQL Server table without Store Procedure

August 27, 2022 by Magenaut

Make a select as json query:

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

How to Execute Page_Load() in Page’s Base Class?

August 27, 2022 by Magenaut

I have the following PerformanceFactsheet.aspx.cs page class

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

Web API 2 download file using async Task

August 27, 2022 by Magenaut

I need to write a method like below to return a text document (.txt, pdf, .doc, .docx etc)
While there are good examples of posting file in Web API 2.0 on the web , I couldn’t find a relevant one for just downloading one. (I know how to do it in HttpResponseMessage.)

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api2, c# Leave a comment
Older posts
Newer posts
← Previous Page1 … Page287 Page288 Page289 … 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