765 1
How to create XML document using XDocument in C#?

Hello, I need to add some data in XML file by programmatically creating it using C# and XDocument, so how I will create it?

For example, Suppose if I need output like below in XML

...
Type
Question
C# ASP.NET XML Xdocument
754 1
Generic type array get and set in C# , how to make it work?

getting error While executing the code below in C#

...
Type
Question
C# generic-type-array array-get-set-value-in-C#
744 2
How to Add Spaces before Capital letter in a string using C#?

In my MVC project, I am getting dropdown text data as "NoEffect", "FadeOut" etc, now I would like to show user as "No Effect", "Fade out" etc, show how can I achieve it using C#?

Any method would work, using regex or without using regex.

...
Type
Question
C# string put space before capital char
738 1
how to convert datetime from one timezone to another in C#?

I am working on a C# project in which user can change datetime column time zone using its profile page. For example, when I log in into the system, I can change default time zone (PST) to Indian standard time(IST) after doing all the column of date time should show time-related to IST time zone.

Basically, we are saving all the datetime value in the database as PST time zone, now based on user-selected time zone I need to show datetime.

So I would like to convert my PST datetime (8/16/2016 12:56 PM) to IST or any other timezone selected by user dynamically using C#.

How can I convert datetime from PST to any time zone using C#?

...
Type
Question
C# datetime timezone conversion
735 0
C# Delegates explanation and it's use with Example
This article will help you explain what are the Delegates in C# with the example, its advantages and when we should use delegates.
Type
Article
C# c-sharp delegates explanation what are delegates in c# when to use delegates

730 1
how to convert UTC time to Local using C#?

Hello, I would like to know how can I convert UTC datetime into local (user's pc) datetime in asp.net MVC razor page using C#?

I thought .ToLocalTime() should work, but I am not getting correct result.

...
Type
Question
C# UTC to Local datetime
725 0
Serialization & Deserialization in C# With Console application example
In this article, I have explained the concept of Serialization & Deserialization Class object in C# with an working console application example.
Type
Article
C# serializable c# c# serialize object serialization in c# example
689 1
How to use Ajax Rating Control in listview?

I am using the AJAX Rating Control inside a ListView control, When I run the page it throws the error 'Specified cast is not valid'

Here Is the code 

...
Type
Question
c# asp-net ajax-rating-control listview
672 2
What is the Difference between String and string in C#?

Although I have intermediate knowledge of asp.net & C#, but I am still not clear with what's the difference between String (capital S) and string in C#?

When to use which one?

Example code:

...
Type
Question
C# .net difference of String & string string
670 1
How to remove server headers from IIS in ASP.NET MVC easily, need step by step guide?

How do I remove unnecessary HTTP Headers in IIS and ASP.NET application simply, please provide me step by step tutorial for improving security in this area?

I have already googled this and found few solutions but I need an easy tutorial, which can guide me to remove all unnecessary HTTP Headers from Response.

Any link or step by step guide will work.

...
Type
Question
ASP.NET C# remove unnecessary headers MVC

Page 9 of 12