blog
I remember last year I designed a asp.net application where I had couple of Webforms to collect data and I was storing in the database.Ie. Webform facilitates insert, Update and Delete of Person and allow to set reminders for the person, which is later on send to him via Email, SMS and other ways... This year the client wanted one of their legacy application to pickup the reminders and display on is own calendar.... but the catch is the the legacy app will use its own database structure and its own ......
Source URL: http://www.limitthesky.com/... Can you find the “C” ??? (Good exercise for the eyes!) Be ready to go blind. OOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOO... OOOOOOOOOOOOOOOOOOOOOOOOOOO... OOOOOOOOOOOOOOOOOOOOOOOOOOO... OOOOOOOOOOOOOOOOOOOOOOOOOOO... OOOOOOOOOOOOOOOOOOOOOOOOOOO... OOOOOOOOOOOOOOOOOOOOOOOOOOO... OOOOOOOOOCOOOOOOOOOOOOOOOOO... ......
Source MSDN Blogs: http://blogs.msdn.com/vsdoc... Links to Microsoft Visual Studio Documentation and Related Resources Note: These links are subject to change at any time. Official Documentation for Visual Studio Visual Studio 2005 documentation starting page: http://msdn2.microsoft.com/... Visual Studio 2005 SDK documentation starting page: http://msdn2.microsoft.com/... ......
Some tips to keep in mind when using reflection....Source MSDN: http://msdn.microsoft.com/m... Reflection Performance There are various reasons why an application can't define a static extensibility contract, but it's usually a result of the flexibility the architect built in. Here are some ways to reduce some of the cost of reflection and of the MemberInfo cache. Avoid using Type.InvokeMember to call late-bound methods Type.InvokeMember ......
Here is the list of Fast and Light Functions and Costly Functions. So when you write your next piece of codes be more careful to choose the right methods. Fast and Light FunctionstypeofObject.GetTy... == Object.GetTypeType equivalence APIs (including typehandle operator overloads)get_Moduleget_Mem... of the IsXX predicate APIsNew token/handle resolution APIs in the .NET Framework 2.0 Costly FunctionsGetXX APIs (MethodInfo, PropertyInfo, FieldInfo, and so on)GetCustomAttributesType.... ......
Making your code CLS compliant is important, as this confirms that the classes should only expose features that are common to the CLS. So anyone using your classes and writing in a different programming language do not face any issues. To make sure, CLS compliancy is checked by the C# compiler we have to explicitly define the CLSCompliantAttribute.Marking inside AssemblyInfo.cs class======================... CLSCompliant(true)] Marking an entire assembly as CLS compliant ===========================... ......
Like I took this sudoku flake here in this blog: Choose your flake at www.pageflakes.com and go to edit and press Export button and this will give you a html similiar to this:<script type="text/javascript" src="http://www.pageflakes.... allowtransparency="true" id="pffid29970474" scrolling="no" frameborder="0" hidefocus="true" src="http://www.pageflakes.... style="border:none 0px #cccccc;margin:0px;width:32... ......
Its not as hard as it sounds anyone can do this by throwing some javascript. Most of the speed test sites that are available, downloads a predefined file (a jpg or something with known size) and then uses javascript to find the time elapsed and then calculate the result.In one of the popular site I saw something like this: <html><script language="JavaScript">fu... RightNow(){time = new Date();return time.getTime();} function CalculateSpeed(timeStart){t... = RightNow();timeElapsed ......
Asp.Net 2.0 comes with this cool feature, just place a file named app_offline.htm in the root folder of your web application, this will shut-down the application and also unload the application domain from the server, not only this it will stop processing any respond to all requests for dynamic pages and send back the content of app_offline.htm file.So in the app_offline.htm you can put "Under Construction", "Will come back in 5 min" etc. When you remove app_offline.htm file again the next request ......
Some zero cost resources for asp.net develpers.source: http://www.code-magazine.co... OpenSourceProjects:SmartCod... A free opensources code generation tool that uses pure asp.net to generate your text base output.DotNetNuke (www.dotnetnuke.com): A content management portal.nGallery (www.ngallery.org): Is an image gallery project written in C#. .Text (dottextwiki.scottwater.com): blogging engine written in C#Community ......
Dan Walhin made this good video tutorial to show us steps needed to debug client side script : Video : Debugging ASP.net Ajax Application with Visual Studio 2005 Basically, The following steps need to be performed Step1: Need to tweak IE to enable client script debugging :Go to Tools > Internet Options > Advanced and uncheck both "Disable script debugging (Internet Explorer)" and "Disable script debugging (Other)" .Step2:Then in your client code where you want the breakpoint write debug.fail("Something") ......
All the following Videos are available in this bloghttp://blogs.interfacet... Video: Viewing Albums with WPF/E and ASP.NET AJAX Video: Edit XML Data with the XmlDocument Class Video: Using XPath with the XmlDocument Class Video: Parsing XML with the XmlDocument Class Video: Debugging ASP.NET AJAX Applications with VS.NET 2005 Video: Calling Web Services with ASP.NET AJAX and JavaScript Video: Using the ASP.NET AJAX UpdatePanel, Triggers and PageRequestManager Video: Minimize Code ......
This GREAT! code formatter lets you format your code blocks. It's simple, you have to copy/paste into a text box, select the technology c#, VB, HTML/ASPX, XML also you can turn on/off line numbers, and alt line back colors.
The Service is available here.
http://www.manoli.net/csharpformat/
the source code is also available in the site.
Just Uploaded SmartCodeGenerator CTP 2.4.0 at CodePlexSmartCodeGenerator CTP 2.4, 4 Jan 2007 contains support for .Net2.0 and now you get out of the box DBSchemaProvider for MSSQL2000, MSSQL2005, Oracle and MySqlAlso written and quick example using the DBSchemaProviders....All this is downloadable from here:http://www.codeplex.co... ll appreciate if you post your thoughts, suggestion, advise for this project ......
Below is the list of queries that I am upto with my MSSql2000DBSchemaProvider for SmartCodeGenerator. I thought this might be useful and quick reference for others too.GetTables string cmdText = string.Format(@"Select TABLE_NAME, TABLE_SCHEMA OWNER, REFDATE CREATE_TIME FROM INFORMATION_SCHEMA.TABLES , sysobjectswhere Table_Name = sysobjects.[name] and TABLE_CATALOG = '{0}' AND TABLE_TYPE = 'BASE TABLE' ORDER BY 1", database.Name);GetTableColu... commandText = string.Format(@"Select COLUMN_NAME, ......
Happy New Year Everyone. I just found this morning I have been awarded MVP ( Microsoft’s Most Valuable Professional ) Award for Year 2007 for my contribution to the Visual c# Community. My MVP Profile: https://mvp.support.microso... might be also interested to see the following links:My Blog: http://www.geekswithblogs.n... My Current Open Source Project at CodePlex : SmartCodeGenerator My Articles at CodeProject: 1. Ready-to-use Mass Emailing ......
The SourceCode of Implemented DBSchemaProviders for Oracle and MYSql was mising in the zip file, sorry for the inconvenience.
The correct files are uploaded and is downloadable.
http://www.codeplex.com/smartcodegenerator/Release/ProjectReleases.aspx
WinForms UI Thread Invokes: An In-Depth Review of Invoke/BeginInvoke/InvokeRe... very good readhttp://weblogs.asp.net/... Marshalling the execution of your code onto the UI thread in the Windows Forms environment is critical to prevent cross-thread usage of UI code. Most people don't understand how or when they'll need to use the marshalling behavior or under what circumstances it is required and when it is not. Other users don't understand what happens when you use ......