Skip to content

Magenaut

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

c#

Why showing error message while opening .xls file

August 26, 2022 by Magenaut

In my asp.net, C# application we are generating and downloading .xls file. But when I’m trying to open, it’s giving a message

Categories ASP.NET, Q&A Tags asp.net, c#, internet-explorer-5, xls, xlsx Leave a comment

How to enable MVC in a WebForms project?

August 26, 2022 by Magenaut

I have an existing webforms project. I’ve added MVC5 from Nuget, and added the following:

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

Fire and Forget (Asynch) ASP.NET Method Call

August 26, 2022 by Magenaut

We have a service to update customer information to server. One service call takes around few seconds, which is normal.

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

Create a new image on the file system from System.Drawing.Image?

August 26, 2022 by Magenaut

Ok, I’m sorry, this is probably a noob question but I’m kinda stuck.

Categories ASP.NET, Q&A Tags asp.net, c#, gdi+, image-resizing, thumbnails Leave a comment

JQuery Ajax Post to C#

August 26, 2022 by Magenaut

I’m trying to retrieve JSON Object on C# here is my JavasSciprt post but I’m unable to hande it on codebehind, thanks!

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

Throwing an HttpException always sends back HTTP 500 error?

August 26, 2022 by Magenaut

I’m trying to throw an HTTP 403 error code back at the client. I’ve read that HttpException is the cleanest way to accomplish this, but it’s not working for me. I throw the exception from within a page like this:

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

Global.asax file is missing on my Asp.Net Empty Web application project

August 26, 2022 by Magenaut

I have created a C#-> Asp.Net Empty Web Application (Framework 4.0). I want to add few line of code in Global.asax on Application_Error section. But unfortuantely global.asax file is missing. How can i add that file? My visual studio version is 2012

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

Precompile asp.net views with ms build

August 26, 2022 by Magenaut

When I deploy asp.net application through visual studio I know I can just check Precompile during publish and uncheck Allow precompiled site to be updateable.

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

Changing the default value of session’s variable timeout in asp.net mvc

August 26, 2022 by Magenaut

I have an Asp.net Mvc application with razor views engine , in which i used a variable Session['user'] : when an user log on the application Session['user'] = login and in the logout this variable takes as value Null.

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

Convert DataTable to IEnumerable in ASP.NET Core 2.0

August 26, 2022 by Magenaut

I need to generate an ‘IEnumerable from a DataTable that I receive as an input from another system. The following code worked in ASP.NET 4.6.1.

Categories ASP.NET, Q&A Tags asp.net, asp.net-core, c#, linq Leave a comment
Older posts
Newer posts
← Previous Page1 … Page315 Page316 Page317 … 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