protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
            ass = Assembly.Load("App_GlobalResources");
            rm = new ResourceManager("Resources.Resource", ass);

            facade = new BusinessLogic.BusinessFacade(myConn);

            Form.DefaultButton = btn_Post.UniqueID;

            //File reader
            string filepath = Server.MapPath("~/UserData/template/HiringAdvice.txt");
            if (File.Exists(filepath))
            {
                StreamReader reader = new StreamReader(filepath);
                literal_stickyText.Text = reader.ReadToEnd().Replace(Environment.NewLine, "<br />");
            }

            if (Request.Params["cateid"] != null && Request.Params["cateindex"] != null)
            {
                currentId = Convert.ToInt16(Request.Params["cateid"].ToString());
                currentIndex = Convert.ToInt16(Request.Params["cateindex"].ToString());
            }
            else
            {
                currentIndex = 0;
                currentId = facade.GetFirstCateId();
            }

            repeater_tabs.DataSource = facade.view_HiringAdvice_Category();
            repeater_tabs.DataBind();

            repeater_Content.DataSource = facade.view_HiringAdvice(currentId);
            repeater_Content.DataBind();

            txt_Detail.Attributes.Add("onkeydown", "textCounter(this,'" + Label1.ClientID + "', 5000)");
            txt_Detail.Attributes.Add("onkeyup", "textCounter(this,'" + Label1.ClientID + "', 5000)");
            txt_Detail.Attributes.Add("onmousedown", "textCounter(this,'" + Label1.ClientID + "', 5000)");
            txt_Detail.Attributes.Add("onmouseup", "textCounter(this,'" + Label1.ClientID + "', 5000)");
            txt_Detail.Attributes.Add("onblur", "textCounter(this,'" + Label1.ClientID + "', 5000)");
            }
            catch (Exception ex)
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "PopopScript", "<script>alert('"+ex.Message+"');</script>");

                //Response.Redirect(Request.RawUrl.ToString());
            }
        }