.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

CLR Inside Out: Formatting and Parsing Time Intervals in the .NET Framework 4

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

Learn about enhanced TimeSpan formatting and parsing features coming in the .NET Framework 4, and some helpful tips for working with TimeSpan values.

Ron Petrusha

MSDN Magazine February 2010

View Complete Post

More Related Resource Links

CLR Inside Out: Migrating an APTCA Assembly to the .NET Framework 4


The CLR security model in the Microsoft .NET Framework 4 has undergone some substantial changes, including the adoption of "Level2" transparency, similar to the Silverlight security model. Mike Rousos provides an in-depth explanation of how that will likely impact authors of AllowPartiallyTrustedCallers (APTCA) libraries.

Mike Rousos

MSDN Magazine March 2010

CLR Inside Out: Exploring the .NET Framework 4 Security Model


The .NET Framework 4 introduces many updates to the .NET security model that make it much easier to host, secure and provide services to partially trusted code. This article dives into the many features and benefits of the .NET security model.

Andrew Dai

MSDN Magazine November 2009

CLR Inside Out: What's New in the .NET Framework 4 Base Class Library


Just about everyone who uses Microsoft .NET uses the Base Class Libraries (BCL).When we make the BCL better, almost every managed developer benefits. This column will focus on the new additions to the BCL in .NET 4 beta 1.

Justin Van Patten

MSDN Magazine September 2009

CLR Inside Out: CLR Optimizations In .NET Framework 3.5 SP1


See the changes the CLR team made to the CLR .for NET Framework 3.5 SP1 and the improvements you'll get running your existing CLR 2.0-based apps against this service pack.

Surupa Biswas

MSDN Magazine April 2009

CLR Inside Out: Ensuring .NET Framework 2.0 Compatibility


If we learned only one thing about compatibility in the past few years, it is that compatibility is much more than avoiding breaking changes. On the Microsoft®. NET Framework and Visual Studio® teams, we do our part to ensure that the products we build are stable platforms that developers can truly rely on.

Jesse Kaplan

MSDN Magazine March 2006

CLR Inside Out: Improving Application Startup Time


Visual Studio is a wonderful development environment, whose IntelliSense®, integrated debugging, online help, and code snippets help boost your performance as a developer. But just because you're writing code fast doesn't mean you're writing fast code.

Claudio Caldato

MSDN Magazine February 2006

UI on the Fly: Use the .NET Framework to Generate and Execute Custom Controls at Run Time


Creating UI controls on the fly can be accomplished via run-time code generation. And there are lots of reasons to do so. Generating these controls once and then reusing them as needed is more efficient than generating the controls each time. Read on.

Morgan Skinner

MSDN Magazine December 2005

Why does .NET Framework 4 client profile slow down boot time network creation?

I've been running a Windows XP sp3 KVM virtual machine for a long time now, and some recent update made the initial network startup go from a few seconds at boot time to around 90 seconds. Using Add/Remove program to uninstall recent updates points the finger at .NET Framework 4 client profile. With it installed, if I right click on network and ask for properties right after booting, there is a 90 second delay before the network dialog with the list of network interfaces finally appears. In addition, the network drive I have automounted at login is not accessible for the same 90 seconds. As an experiment, I tried going into the device manager and deleting the network interface, and if I reboot after that it takes 90 seconds for the new hardware wizard to appear. All these 90 second delays vanish if I remove this .NET update. The network comes up as soon as the system boots.

Net Framework 4.0 Slowed XPSP3 Boot Time To A Crawl!

Ok Guys  Net Framework 4.0 showed up in my updates. So I installed it and rebooted. My machine took almost 4 minutes to reboot. I am running XP Media Center SP3, 4gb DDR2 Ram, Intel Pentium D Processor @ 280 ghz. Everything was workinf perfectly ans fast until this time it only took 45 to 60 seconds or so to boot. Wallpaper shows up then forever before anything else besides volume control.  Went back and uninstalled net Framework 4.0 and back up to speed with no problems and boots like normal. No one on any of the forums I have visited have had an honest answer. I have seen numerous posts about this problem with boot times and most have gotten a run around from microsoft techies. Saying it did not install right and to try from here or there to reinstall it. All to no avail. It is so hard to get microsoft to admit they have a problem on a new introduction of a product. Can anyone tell me the truth here and are you working on a fix or patch? Thanks Dale 

