Geeks With Blogs
BizTalk Blog by Chris Han System Design for Enterprise Agility,
Asp.Net 2.0
Data Formatting for DataTextFormatString field
I was trying format my dropdown list to should the decimal numbers as pecentange. But the MSDN article is not completed. It turned out that {0:P2} is what I'm looking for. Here is the full list regarding the string format: Data Formatting for DataTextFormatString Format String Description {0:Cn} Currency. Displays numeric values in currency format with a leading dollar sign; n indicates the number of decimal places. If n is omitted, the default currency precision is two decimal digits. {0:Dn} Decimal. ......

Posted On Sunday, September 7, 2008 3:41 PM

Timeout Asp.net - What could possibly go wrong?
I've been through almost all sorts of Timeout related issues with Asp.net web service development. I’d like put a check list here to remind myself and hopefully save some headache of yours. If use database, you may get ‘System.Data.SqlClient.SqlE... Timeout expired’: a: Check your connection string setting for ‘Connect Timeout’: I.e. connectionString="Data Source=SNYC14D11511;Initial Catalog=d_dbivt003;Persist Security Info=True;User ID= user;Password= Password;Connect Timeout=4200 b:Check ......

Posted On Wednesday, July 18, 2007 4:50 PM

Visual Studio 2005 error : Unable to start program xxx when trying to debug or View in Browser
I have to admit that I never read any manual or document for Visual Studio. Part of blame should go to MS engineers who design such a consistent UI that I can pick it up without any learning curve with past experience. But this also creates a problem when there is a new element introduced in the newer version without a proper warning on the consequence. That is what happened to me. If you right click an Aspx file in Solution Explorer, you will see an item called “Browse With” in the context menu. ......

Posted On Wednesday, June 13, 2007 10:01 AM

Google TiSP - A joke for who?
I have to admit that the first sight I laid on this link New! Get FREE breakthrough broadband with Google TiSP (BETA) under the big G's search box, I was so excited. Not only because it's FREE, but the word "breakthrough" which caught my breath. After 20 ms reading the link How TiSP Works, I can only regret for the end of the once-a-inovision-hero. I like the sense of hummer google presented here, but what I'd really like to see is a real respectful technology breakthrough rather than a cheap joke. ......

Posted On Sunday, April 1, 2007 1:11 PM

Dynamically Loaded Control can not maintain values at PostBack?
I was trying to create and page with Asp.NET 2.0 and Ajax 1.0. I was using a placeholder control to dynamically load a user control based on the user selection. The first error I encountered is : {"Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls ......

Posted On Tuesday, March 27, 2007 10:01 AM

Asp.net 2.0 StyleSheetTheme works in design time but doesn't work at runtime?
In Asp.Net 2.0, you can use StyleSheetTheme in stead of Theme setting to enable design time style in VS IDE. Just make sure you close and reopen the page every time you change the setting. But one day, I encounter this problem: My style setting show up nicely in design time, but disappear when I run the page. By reading this article: http://www.odetocode.com/ar... , I fund that my stylesheet didn't being injected in to the generated HTML at all. As the matter of fact, the whole <head> ......

Posted On Thursday, March 8, 2007 8:56 AM

AJAX Tutorials: Where is SurveyQuestions.xml?
While I'm walking through the new Asp.net AJAX extension tutorials, one of the example under topic Using the UpdatePanel Control with Data-Bound Controls really catch me. It shows how easy you can create an dynamic survey page with an content XML source. I remembered that back in 2002, how hard I was trying to create such implementation by using xslt and xmldocument class. At that time, java world has a server side solution called 'cocoon'. The basic idea is to translate XML to HTML using a xsl sheet. ......

Posted On Wednesday, March 7, 2007 9:25 AM

SqlDependency attribute for OutputCache directive is invalid
I was trying out the SQL cache dependency feature that Asp.net 2.0 provided. I got this error after I configure the application properly with this config section: <system.web><cachi... enabled="true"><datab... connectionStringName="p_dbi... name ="p_dbivt001ConnectionString" pollTime="1000"/></da... After a further reading, I realized that I haven't run ......

Posted On Thursday, January 11, 2007 8:42 AM

Sweet AppendDataBoundItems Property for Asp.NET 2.0 Drop Down Control
In a master-detail type of page, you will alway be asked to add a item called “New Item” at the top of a master drop down list so that the user select this “New Item” to set the detail pane to “Insert” mode. The traditional way is after you data bound the drop down list, you add a new ListItem to the drop down list. But not any more with Asp.NET 2.0 drop down list control! Scott Gu has this post explains it in details: http://weblogs.asp.net/scot... ......

Posted On Tuesday, April 25, 2006 9:15 AM

ASP.NET tab doest show up in IIS virtual directory property page after install asp.net 2.0 framework
I install the Asp.NET 2.0 framework on a WinXp pro box. When I bring up the property page of a virtual directory, for some reason, I can't see the ASP.NET tab where you can config the asp.net version to either 1.1 or 2.0 So I have to use the ASP.NET IIS Registration Tool (Aspnet_regiis.exe) to config my virtual directory to use asp.net 2.0 framework! The MSDN article is a pretty good help on this issue: http://msdn2.microsoft.com/... ......

Posted On Wednesday, March 29, 2006 7:50 AM

Copyright © Chris Han | Powered by: GeeksWithBlogs.net