Expand|Select|Wrap|Line Numbers
- if (ctx.Request.RawUrl.Contains("/Category/"))
- {
- string[] strArray = ctx.Request.RawUrl.Split(new string[] { "/" } , StringSplitOptions.RemoveEmptyEntries);
- string strCategoryName = strArray[strArray.Length - 1].Replace("_", " ");
- DALTableAdapters.categoryTableAdapter catAdapter = new DALTableAdapters.categoryTableAdapter();
- DAL.CategoryDataTable catTable = catAdapter.GetCategoryByCategoryId(null, strCategoryName);
- Server.Transfer("~/view_jobs.aspx?catId=" + catTable[0].categoryId);
- }
Help!