15 Mayıs 2009 Cuma

Unknown server tag error

In the case of an error of "Unknown server tag" format regarding AjaxControlToolkit, you should add the first line of code marked in the figure to the web.config as follows:

<add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>







With this trick, you not only solve your problem, but also you won't have to write

<%@ Register Assembly="AjaxControlToolkit" TagPrefix="cc1" Namespace="AjaxControlToolkit" %>

anymore to each page to use Ajax elements.

Change MasterPage at runtime

Let's say that we want to change the masterpage file of a page, when the user is logged in.
You can do the following:

In the code side of the page, we can write the following code in the PreInit event, that we will define:

protected void Page_PreInit(object sender, EventArgs e) {
try
{
userID = Int32.Parse(Session["userID"].ToString());
this.MasterPageFile = "~/NewMasterPage.master";
}
catch
{
;
}
}

10 Mayıs 2009 Pazar

Psikolojik Testler


Siz de benim gibi psikolojik testleri sevenlerdenseniz, bir site keşfettim:

Yaptığım bir testin sonuçlarını da paylaşayım dedim:

Career Inventory Test Results

Extroversion ||||||||||||||| 50%
Emotional Stability |||||||||||||||||| 53%
Orderliness |||||||||||| 40%
Altruism ||||||||||||||| 46%
Inquisitiveness |||||||||||||||||| 53%

You are an Architect, possible professions include - strategic planning, writer, staff development, lawyer, architect, software designer, financial analyst, college professor, photographer, logician, artist, systems analyst, neurologist, physicist, psychologist, research/development specialist, computer programmer, data base manager, chemist, biologist, investigator.


Neyse biraz tutturmuşum galiba:)

Bu sitelere güzel başka bir örnek vermek gerekirse, BBC'nin sitesi var bir de:

BBC Surveys

Burada beyninizin cinsiyetini öğrenmek gibi ilginç testler yapabilirsiniz.

İyi eğlenceler!..