Date Time Formatting to a specific dateformat

Hello All,I have been struggling with this for a long time. I have a form in which there is a textbox using an ajax calender extender. Now, the problem is that, I want to take the Date value which is string format and format it to a specific date format before inserting it into the database. The following is the core problem:Dim MDate as string=txtMeetingDate.Textdim d as new Datetime' I want to convert the d to a datetime using the Mdate/// The problem is that I don't know what's the date format in the TextBox because users can use any time format they want, it is based on their windows settings!!!So, I am struggling to change my String (MDate) into a DateTime in the same format the user have and then convert it into my format:"dd/MM/yyyy" and after I have the date in the correct format, I want to change it back to string and save it in the database.I am doing this so that I have the same dateformat saved in my database.Any Ideas? ThanksAMB

How to create templete controls inside a gridview at run time


i am creating a grid view at run time.now i want to create controls inside the gridview at run time itself,and how to Bind/Eval it.

plz help me

Date and Time String Formatting With C#.NET

System.DateTime newDate = System.DateTime.Now;
Console.WriteLine("date: {0}", newDate);// Current Date Time will be display

Dates and Times in C# .NET

Installation of dot Net Framework 4 fails every time.on 64 bit Vista. have tried everything!


Running Vista basic 64 bit, service pack 2.. have used the verification tool to verify all the dot net frameworks from 1.1 to 3.5.. passed

used the clean up utility to remove  framework 4.. it says it was successful but appears to still be there..i.e. i can 'remove' framework 4 five times in a row  (!)

It appears that the record of 'failed' windows update attempts for .net4 go back all the way to febuary.. so it's not anything recent.. 

The error is code 643, which would (IIRC) imply that i have not got all the service packs installed, but I do, and unlike the way it used to be, you can't re-install a service pack without uninstalling it first..

Since I am concerned that the bug that won't allow installation of .net 4 would manifest some othewr unexpected place if i tried reinstalling a sevice pack, i don't want to go the uninsstall/reinstall route unless i *really* have to...

Frankly i'm at a loss..


Multiple database support with Entity Framework

One of the features introduced in Entity Framework is being database independent. Which mean each database provider can support Entity Framework by implementing its provider.

This feature allows you build applications independent from the underplaying database provider. In this post I'm going to show how to build an application that support multiple databases using same conceptual model made by Entity Framework.

Round off time to the nearest minute

How would you round this up to the nearest minute? There isn't a built in function to do this so you have to use a little bit of maths to get there. There are 60 seconds in a minute. We already have 38 seconds on the clock. So we need to add on 60 - 38 = 22 more seconds.

Accessing the different controls inside a GridView control

how we can access a particular control which resides inside a GridView control. In this article I will show you how you can access different controls inside a GridView control. We will see how we can access a TextBox control, a DropDownList control and a ListBox control. If you are working with ASP.NET 1.X then you might want to check out my article Accessing Different Controls Inside a DataGrid.

Creating a Generic Entity Framework 4.0 Repository

With .NET 4.0 right around the corner, I thought it would be cool to download Visual Studio 2010 beta 2 and start playing around with the next release of Entity Framework.

The initial release of Entity Framework came with a great deal of criticism. To make matters worse, there was a large uproar when it was rumored that Microsoft would be abandoning LINQ to SQL, in favor of Entity Framework. This was because, at the time, many developers felt Entity Framework was an inferior technology to LINQ to SQL. To set things right, Microsoft proactively moved forward with improving Entity Framework, in time for the 4.0 release of the .NET Framework. This is good news because my initial impressions, so far, have been nothing but positive.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend