Skip to content

Magenaut

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

asp.net

Writing MemoryStream to Response Object

September 3, 2022 by Magenaut

I am using the following code to stream pptx which is in a MemoryStream object but when I open it I get Repair message in PowerPoint, what is the correct way of writing MemoryStream to Response Object?

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

Remove HTML or ASPX Extension

September 3, 2022 by Magenaut

In a hosted IIS7 environment, I am looking for the simplest way to use extension-less file names. Simply I have the following pages:

Categories ASP.NET, Q&A Tags asp.net, html, iis-7, url-rewriting Leave a comment

Store/assign roles of authenticated users

September 3, 2022 by Magenaut

I am upgrading a site to use MVC and I am looking for the best way to set up Authentication.

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

Setting up connection string in ASP.NET to SQL SERVER

September 3, 2022 by Magenaut

I’m trying to set up a connecting string in my web.config file (Visual Studio 2008/ASP.NET 3.5) to a local server (SQL server 2008).

Categories ASP.NET, Q&A Tags asp.net, connection, connection-string, web-config Leave a comment

How do I decode a URL parameter using C#?

September 3, 2022 by Magenaut

How can I decode an encoded URL parameter using C#?

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

Alternatives to System.Drawing for use with ASP.NET?

September 3, 2022 by Magenaut

After several days of tracking down bizarre GDI+ errors, I’ve stumbled across this little gem on MSDN:

Categories ASP.NET, Q&A Tags asp.net, c#, gdi+, system.drawing, system.drawing.imaging Leave a comment

In ASP.Net, what is the difference between <%= and <%#

September 3, 2022 by Magenaut

In ASP.Net, what is the difference between <%= x %> and <%# x %>? Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment … Read more

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

What is the right way to populate a DropDownList from a database?

September 3, 2022 by Magenaut

I am populating a DropDownList from a SQL Server database as shown below. It works fine, but I’m not sure it’s a good way. Can someone shed some light on this method, and give some improvements?

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

How to set the maxAllowedContentLength to 500MB while running on IIS7?

September 3, 2022 by Magenaut

I changed the maxAllowedContentLength to

Categories ASP.NET, Q&A Tags .net-4.0, asp.net, file-upload, iis-7 Leave a comment

What are the (dis)advantages of using Cassini instead of IIS?

September 3, 2022 by Magenaut

I’ve found that on some occasions I can edit the source while debugging. Are there any other advantages of using the Visual Studio built-in webserver instead of a virtual directory in IIS?

Categories ASP.NET, Q&A Tags asp.net, cassini, iis, visual-studio Leave a comment
Older posts
Newer posts
← Previous Page1 … Page150 Page151 Page152 … Page944 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