Exemplo n.º 1
0
 protected void lnkBtnMovie_Click(object sender, EventArgs e)
 {
     string movieName = ((LinkButton)sender).Text.Trim();
     CallJava cj = new CallJava();
     string flag = cj.CallApi(movieName);
     Response.Redirect(String.Format("MovieContent.aspx?flag={0}&Name={1}", Server.UrlEncode("2"), Server.UrlEncode(movieName)));
 }
Exemplo n.º 2
0
        protected void lnkBtnMovie_Click(object sender, EventArgs e)
        {
            string   movieName = ((LinkButton)sender).Text.Trim();
            CallJava cj        = new CallJava();
            string   flag      = cj.CallApi(movieName);

            Response.Redirect(String.Format("MovieContent.aspx?flag={0}&Name={1}", Server.UrlEncode("2"), Server.UrlEncode(movieName)));
        }
Exemplo n.º 3
0
        protected void btnGo_Click(object sender, EventArgs e)
        {
            //if (ddlMovieList.SelectedIndex != 0)
            //{
            //    string selectedMovie = ddlMovieList.SelectedItem.Value.Trim();
            //    Response.Redirect(String.Format("MovieContent.aspx?flag={0}&Name={1}", Server.UrlEncode("2"), Server.UrlEncode(selectedMovie)));
            //}

            if (!txtMovieName.Text.Trim().Equals(""))
            {
                CallJava cj   = new CallJava();
                string   flag = cj.CallApi(txtMovieName.Text.Trim());
                Response.Redirect(String.Format("MovieContent.aspx?flag={0}&Name={1}", Server.UrlEncode("2"), Server.UrlEncode(txtMovieName.Text.Trim())));
            }
        }
Exemplo n.º 4
0
        protected void btnGo_Click(object sender, EventArgs e)
        {
            //if (ddlMovieList.SelectedIndex != 0)
            //{
            //    string selectedMovie = ddlMovieList.SelectedItem.Value.Trim();
            //    Response.Redirect(String.Format("MovieContent.aspx?flag={0}&Name={1}", Server.UrlEncode("2"), Server.UrlEncode(selectedMovie)));
            //}

            if (!txtMovieName.Text.Trim().Equals(""))
            {
                CallJava cj = new CallJava();
                string flag = cj.CallApi(txtMovieName.Text.Trim());
                Response.Redirect(String.Format("MovieContent.aspx?flag={0}&Name={1}", Server.UrlEncode("2"), Server.UrlEncode(txtMovieName.Text.Trim())));
            }
        }