Skip to content

Magenaut

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

c#

System.IndexOutOfRangeException on SQLDataReader Value Using C#

August 24, 2022 by Magenaut

I have a SQLDataReader that returns three integers. However, there are occasions when two of the integers will return null values.

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

Setting ASP.NET Button attributes client side and read attribute value server side

August 24, 2022 by Magenaut

How can I retrieve a Button custom attribute after the attribute value has been changed using javascript?

Categories ASP.NET, Q&A Tags asp.net, c#, custom-attributes, javascript, postback Leave a comment

Convert an image to base64 and vice versa

August 24, 2022 by Magenaut

I want to convert an image to base64 and back to image again.
Here is the code which i tried so far and the error also. Any suggestions please?

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

VS2010 refuses to compile a namespace, says it doesn’t exist

August 24, 2022 by Magenaut

I transferred my project into another computer from Win XP to Win 7. After installation, I realized that something in my App_code folder, called like mydata.web.utils namespace, has a class called like WebConstants (which is public class and public functions).

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

Display word/pdf/excel etc. files in browser. (Asp.net , C#.net 2008)

August 24, 2022 by Magenaut

I have a requirement where in need to display the Pdf / Word doc(any version) or excel in the browser. Something similar to the GMAIL feature. How can I achieve this?
I am using Asp.net with code behind as C#. Application is in 2008

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

Stored procedure OUTPUT VARCHAR2 value truncated using 12c client

August 24, 2022 by Magenaut

I am using oracle 11g. My stored procedure is returning varchar2 but its value is being truncated by oracle client.
Below is my code :

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

Remove hours:seconds:milliseconds in DateTime object

August 24, 2022 by Magenaut

I’m trying to create a string from the DateTime object which yields the format mm:dd:yyyy.

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

What is the Triplet class used for? Is it related to Tuples?

August 24, 2022 by Magenaut

So I just learnt about the Triplet class. I have no experience with ASP.NET, only the core .NET Framework.

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

How do you convert a dictionary to a ConcurrentDictionary?

August 24, 2022 by Magenaut

I have seen how to convert a ConcurrentDictionary to a Dictionary, but I have a dictionary and would like to convert to a ConcurrentDictionary. How do I do that?… better yet, can i set the link statement to be a ConcurrentDictionary?

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

Repeater and add columns to header and itemtemplate on page load

August 24, 2022 by Magenaut

I haven’t used repeaters for much more than showing data from a datatable.

Categories ASP.NET, Q&A Tags asp.net, c#, repeater Leave a comment
Older posts
Newer posts
← Previous Page1 … Page403 Page404 Page405 … 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