January 2008 Entries

Windows: Auto-login and then lock your Windows, and speed it up by delay auto-start apps

If you are like me, you run a lot of fun programs on start-up. Of course, you shouldn’t just open everything at start-up, but it easily gets to the point where it takes a significant amount of time for your PC to load up all the programs you love so dearly after logging in. I like to turn on my PC, walk away, eat a 5 course meal, and then come back. Nothing ruins this more than your PC still not being completely ready for use after you return. I don’t have time to login, wait for stuff to...

Each day, each hour, each minute, is special.

A friend of mine opened his wife's underwear drawer and picked up a silk paper wrapped package: "This, - he said - isn't any ordinary package." He unwrapped the box and stared at both the silk paper and the box. "She got this the first time we went to New York , 8 or 9 years ago. She has never put it on, was saving it for a special occasion. Well, I guess this is it. He got near the bed and placed the gift box next to the...

AJAX: TabContainer - Lazy load tab panels or load data on-demain

I share the same situation with Matt Berseth and need a solution to come over it "I am currently working on a data-centric web application.  The page I most recently worked on allows the user to browse data from six different tables (a primary table, and five other tables that have 1-M relationships to the rows in the primary table).  A row from the primary table is displayed in a DetailsView.  Below the DetailsView is a TabContainer control with five tabs; each tab contains a GridView that displays the related rows in the other five tables.  Below is...

AJAX: TabContainer not maintaining ActiveTabIndex between postbacks

  Problems When I select a row from the GridView on "TabPanel2", the ActiveTabIndex is not maintained and appears to be reset. ASPX <%@ page autoeventwireup="true" codefile="Tabs.aspx.cs" inherits="Tabs" language="C#" title="Untitled Page" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <aspx:scriptmanager id="ScriptManager1" runat="server"> </aspx:scriptmanager> <ajax:tabcontainer id="TabContainer1" runat="server"> <ajax:tabpanel id="TabPanel1" runat="server" headertext="TabPanel1"> <contenttemplate> TabPanel1 </contenttemplate> </ajax:tabpanel> <ajax:tabpanel id="TabPanel2" runat="server" headertext="TabPanel2"> <contenttemplate> TabPanel2 <asp:gridview id="GridView1" runat="server" autogenerateselectbutton="true"> </asp:gridview> </contenttemplate> </ajax:tabpanel> </ajax:tabcontainer> </form> </body> </html> CODE-BEHIND using System; using System.Collections.Generic; public partial class Tabs : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { List<int> numbers = new List<int>(); for (int i = 1; i < 11; i++) { numbers.Add(i); } GridView1.DataSource = numbers; GridView1.DataBind(); } ...

Is it possible to treat LINQ Entities as WCF DataContracts ?

WinSpace describe problem when moving business entities across layers in a project with LINQ for SQL and WCF in his article LINQ to SQL Serialization  " My project includes several layers, some layers require the business objects to be serialized before sending to another layer. Right now I am using strong-typed dataset to present more than two hundred tables in the database, but I still had to manually create near 100 serializable business objects in order to represent the entities. LINQ to SQL was given me the hope to minimize the effort to create these business object...

LINQPad : Cool Tool To Help You Learn LINQ Query quick

Tired of querying in antiquated SQL? Well, you don't have to!  LINQPad lets you interactively query SQL databases in a modern query language: LINQ.  Kiss goodbye to SQL Management Studio! LINQPad supports everything in C# 3.0 and Framework 3.5: LINQ to SQL LINQ to Objects LINQ to XML LINQPad is also a terrific tool for learning LINQ: it comes preloaded with 200 examples from the recently released C# 3.0 in a Nutshell.  There's no better way to experience the coolness of LINQ and functional programming. LINQPad is free and needs no...

Tweak: How use ASP.NET 2.0 Membership to authenticate a user without Login control ?

One size can't fit all, that we're both know. Last weekend, a custom want their Login have professional look and user-friendly with more tips on the screen come with nice images and a CATPCHA. My god, their layout design  is far from the way we can do with Login control, event with CSS or CCS Control Adapters. Then i decided to create LogIn form myself based on their layout instead of using the ASP.NET built-in LogIn control. Here is how i do, help this will help someone else protected void Authenticate() ...

Get a open source ASP.NET bug tracking software

Keith Rull share his thoughts about serveral popular open source bug tracker application on A Comparisson Of Open Source Bug Tracking Softwares in ASP.NET.  Also, I found a nice & fair comparision chart of Michael Flanakin Compare Web-Based Issue Trackers. Hope that information can help me to come up to live one described bug tracking tool and keep our team happy all day

Windows XP - "Not enough server storage is available to process this command" & "not enough quota is available to process this command"

UPDATED: If you run into this problems, you might Try remove all virtual printers (like Pdf Factory,...) and see if it work Completly re-install your OS. Try other OS like Windows 2003 or Vista. Good luck  My I have Windows XP Pro SP2 running on Dell Inspiron laptop with 2GB of RAM installed behavious is unexpectedly after several hours without restart: Can start new program - try to start a program, but nothing show up and not found the corresponding process in the Task Manager t Cant open new...

How To Install PHP x64 on IIS 6.0

Today, i decided to stop the Apache server and move all hosting website to IIS, the problems is we're using Helm hosting manager and our system is x64 and the IIS is configurated to run . A little investigating workaround and found that is not complicate as i guest, just need these two to get thing done Download latest package from http://fusionxlan.com/PHPx64.php and follow these below instructions How To Install PHP on IIS 6.0 http://www.iisadmin.co.uk/?p=14 Cheers