Esempio n. 1
0
        protected void btnSearch_Click(object sender, ImageClickEventArgs e)
        {
            switch (ddlDataType.SelectedValue)
            {
            case "1":
                Response.Redirect(UrlProcess.GetMusicSearchResultUrl(lang, width, txtKeyword.Text.Trim(), "0"));
                break;

            case "2":
                Response.Redirect(UrlProcess.GetWallpaperSearchResultUrl(lang, width, txtKeyword.Text.Trim()));
                break;

            case "3":
                Response.Redirect(UrlProcess.GetGameSearchResultUrl(lang, width, txtKeyword.Text.Trim(), "0"));
                break;

            case "4":
                Response.Redirect(UrlProcess.GetAppSearchResultUrl(lang, width, txtKeyword.Text.Trim(), "0"));
                break;

            case "5":
                Response.Redirect(UrlProcess.GetVideoSearchResultUrl(lang, width, txtKeyword.Text.Trim()));
                break;
            }
        }