Skip to content

Magenaut

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

c#

DisplayFormat ApplyFormatInEditMode

September 1, 2022 by Magenaut

I use MVC 3 in C#, I have a class with this Attribute

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

Encrypt Query String including keys

September 1, 2022 by Magenaut

I have an app that is using query string to pass some values around pages. I found few examples on how to encrypt values in query string, but the problem is that my KEYS tell more about query string then the values which are all integers converted to string.

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

converting list to json format – quick and easy way

September 1, 2022 by Magenaut

Let’s say I have an object MyObject that looks like this:

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

Compare two objects and find the differences

September 1, 2022 by Magenaut

what is the best way to compare two objects and find the differences? Customer a = new Customer(); Customer b = new Customer(); 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 … Read more

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

Could not load type ‘AjaxControlToolkit.Sanitizer.AntiXssSanitizerProvider’.

September 1, 2022 by Magenaut

I tried to use htmleditorextender but I am getting error. below are my settings

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

Response.AddHeader(“Content-Disposition”) not opening file in IE6

September 1, 2022 by Magenaut

I’m using Response.AddHeader(“Content-Disposition”, “attachment; filename=” + Server.HtmlEncode(FileName)); to pop a ‘open/save file’ dialog for the users, so that they can download an file on to their local machines.

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

Text on an Image button in c# asp.net 3.5

September 1, 2022 by Magenaut

I have a image button. I wanted to add a text “Search” on it. I am not able to add it because the “imagebutton” property in VS 2008 does not have text control in it. Can anyone tell me how to add text to a image button??

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

ASP.Net double-click problem

September 1, 2022 by Magenaut

having a slight problem with an ASP.net page of mine. If a user were to double click on a “submit” button it will write to the database twice (i.e. carry out the ‘onclick’ method on the imagebutton twice)

Categories ASP.NET, Q&A Tags asp.net, c#, double-click, javascript, onclick Leave a comment

Bind Dictionary with list in viewmodel to checkboxes

September 1, 2022 by Magenaut

How do you properly bind a Dictionary and it’s values per key to checkboxes?
I can display them in the HTTPGET but binding the selected values again to HTTPPOST doesn’t seem to work.

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

what is [] brackets in .net?

September 1, 2022 by Magenaut

i have seen [] such brackets in c# very very rarely but when i start to learn asp.net i have seen them many times but still i couldn’t understand what they does ? They are not part of code as using for arrays.For example [webmethods] which is just over the methods or there are some … Read more

Categories ASP.NET, Q&A Tags .net, asp.net, brackets, c# Leave a comment
Older posts
Newer posts
← Previous Page1 … Page136 Page137 Page138 … 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