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))); }
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()))); } }