01.Blogs :
CCTING  

March 2004 - Posts

Login Failed for user "XXX"?
Tuesday, March 30, 2004 2:31 AM
Edit your ConnectionString, add ;Password=xxxx
Read More

| |

posted  by  CCTING  (Comments Off) 

New or Override?
Monday, March 29, 2004 9:36 AM
public virtual float Area() { }   public class A:B{public override float Area() { } OR public new float Area() { }   Please guess which correct? write your answer in the comment. 
Read More

| |

posted  by  CCTING  (Comments Off) 

Upload file ASP.NET
Monday, March 29, 2004 9:21 AM
Technical Skill Level : Very beginnerprivate void btnUpload_Click(object sender, System.EventArgs e) {             System.IO.FileInfo a = new System.IO.FileInfo(this.File1.PostedFile.FileName);
Read More

| |

posted  by  CCTING  (Comments Off) 

Posting Query
Monday, March 29, 2004 9:19 AM
Technique Skill Level : Very BeginnerASP.NETResponse.Redirect("haha.aspx?UserName=" + Request.Cookies["UserName"].Value);   Haha.aspx   Request.QueryString[“UserName”].ToString();
Read More

| |

posted  by  CCTING  (Comments Off) 

Posting Query
Monday, March 29, 2004 9:19 AM
Technique Skill Level : Very BeginnerASP.NETResponse.Redirect("haha.aspx?UserName=" + Request.Cookies["UserName"].Value);   Haha.aspx   Request.QueryString[“UserName”].ToString();
Read More

| |

posted  by  CCTING  (Comments Off) 

Cookie
Monday, March 29, 2004 4:28 AM
if(Request.Browser.Cookies) {         System.Web.HttpCookie a = new HttpCookie("UserName");         a.Value = "Ting Choo Chiaw";         Response.Cookies.Add(a);
Read More

| |

posted  by  CCTING  (Comments Off) 

Data Type Convertion - Simple but useful
Monday, March 29, 2004 4:25 AM
To Convert base type (int, float,...) to another base type (float, double..)use System.Convert.ToDouble(...)To Convert complex type (clsPacket ...)use keyword as , don't use ordinary "CType1 a = (CType1) a" or using is for performance issue.
Read More

| |

posted  by  CCTING  (Comments Off) 

Sort a String
Monday, March 29, 2004 4:21 AM
Technical Skills: Very beginner             public class clsString             {                        
Read More

| |

posted  by  CCTING  (Comments Off) 

Simple DropdownList Items
Monday, March 29, 2004 1:24 AM
private void Page_Load(object sender, System.EventArgs e) {             if(!this.IsPostBack) for(int i =0; i< 10; i++) {            
Read More

| |

posted  by  CCTING  (Comments Off) 

Simple DropdownList Items
Monday, March 29, 2004 1:11 AM
How you add items to a Dropdownlist / listbox/ comboBox,...etc?There are basically 3 simple techniqueTechnique 1: Add manually via loop for(int i =0; i< 10; i++) {                        
Read More

| |

posted  by  CCTING  (Comments Off) 

Offline Pocket PC Application - Part 1
Saturday, March 27, 2004 5:12 AM
This is the offline pocket PC application. Wanna the source and the complete solution? come back to my blog oftenly and check it out!!!!How much time you need to develop this offline application? 1 minute for fast CPU, 5 mintues for slow CPU. :D; 1 minute
Read More

| |

posted  by  CCTING  (Comments Off) 

Simple State Management II - using State Service
Friday, March 26, 2004 5:11 AM
Global.asax<sessionState mode="StateServer"stateConnectionString="tcpip=127.0.0.1:42424" />If the state server sits at another machine, then the performance will be much better compared to InProc (process) state management.
Read More

| |

posted  by  CCTING  (Comments Off) 

Simple ASP.NET State Management
Friday, March 26, 2004 12:46 AM
Technical Skill: BeginnerI will suggest a simple asp.net state management source code.global.asaxprotected void Session_Start(Object sender, EventArgs e){ Session["cart"] = new ArrayList(); Response.Write("Session started");}clsItem.cspublic
Read More

| |

posted  by  CCTING  (Comments Off) 

Application State
Thursday, March 25, 2004 9:45 AM
Technical skill : Very beginnerNOTE: Just let beginner to know how to use application state. Not more than this.Do you know that:   In your asp.net application, there is a file called "global.asax". Open the file using your editor,  protected
Read More

| |

posted  by  CCTING  (Comments Off) 

A Simple Mobile Web
Wednesday, March 24, 2004 12:05 PM
Author.aspx---------------<%@ Page language="c#" Codebehind="Author.aspx.cs" Inherits="MobileWebApplication5.MobileWebForm1" AutoEventWireup="false" %><%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile"
Read More

| |

posted  by  CCTING  (Comments Off) 

Framework Overview
Wednesday, March 24, 2004 11:50 AM
My IDEA:IMPORTANT: SPEED UP DEVELOPMENT, DECREASE REDUNDANT WORK, INCREASE EFFECIENCY, EFFECITIVENESS>.LAYERS OF PROGRAMMER:--------------------------------------------------------REPORT DESIGNER: Crytal Report / ActiveReport------------------------------------------------------USER
Read More

| |

posted  by  CCTING  (Comments Off) 

Function - SQL Server Return list of value
Wednesday, March 24, 2004 10:53 AM
create function TING.hihi() returns @myTable table(StateID int)asbegin   declare @tempLang table(StateID int)   insert @tempLang values (1)     insert @tempLang values (2)     insert @tempLang values
Read More

| |

posted  by  CCTING  (Comments Off) 

Using Stored Procedure to delete an Entry C#
Wednesday, March 24, 2004 7:43 AM
How much time you need to spend? Answer: 1 minute STORE PROCEDURECREATE PROCEDURE TING.DeleteStudent             @StudentID Char(10) AS   DELETE FROM Student WHERE (StudentID = @StudentID)
Read More

| |

posted  by  CCTING  (Comments Off) 

Indigo
Wednesday, March 24, 2004 7:33 AM
NOTE: Figure aboved taken from somewhere else. Look at "real-time" feature.Indigo = Reduce Instruction Set Mixed Machine, which runs on IRIS OS (Microsoft’s enemy). However, Microsoft will introduce Indigo, which is communication layer for new OS Longhorn.
Read More

| |

posted  by  CCTING  (Comments Off) 

Too Poor in XML and .NET
Wednesday, March 24, 2004 7:14 AM
Truthly speaking, I learned XML almost 5 years ago, this includes DOM, XPATH, XSLT, XSDL for XML Web services... hai.. I have forgotten all those terms. A foreigner asked me about those terms, and I stacked in front of them... struggling to find definition
Read More

| |

posted  by  CCTING  (Comments Off) 

Casting
Tuesday, March 23, 2004 10:37 AM
Casting.See this sample:   public class clsEmployee  {   public clsEmployee()   {   }   public void AMethod()   {   }  }  public
Read More

| |

posted  by  CCTING  (Comments Off) 

Canvas in Borland C, GDI / DirectDraw in .NET
Tuesday, March 23, 2004 10:07 AM
How about drawing this things using .NET GDI+?? :D//---------------------------------------------------------------------------   #ifndef clsCubeH #define clsCubeH //---------------------------------------------------------------------------
Read More

| |

posted  by  CCTING  (Comments Off) 

Stored Procedure Programming for .NET
Tuesday, March 23, 2004 8:34 AM
It is hard for a beginner to do ADO.NET Programming using stored procedure. However you can learn it within 3 seconds with this section.Step1: Create a table and list the info in the column in 3Xn table below Database Table Name : (Student)
Read More

| |

posted  by  CCTING  (Comments Off) 

Holiday today
Monday, March 22, 2004 2:46 AM
:D allow me to have a few days holiday before i continue with my blog. Have to finish up 2 .NET projects, one with Mobile Web another with MMS..
Read More

| |

posted  by  CCTING  (Comments Off) 

Offline Pocket PC Application
Friday, March 19, 2004 8:28 AM
Dear all,             I have experience in thin client application development. This includes Pocket PC, Tablet PC, Hand phone, Smart Phone and Radio. I used to all the business logic component in
Read More

| |

posted  by  CCTING  (Comments Off) 

Dropping Policy - A weekly Master Assignment
Thursday, March 18, 2004 8:32 AM
Performance Evaluation of Packet Dropping Policies in Congested Network Environment Choo Chiaw TingSupervisor: Dr. ShamalaUPMAbstract   This paper studies the performance of 2 scheduling algorithms, and investigates the interaction between the
Read More

| |

posted  by  CCTING  (Comments Off) 

Software Testing
Thursday, March 18, 2004 7:57 AM
Software testing is a fundamental aspect of software development, and can consume as much as 50% of the total cost for a project. This is particularly true for real-time systems, which have to be rigorously tested to ensure their correctness. Further,
Read More

| |

posted  by  CCTING  (Comments Off) 

foreach - simple but useful
Thursday, March 18, 2004 7:36 AM
Change all control's captions to "a"Approach 1: for (int i =0; i<this.Controls.length; i++)   this.Controls[i].Text = "a";Approach 2:  foreach(System.Windows.Form.Control a in this.Controls)     a.Text = "a";Foreach
Read More

| |

posted  by  CCTING  (Comments Off)