<feed xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
    <title>VND - Vu Nguyen Learn On The Go</title>
    <link rel="self" type="application/atom+xml" href="http://blogs.hzsolutions.com/vnd/Atom.aspx" />
    <subtitle type="html">Learn more, study less and learn on the go</subtitle>
    <id>http://blogs.hzsolutions.com/vnd/Default.aspx</id>
    <author>
        <name>Vu Nguyen</name>
        <uri>http://blogs.hzsolutions.com/vnd/Default.aspx</uri>
    </author>
    <generator uri="http://subtextproject.com" version="Subtext Version 2.0.0.43">Subtext</generator>
    <updated>2008-08-19T15:33:46Z</updated>
    <entry>
        <title>Someone is WRONG on the Internet</title>
        <link rel="alternate" type="text/html" href="http://blogs.hzsolutions.com/vnd/archive/2008/08/19/someone-is-wrong-on-the-internet.aspx" />
        <id>http://blogs.hzsolutions.com/vnd/archive/2008/08/19/someone-is-wrong-on-the-internet.aspx</id>
        <published>2008-08-19T15:33:46Z</published>
        <updated>2008-08-19T15:33:46Z</updated>
        <content type="html">&lt;p&gt;&lt;img src="http://imgs.xkcd.com/comics/duty_calls.png" /&gt;&lt;/p&gt;&lt;img src="http://blogs.hzsolutions.com/vnd/aggbug/126.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blogs.hzsolutions.com/vnd/comments/126.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blogs.hzsolutions.com/vnd/comments/commentRss/126.aspx</wfw:commentRss>
        <trackback:ping>http://blogs.hzsolutions.com/vnd/services/trackbacks/126.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Windows: Logon failure: the user has not been granted the requested logon type at this computer</title>
        <link rel="alternate" type="text/html" href="http://blogs.hzsolutions.com/vnd/archive/2008/08/16/windows-logon-failure-the-user-has-not-been-granted-the.aspx" />
        <id>http://blogs.hzsolutions.com/vnd/archive/2008/08/16/windows-logon-failure-the-user-has-not-been-granted-the.aspx</id>
        <published>2008-08-16T00:52:44Z</published>
        <updated>2008-08-16T00:52:44Z</updated>
        <content type="html">&lt;p&gt;When you share a Folder from a Windows XP machine, you might not able to access to it even you see that computer in it's work group, any time you attempt to access to, you receive a error message like&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="file://\\[SHARE"&gt;\\[SHARE&lt;/a&gt;] is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have  access permissions.  &lt;/li&gt;    &lt;li&gt;Logon failure: the user has not been granted the requested logon type at this computer&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;When ran into it, you can consider one of two solution I found from others over Internet. It  might help a lot.&lt;/p&gt;  &lt;h3&gt;Audit Local Security Settings&lt;/h3&gt;  &lt;ol&gt;   &lt;li&gt;On Start Menu&amp;gt;Control Panel&amp;gt;Users, enable Guest user.&lt;/li&gt;    &lt;li&gt;Open Local Security Settings by select Start Menu&amp;gt;Control Panel&amp;gt;Administrative Tools&amp;gt;Local Security Settings&lt;/li&gt;    &lt;li&gt;Navigate to Local Policies&amp;gt;User Rights Assignment&lt;/li&gt;    &lt;li&gt;Right-click on &lt;em&gt;&lt;u&gt;Access this computer from the network&lt;/u&gt;&lt;/em&gt;&amp;gt;Properties&amp;gt;Add Users or Groups, add everyone or any users you want to be able to access the computer from the network &amp;gt; &lt;strong&gt;Add Guest user to this if not exists&lt;/strong&gt;&lt;/li&gt;    &lt;li&gt;Right-click on &lt;em&gt;&lt;u&gt;Deny access to this computer from the network&lt;/u&gt;&lt;/em&gt;&amp;gt;Properties, remove everyone or any users you do NOT want denied to be able to access the computer from the network &amp;gt; &lt;strong&gt;Remove Guest user from this if exists&lt;/strong&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;h3&gt;Using Windows Server 2003 Resource Kit Tools (Steve Winograd)&lt;/h3&gt;  &lt;p&gt; &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Download and install the Windows 2003 Server Resource Kit Tools     &lt;br /&gt;from &lt;a href="http://go.microsoft.com/fwlink/?LinkId=4544"&gt;http://go.microsoft.com/fwlink/?LinkId=4544&lt;/a&gt; .&lt;/li&gt;    &lt;li&gt;Click Start | All Programs | Windows Resource Kit Tools | Command Shell.&lt;/li&gt;    &lt;li&gt;Type these lines at the command prompt. The second and third commands are case-sensitive, so type them exactly as shown. Note the "+r" in the second one and the "-r" in the third one:&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;&lt;strong&gt;net user guest /active:yes&lt;/strong&gt;&lt;/li&gt;      &lt;li&gt;ntrights +r SeNetworkLogonRight -u Guest&lt;/li&gt;      &lt;li&gt;ntrights -r SeDenyNetworkLogonRight -u Guest&lt;/li&gt;   &lt;/ul&gt; &lt;/ol&gt;  &lt;p&gt; &lt;/p&gt;  &lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:d25675e1-3d0a-4518-9db4-0c21d64889da" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/Windows%20XP" rel="tag"&gt;Windows XP&lt;/a&gt;,&lt;a href="http://technorati.com/tags/File%20Sharing" rel="tag"&gt;File Sharing&lt;/a&gt;&lt;/div&gt;&lt;img src="http://blogs.hzsolutions.com/vnd/aggbug/125.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blogs.hzsolutions.com/vnd/comments/125.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blogs.hzsolutions.com/vnd/comments/commentRss/125.aspx</wfw:commentRss>
        <trackback:ping>http://blogs.hzsolutions.com/vnd/services/trackbacks/125.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Windows: Remote Desktop Shutdown/Restart/Hibernate</title>
        <link rel="alternate" type="text/html" href="http://blogs.hzsolutions.com/vnd/archive/2008/08/16/windows-remote-desktop-shutdownrestart.aspx" />
        <id>http://blogs.hzsolutions.com/vnd/archive/2008/08/16/windows-remote-desktop-shutdownrestart.aspx</id>
        <published>2008-08-16T00:18:10Z</published>
        <updated>2008-08-16T00:22:17Z</updated>
        <content type="html">&lt;p&gt;You'll not see "Shutdown" in Start Menu anymore when you are connected to a workstation via Remote Desktop, the "Shutdown" option changes to "Disconnect". If you want to turn off the computer, hibernate it, or put it on stand-by, there are really more than one solution to get thing done&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Open Task Manager, from the main Menu and select your shutdown option under "Shutdown" menu.&lt;/li&gt;    &lt;li&gt;On the desktop and type Alt+F4. This will call up the shutdown dialog.&lt;/li&gt;    &lt;li&gt;And the last way I know is using shutdown utilities from Star-&amp;gt;Run command, here are some samples&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;"&lt;strong&gt;shutdown&lt;/strong&gt;" to shutdown&lt;/li&gt;      &lt;li&gt;"&lt;strong&gt;shutdown -r&lt;/strong&gt;" to reboot &lt;/li&gt;      &lt;li&gt;"&lt;strong&gt;shutdown -i&lt;/strong&gt;" to get a GUI &lt;/li&gt;      &lt;li&gt;"&lt;strong&gt;shutdown -l&lt;/strong&gt;" to logoff&lt;/li&gt;   &lt;/ul&gt; &lt;/ol&gt;  &lt;p&gt;Off course that all need administrative privileges on the remote computer, you might supply your administrator account by %windir%\system32\runas.exe /user:AdminAcctNameHere "%windir%\system32\shutdown.exe -s "&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:b460f3bd-b11d-4525-9f8f-6d057dbc9374" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/Windows%20XP" rel="tag"&gt;Windows XP&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Remote%20Desktop" rel="tag"&gt;Remote Desktop&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Shutdown" rel="tag"&gt;Shutdown&lt;/a&gt;&lt;/div&gt;&lt;img src="http://blogs.hzsolutions.com/vnd/aggbug/124.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blogs.hzsolutions.com/vnd/comments/124.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blogs.hzsolutions.com/vnd/comments/commentRss/124.aspx</wfw:commentRss>
        <trackback:ping>http://blogs.hzsolutions.com/vnd/services/trackbacks/124.aspx</trackback:ping>
    </entry>
    <entry>
        <title>ASP.NET: Can't not logged in successful on a few computer</title>
        <link rel="alternate" type="text/html" href="http://blogs.hzsolutions.com/vnd/archive/2008/07/30/asp.net-cant-not-logged-in-successful-on-a-few-computer.aspx" />
        <id>http://blogs.hzsolutions.com/vnd/archive/2008/07/30/asp.net-cant-not-logged-in-successful-on-a-few-computer.aspx</id>
        <published>2008-07-30T12:16:29Z</published>
        <updated>2008-07-30T12:16:29Z</updated>
        <content type="html">&lt;p&gt;One of our ASP.NET web application goes to production for months. Last week, we received reports on a few computers , users can't log-in with their correct credentials. We asked them to have administrator control on a computer which problem happen. After make sure that their Browser security, Anti-spyware, Anti-Virus and anything might cause the problem. We have decided install a HTTP traffic monitor tool like &lt;a href="http://www.ieinspector.com/dominspector/index.html" target="_blank"&gt;IE Web Developer V2&lt;/a&gt; to see what happening on this computer with our website&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;The browser requests the specified &lt;u&gt;&lt;em&gt;login.aspx&lt;/em&gt;&lt;/u&gt; page &lt;/li&gt;    &lt;li&gt;The server responds with the login page &lt;/li&gt;    &lt;li&gt;The user fills in the login page and submits the form, so the browser POST the form back to the login page &lt;/li&gt;    &lt;li&gt;If the credentials are valid, the server responds with another "302 Page Moved" status, a Location header pointing to a &lt;u&gt;&lt;em&gt;protected.aspx&lt;/em&gt;&lt;/u&gt;, and a Set-Cookie header providing the encrypted Forms Authentication Ticket. Everything seem as it happen on working computer. &lt;/li&gt;    &lt;li&gt;Get redirected to &lt;u&gt;&lt;em&gt;login.aspx&lt;/em&gt;&lt;/u&gt; page again &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Nothing potential caused the problems and we did frustrated after 5 days without able to location is that wrong in client side or server side after&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Replace authentication module by new one &lt;/li&gt;    &lt;li&gt;Setup brand new application to a sandbox &lt;/li&gt;    &lt;li&gt;Review Web server configurations &lt;/li&gt;    &lt;li&gt;And anything we can think to.... &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Really headache, huh ?&lt;/p&gt;  &lt;p&gt;God bless us, when we almost ran out of time and received more bad report from our users, we found why. I'm glad to share you our report on this problems, due to rights have been removed&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;- When user provide correct username/password, Concorde will send them a authentication cookie with Issued date and Expired Date, these date are in &lt;b&gt;&lt;u&gt;GMT time zone&lt;/u&gt;&lt;/b&gt;. &lt;/p&gt;  &lt;p&gt;- In our application, the authentication cookies will be expired in next 30’, as described in timeout attribute of &amp;lt;Forms…&amp;gt; tag of Web.config.&lt;/p&gt;  &lt;p&gt;- This cookies is very important in order to authenticate visitor in HTTP stateless environment&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Problems&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;- User can’t login occasionally in few computers, reported seem to be Internet Explorer 6 problems, FireFox and IE 7 are seem to be fine.&lt;/p&gt;  &lt;p&gt;- We have re-write code to replace authentication by another alternative methods, but not work.&lt;/p&gt;  &lt;p&gt;- Tracing Raw HTTP with some HTTP traffic monitoring tools show that&lt;/p&gt;  &lt;p&gt;o Login code work well&lt;/p&gt;  &lt;p&gt;o Authentication cookie issued but Internet Explorer seem rejected it without a reason (surely Its not blocked by security policy), cookies appeared and lost ==&amp;gt; &lt;b&gt;YES, this is problem&lt;/b&gt;.&lt;/p&gt;  &lt;p&gt;- We have check to make sure nothing straight  happen to&lt;/p&gt;  &lt;p&gt;o Browser, Browser’s security and privacy setting&lt;/p&gt;  &lt;p&gt;o Client’s antivirus, firewall, anti-spyware,…&lt;/p&gt;  &lt;p&gt;o Evaluating setting of websites, domains, sub-domains, and whole IIS setting, still see nothing.&lt;/p&gt;  &lt;p&gt;o Online community doesn’t help at all.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Root cause&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;- Hopelessly, but how about cookie’s expired time ? &lt;/p&gt;  &lt;p&gt;- Follow that idea and found there are something wrong to Cookie expired date, We didn’t really that because the value are in GMT, when client machine are in GMT-7. Convert current time in Server Machine, Client Machine to GMT, It’s clearly that &lt;u&gt;Expired Date of the cookie are in past, and of course that IE will rejected it because it was expired&lt;/u&gt;. &lt;/p&gt;  &lt;p&gt;- That mean there are something wrong with clocks on Server or Client machine here, but if this bug is occasionally happen, then this client’s clock must be the one wrong, I check out and see that this machine doesn’t auto-syn with Internet time server, that’s is.&lt;/p&gt;  &lt;p&gt;- Also noticed that might be this is Daylight-saving problem and found a useful paper at &lt;a href="http://support.microsoft.com/kb/934413"&gt;http://support.microsoft.com/kb/934413&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Solution&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;- Change timeout value of authentication cookie from 30 minutes to 120 minutes by change timeout="120" &amp;lt;forms name="XYZAuthentication" protection="All" path="/" loginUrl="~/Login.aspx" slidingExpiration="true" timeout="120" cookieless="UseCookies"/&amp;gt; in Web.config.&lt;/p&gt;  &lt;p&gt;- Noticed that will not sure when clock on client machine faster than server machine above 2 hours (120 minutes), then ask end-users to&lt;/p&gt;  &lt;p&gt;o Automatically synchronize with an Internet time server as attached screenshot&lt;/p&gt;  &lt;p&gt;o Follow Microsoft’s Daylight Saving Time Help at &lt;a href="http://support.microsoft.com/dst2007"&gt;http://support.microsoft.com/dst2007&lt;/a&gt;&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:18522ee2-2dc2-4391-be1e-7b2e49017279" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/ASP.NET" rel="tag"&gt;ASP.NET&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Membership" rel="tag"&gt;Membership&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Login%20problem" rel="tag"&gt;Login problem&lt;/a&gt;&lt;/div&gt;&lt;img src="http://blogs.hzsolutions.com/vnd/aggbug/123.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blogs.hzsolutions.com/vnd/comments/123.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blogs.hzsolutions.com/vnd/comments/commentRss/123.aspx</wfw:commentRss>
        <trackback:ping>http://blogs.hzsolutions.com/vnd/services/trackbacks/123.aspx</trackback:ping>
    </entry>
    <entry>
        <title>.NET Framework 3.5 Training Kit</title>
        <link rel="alternate" type="text/html" href="http://blogs.hzsolutions.com/vnd/archive/2008/07/30/.net-framework-3.5-training-kit.aspx" />
        <id>http://blogs.hzsolutions.com/vnd/archive/2008/07/30/.net-framework-3.5-training-kit.aspx</id>
        <published>2008-07-30T02:51:44Z</published>
        <updated>2008-07-30T02:51:44Z</updated>
        <content type="html">&lt;p&gt;- The Visual Studio 2008 and .NET Framework 3.5 Training Kit includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize the Visual Studio 2008 features and a variety of framework technologies including: LINQ, C# 3.0, Visual Basic 9, WCF, WF, WPF, ASP.NET AJAX, VSTO, CardSpace, SilverLight, Mobile and Application Lifecycle Management.&lt;/p&gt;  &lt;p&gt;- The .NET Framework 3.5 Enhancements Training Kit includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize the .NET 3.5 Enhancement features including: ASP.NET MVC, ASP.NET Dynamic Data, ASP.NET AJAX History, ASP.NET Silverlight controls, ADO.NET Data Services and ADO.NET Entity Framework.&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;&lt;a title="Visual Studio 2008 and .NET Framework 3.5 Training Kit" href="http://www.microsoft.com/downloads/details.aspx?familyid=8BDAA836-0BBA-4393-94DB-6C3C4A0C98A1&amp;amp;displaylang=en" target="_blank"&gt;Visual Studio 2008 and .NET Framework 3.5 Training Kit&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a title=".NET 3.5 Enhancements Training Kit" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=355c80e9-fde0-4812-98b5-8a03f5874e96&amp;amp;displaylang=en" target="_blank"&gt;.NET 3.5 Enhancements Training Kit&lt;/a&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt; &lt;/p&gt;  &lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:60892abc-c57e-4150-88c4-b06688f30e3e" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/Visual%20Studio" rel="tag"&gt;Visual Studio&lt;/a&gt;,&lt;a href="http://technorati.com/tags/.NET%203.5" rel="tag"&gt;.NET 3.5&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Trainning%20Kit" rel="tag"&gt;Trainning Kit&lt;/a&gt;&lt;/div&gt;&lt;img src="http://blogs.hzsolutions.com/vnd/aggbug/120.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blogs.hzsolutions.com/vnd/comments/120.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blogs.hzsolutions.com/vnd/comments/commentRss/120.aspx</wfw:commentRss>
        <trackback:ping>http://blogs.hzsolutions.com/vnd/services/trackbacks/120.aspx</trackback:ping>
    </entry>
    <entry>
        <title>ASP.NET: Read Authentication Form Timeout value</title>
        <link rel="alternate" type="text/html" href="http://blogs.hzsolutions.com/vnd/archive/2008/07/18/asp.net-read-authentication-form-timeout-value.aspx" />
        <id>http://blogs.hzsolutions.com/vnd/archive/2008/07/18/asp.net-read-authentication-form-timeout-value.aspx</id>
        <published>2008-07-18T23:06:28Z</published>
        <updated>2008-07-18T23:13:34Z</updated>
        <content type="html">&lt;p&gt;When you write a custom Membership provider, you might need to know timeout value of authentication form which declared in Web.config tto fullfil to your custom authentication ticket&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.hzsolutions.com/images/blogs_hzsolutions_com/vnd/WindowsLiveWriter/ASP.NETReadAuthenticationFormTimeoutvalu_8E20/image_2.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="436" alt="// Get form authentication time-out" src="http://blogs.hzsolutions.com/images/blogs_hzsolutions_com/vnd/WindowsLiveWriter/ASP.NETReadAuthenticationFormTimeoutvalu_8E20/image_thumb.png" width="644" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:42bd62dc-3a78-4921-99c8-c468578bcb73" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/ASP.NET" rel="tag"&gt;ASP.NET&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Authentication" rel="tag"&gt;Authentication&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Timeout" rel="tag"&gt;Timeout&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Custom%20Membership%20Provider" rel="tag"&gt;Custom Membership Provider&lt;/a&gt;&lt;/div&gt;&lt;img src="http://blogs.hzsolutions.com/vnd/aggbug/119.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blogs.hzsolutions.com/vnd/comments/119.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blogs.hzsolutions.com/vnd/comments/commentRss/119.aspx</wfw:commentRss>
        <trackback:ping>http://blogs.hzsolutions.com/vnd/services/trackbacks/119.aspx</trackback:ping>
    </entry>
    <entry>
        <title>ASP.NET: Display Row Index number in GridView, DataGrid, Repeater, DataList</title>
        <link rel="alternate" type="text/html" href="http://blogs.hzsolutions.com/vnd/archive/2008/07/05/asp.net-display-row-index-number-in-gridview-datagrid-repeater-datalist.aspx" />
        <id>http://blogs.hzsolutions.com/vnd/archive/2008/07/05/asp.net-display-row-index-number-in-gridview-datagrid-repeater-datalist.aspx</id>
        <published>2008-07-05T10:08:41Z</published>
        <updated>2008-07-05T10:10:14Z</updated>
        <content type="html">&lt;h3&gt;Solution #1&lt;/h3&gt;  &lt;p&gt;&amp;lt;asp:TemplateField&amp;gt;   &lt;br /&gt;    &amp;lt;ItemTemplate&amp;gt;    &lt;br /&gt;        &amp;lt;%# &lt;strong&gt;&lt;u&gt;Container.DataItemIndex&lt;/u&gt;&lt;/strong&gt; + 1 %&amp;gt;    &lt;br /&gt;    &amp;lt;/ItemTemplate&amp;gt;    &lt;br /&gt;&amp;lt;/asp:TemplateField&amp;gt;&lt;/p&gt; &lt;form id="aspnetForm" name="aspnetForm" action="http://forums.asp.net/p/992655/1292440.aspx" method="post"&gt;   &lt;h3 class="content_container"&gt;Solution #2&lt;/h3&gt;    &lt;div class="content_container"&gt;     &lt;ul&gt;       &lt;li&gt;&lt;strong&gt;Template&lt;/strong&gt;&lt;/li&gt;     &lt;/ul&gt;   &lt;/div&gt; &amp;lt;asp:TemplateField&amp;gt;    &lt;br /&gt;    &amp;lt;ItemTemplate&amp;gt;    &lt;br /&gt;        &amp;lt;asp:Label runat="server" ID="lblRowIndex"/&amp;gt;    &lt;br /&gt;    &amp;lt;/ItemTemplate&amp;gt;    &lt;br /&gt;&amp;lt;/asp:TemplateField&amp;gt;    &lt;ul&gt;     &lt;li&gt;&lt;strong&gt;Behind code&lt;/strong&gt;&lt;/li&gt;   &lt;/ul&gt;    &lt;p&gt;protected void GridView1_RowCreated1(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)      &lt;br /&gt;{       &lt;br /&gt;    if (e.Row.RowType == DataControlRowType.DataRow) {  &lt;br /&gt;        Label lblRowIndex= (Label)e.Row.Cells(0).Controls(0);  &lt;br /&gt;        lblRowIndex.Text = (&lt;strong&gt;&lt;u&gt;e.Row.RowIndex&lt;/u&gt;&lt;/strong&gt; + 1).ToString();       &lt;br /&gt;    }       &lt;br /&gt;} &lt;/p&gt; &lt;/form&gt;&lt;img src="http://blogs.hzsolutions.com/vnd/aggbug/118.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blogs.hzsolutions.com/vnd/comments/118.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blogs.hzsolutions.com/vnd/comments/commentRss/118.aspx</wfw:commentRss>
        <trackback:ping>http://blogs.hzsolutions.com/vnd/services/trackbacks/118.aspx</trackback:ping>
    </entry>
    <entry>
        <title>AJAXToolKit: ModalPopupExtender and Form validation issues</title>
        <link rel="alternate" type="text/html" href="http://blogs.hzsolutions.com/vnd/archive/2008/07/05/ajaxtoolkit-modalpopupextender-and-form-validation-issues.aspx" />
        <id>http://blogs.hzsolutions.com/vnd/archive/2008/07/05/ajaxtoolkit-modalpopupextender-and-form-validation-issues.aspx</id>
        <published>2008-07-05T08:36:55Z</published>
        <updated>2008-07-05T08:36:55Z</updated>
        <content type="html">&lt;h3&gt;Why Validation Controls Don't Work ?&lt;/h3&gt;  &lt;p&gt;Found on &lt;a title="http://www.myonlyblog.com/2007/07/modalpopup-validation-controls-dont.html" href="http://www.myonlyblog.com/2007/07/modalpopup-validation-controls-dont.html"&gt;http://www.myonlyblog.com/2007/07/modalpopup-validation-controls-dont.html&lt;/a&gt;:&lt;/p&gt;  &lt;p&gt;"The solution, it turned out is REAL simple, don't use either the OkControlID or OnOkScript. Basically you don't need the OkControlID or OnOkScript to be set unless you plan on doing some processing on the client side, this was why I was not firing the validation controls, I was posting back first because I had both of these set."&lt;/p&gt;  &lt;h3&gt;Keep the ModalPopupExtender open when something wrong in Server processing&lt;/h3&gt;  &lt;p&gt;For example, you lets user to enter a data entry form in a ModalPopupExtender (something like Matt Berseth 's work at  &lt;a title="http://mattberseth.com/blog/2008/04/masterdetail_with_the_gridview.html" href="http://mattberseth.com/blog/2008/04/masterdetail_with_the_gridview.html"&gt;http://mattberseth.com/blog/2008/04/masterdetail_with_the_gridview.html&lt;/a&gt;), and you want to notify user if something wrong and data couldn't be saved properly and keep the ModalPopupExtender open, just all ModalPopupExtender.Show() in catch block of your try...catch statement.&lt;/p&gt;  &lt;p&gt;Anyway, if you like &lt;a title="http://mattberseth.com/blog/2008/04/masterdetail_with_the_gridview.html" href="http://mattberseth.com/blog/2008/04/masterdetail_with_the_gridview.html"&gt;http://mattberseth.com/blog/2008/04/masterdetail_with_the_gridview.html&lt;/a&gt;, you must read his bug fix &lt;a title="http://mattberseth.com/blog/2008/05/bug_bashbuttoncausesvalidation.html" href="http://mattberseth.com/blog/2008/05/bug_bashbuttoncausesvalidation.html"&gt;http://mattberseth.com/blog/2008/05/bug_bashbuttoncausesvalidation.html&lt;/a&gt; too !&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:a45ac4ed-07a9-4fc3-89f7-524c017e3a4a" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/ASP.NET" rel="tag"&gt;ASP.NET&lt;/a&gt;,&lt;a href="http://technorati.com/tags/AJAX" rel="tag"&gt;AJAX&lt;/a&gt;,&lt;a href="http://technorati.com/tags/AJAXToolKit" rel="tag"&gt;AJAXToolKit&lt;/a&gt;,&lt;a href="http://technorati.com/tags/ModalPopupExtender" rel="tag"&gt;ModalPopupExtender&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Data%20Entry" rel="tag"&gt;Data Entry&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Validation" rel="tag"&gt;Validation&lt;/a&gt;&lt;/div&gt;&lt;img src="http://blogs.hzsolutions.com/vnd/aggbug/117.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blogs.hzsolutions.com/vnd/comments/117.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blogs.hzsolutions.com/vnd/comments/commentRss/117.aspx</wfw:commentRss>
        <trackback:ping>http://blogs.hzsolutions.com/vnd/services/trackbacks/117.aspx</trackback:ping>
    </entry>
    <entry>
        <title>ASP.NET: Create ASP.NET 2.0 Multilingual Websites</title>
        <link rel="alternate" type="text/html" href="http://blogs.hzsolutions.com/vnd/archive/2008/05/12/asp.net-create-asp.net-2.0-multilingual-websites.aspx" />
        <id>http://blogs.hzsolutions.com/vnd/archive/2008/05/12/asp.net-create-asp.net-2.0-multilingual-websites.aspx</id>
        <published>2008-05-12T03:21:03Z</published>
        <updated>2008-05-12T03:21:03Z</updated>
        <content type="html">&lt;ol&gt;   &lt;li&gt;Localizing process (from &lt;strong&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa905797.aspx"&gt;Michèle Leroux Bustamante&lt;/a&gt;&lt;/strong&gt;)&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;&lt;b&gt;Design pages&lt;/b&gt; by applying a combination of static HTML and ASP.NET server controls. &lt;/li&gt;      &lt;li&gt;&lt;b&gt;Prepare static areas for localization&lt;/b&gt; by wrapping them with the ASP.NET &lt;b&gt;Localize&lt;/b&gt; control. &lt;/li&gt;      &lt;li&gt;&lt;b&gt;Provide proper control names&lt;/b&gt; to all server controls so that generated event handlers and resource keys can be easily recognized. &lt;/li&gt;      &lt;li&gt;&lt;b&gt;Create shared resources&lt;/b&gt; in the App_GlobalResources subdirectory. These can be .resx files that already exist, or new .resx files created to hold terms that will be shared across several pages. &lt;/li&gt;      &lt;li&gt;&lt;b&gt;Associate shared resources&lt;/b&gt; with control properties using explicit resource expressions, where appropriate. It is best to do this before generating local resources for the page. &lt;/li&gt;      &lt;li&gt;&lt;b&gt;Generate local resources&lt;/b&gt; while in Page Design view by selecting the &lt;b&gt;Generate Local Resource&lt;/b&gt; menu item.&lt;/li&gt;   &lt;/ul&gt;    &lt;li&gt;Video &lt;a href="http://www.asp.net/learn/videos/video-40.aspx" target="_blank"&gt;How Do I: Create a Multi-Lingual Site with Localization?&lt;/a&gt; from &lt;a href="http://www.asp.net/learn/videos/"&gt;ASP.NET 2.0 "How Do I" video series&lt;/a&gt; of Scott Stansfield&lt;/li&gt;    &lt;li&gt;Tutorials&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;&lt;a title="http://www.beansoftware.com/ASP.NET-Tutorials/Globalisation-Multilingual-CultureInfo.aspx" href="http://www.beansoftware.com/ASP.NET-Tutorials/Globalisation-Multilingual-CultureInfo.aspx"&gt;http://www.beansoftware.com/ASP.NET-Tutorials/Globalisation-Multilingual-CultureInfo.aspx&lt;/a&gt;.&lt;/li&gt;      &lt;li&gt;Visually &amp;amp; easily to learn tutorial from Wei-Meng Lee &lt;a title="http://www.ondotnet.com/pub/a/dotnet/2005/08/08/localizingaspnet20.html?page=1" href="http://www.ondotnet.com/pub/a/dotnet/2005/08/08/localizingaspnet20.html?page=1"&gt;http://www.ondotnet.com/pub/a/dotnet/2005/08/08/localizingaspnet20.html?page=1&lt;/a&gt;&lt;/li&gt;      &lt;li&gt;Some which might answer your questions popped out of work&lt;/li&gt;      &lt;ul&gt;       &lt;li&gt;&lt;a href="http://dreamdotnet.blogspot.com/2007/01/tutorial-translating-aspnet-web.html"&gt;Tutorial: Translating an ASP.net Web application&lt;/a&gt;&lt;/li&gt;        &lt;li&gt;&lt;a href="http://dreamdotnet.blogspot.com/2007/01/trick-automated-translation-of-resx.html"&gt;Trick: Automated translation of a resx file&lt;/a&gt;&lt;/li&gt;        &lt;li&gt;&lt;a href="http://dreamdotnet.blogspot.com/2007/02/tutorial-localize-websitemap-file.html"&gt;Tutorial: Localize a Web.sitemap file&lt;/a&gt;&lt;/li&gt;        &lt;li&gt;&lt;a href="http://dreamdotnet.blogspot.com/2007/05/using-resource-in-aspnet-theme-tutorial.html"&gt;Using a resource in an ASP.NET Theme (Tutorial)&lt;/a&gt;&lt;/li&gt;     &lt;/ul&gt;      &lt;li&gt;&lt;/li&gt;   &lt;/ul&gt;    &lt;li&gt;Advanced&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;&lt;strong&gt;Jeff Modzel&lt;/strong&gt; teach us &lt;a href="http://www.codeproject.com/KB/aspnet/customsqlserverprovider.aspx"&gt;How to create your own ASP.NET 2.0 custom resource provider to replace resource files (resx) with SQL Server&lt;/a&gt;.&lt;/li&gt;      &lt;li&gt;&lt;strong&gt;Michèle Leroux Bustamante&lt;/strong&gt; give us a deep look into advantage &amp;amp; disadvantage of localization approach and suggest us an enough for Enterprise project approach &lt;a href="http://msdn.microsoft.com/en-us/library/aa905797.aspx"&gt;Extending the ASP.NET 2.0 Resource-Provider Model&lt;/a&gt;.&lt;/li&gt;   &lt;/ul&gt;    &lt;li&gt;To be continuing...&lt;/li&gt; &lt;/ol&gt;&lt;img src="http://blogs.hzsolutions.com/vnd/aggbug/112.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blogs.hzsolutions.com/vnd/comments/112.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blogs.hzsolutions.com/vnd/comments/commentRss/112.aspx</wfw:commentRss>
        <trackback:ping>http://blogs.hzsolutions.com/vnd/services/trackbacks/112.aspx</trackback:ping>
    </entry>
    <entry>
        <title>SQL Server CE: Unable to check if a table exist before drop</title>
        <link rel="alternate" type="text/html" href="http://blogs.hzsolutions.com/vnd/archive/2008/05/04/sql-server-ce-unable-to-check-if-a-table-exist.aspx" />
        <id>http://blogs.hzsolutions.com/vnd/archive/2008/05/04/sql-server-ce-unable-to-check-if-a-table-exist.aspx</id>
        <published>2008-05-04T09:02:47Z</published>
        <updated>2008-05-04T09:02:47Z</updated>
        <content type="html">&lt;p&gt;IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = '&lt;strong&gt;YOUR_TABLE&lt;/strong&gt;')    &lt;br /&gt;DROP TABLE ''&lt;strong&gt;YOUR_TABLE&lt;/strong&gt;'&lt;/p&gt;  &lt;p&gt;will NOT work because SQL CE are not support that IF EXISTS statement in this case, how awful ?&lt;/p&gt;&lt;img src="http://blogs.hzsolutions.com/vnd/aggbug/111.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blogs.hzsolutions.com/vnd/comments/111.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blogs.hzsolutions.com/vnd/comments/commentRss/111.aspx</wfw:commentRss>
        <trackback:ping>http://blogs.hzsolutions.com/vnd/services/trackbacks/111.aspx</trackback:ping>
    </entry>
</feed>