Click Here Ads

Friday, September 4, 2009

Error...Chapter 9 for IP

At the 1st,
4 type of Error
i. Parser Error
 - Caused by Incorrect syntax/ bad grammar within HTML/ ASP .Net Page
 eg. Textb ID="txtName" runat="server"/>

ii. Compilation Error
 - Cause by syntax error, but different with parser error, it is occurs due to the statements are not recognized by language compiler, rather than HTML/ ASP .Net.
* raised when the page in the process being compiled( b4 compile being start )
eg. txtName.value = "super";
cant recognized by compiler, textbox don't have value this probability.

iii. Configuration Error
 - Cause by problem in either Web Config/ Machine Config File.
eg.
 missing close statement, XML must have < xxx> or

iv. Runtime Error / Logical Error
- Occur during Runtime, after the page is successfully.
- Cant detect by Compiler ( difference between other 3 errors)

What is Exception??
The exception are any error condition or unexpected behavior that occurs during the execution of a program.
It disrupts the normal flow of execution.

Exception Handling Methods
Page-Level Error Handling 
try...catch...finally
eg. try
      { your statement }
     catch ( Exception e)
     { statements occur when error occur}
     finally
     { statements in this block is "FORCED" to be executed irrespective of the fact that an exception has been          
      raised}
Page_Error()
eg.
protected void Page_Error( object sender, EventArgs e)
{
    Exception ex = Server.GetLastError().GetBaseException();
    Response.Write(ex.Message.ToString());
    Server.ClearError();
}
 When page error, The error message will be display by response.write.
 you also can redirect to other page by using this method.

Application_Error() Method
In Global.asax, we can find 1 event handler name as Application_Error()
We can write code inside the event.

Different between this 3 methods is :
try...catch...finally  - within a block of code
Page_Error() - within a page
Application_Error - within application


Benefits Custom Error Page in an application
users might not understand technical details of exception, so we can provide them a user-friendly error page.

wow~~heroes season 4 - redemption coming soon!!



 Heroes season 4 redemption...
Sylar, He's back.....
Heroes 第四季,NBC已确认将会有18至20集,将在 9月21日 两小时首播。
新阵容加入 Madeline Zima 饰演 Gretchen, Claire 的大学室友。Rick Worthy 将饰演 Matt 的新搭档。
Robert Knepper 在这季将扮演全新反派角色 Samuel。同时,特技演员兼武术家 Ray Park 也加入此季大展身手。
.
.
关于角色
1. 六月开始拍摄工作
2. 将有一位25-28岁的女性新角色Emma,她吸引人、聪明而敏感、听力有障碍,将和某一男角色有感情戏,第一次出现在S04-E03。
3. Claire 进入大学后将会有一名室友Gretchen,由Madeline Zima扮演,她脾气不好很外向。
4. Matt 将会有一名新的“导师”
5. Sylar 会回归
6. Tracy 的复仇将是故事中心线
7. Hiro 的头痛以及流鼻血将继续
8. Prison Break中的 T-Bag 将出演 Samuel,魅力十足但却邪恶,有着恶趣味,他将会涉及到每个Heroes 的生活中,他将至少出现六集。
.
.
关于剧情
0. 所有英雄们都试着回归平静生活。
1. Claire 来到华盛顿上大学,计划着像其他普通大学生一样认识自我,但是重归普通人的生活远比想象中要艰难,特别是当她发现自己父母离了婚以及校园内发生了一件神秘的自杀案。
2. Peter 和 Nathan 也试着使生活重回正轨。Peter 想作为英雄拯救人们,这使他远离了亲人和朋友,直到遇见了一名新的女性角色他才发现自己是与别人联系着的。Emma(Deanne Bray)将进入到他的人生中. 由于她的残疾, Emma同样不与外界交流. 但是一个独特的新能力的出现, 将改变Emma和Peter的生活。Nathan 每天都会发现一些关于自己的新情况。
3. 由于自己对 Sylar 的所做所为,Matt 很有负罪感,原本计划同妻子孩子的幸福生活也变得几乎不可能了。
4. Noah 在 Tracy、Angela 等英雄的帮助下,建立了新的 Company。这是一个关于寻找并联系人们的 Company,同时也是为了搞清楚为什么许多有能力者被另一个“组织”所诱惑,那个“组织”看似吸引人却很危险,甚至可能致死。
5. Hiro 将回到日本, 但他发现自己得了绝症. 为了弥补自己过去的错误, 他给自己列了一个遗愿清单。
6. Noah 开始了自己的单身生活. 他被任命成立一个新的公司, 但很快地他发现生活不止如此而已. 一个特工又如何变普通呢? 而Mohinder又向他指出了新危险的存在, 这让他迷惑自己是否该重新回到过去。
7. 英雄们所要面临的最大危险来自一个陌生而又危险的嘉年华团队, 它是由一群具有超能力的人组成: Samual(Robert Knepper)是他们的领袖. 而擅长用刀的速度能力者Edgar(Ray Park)和纹身女士Lydia(Dawn Olivieri)是他的左右手.
.
.
============================================================================
fast release, i cant wait jor XD
heroes heroes heroes ^^

Tuesday, September 1, 2009

Start to prepare exam...^^

after relax few days ... i start to study lo~~

gambateh...^^
P.S. a bit late jor T.T