Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9089585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:11:07+00:00 2026-06-16T22:11:07+00:00

I am making a Crystal-Report from data of GridView . The GridView has three

  • 0

I am making a Crystal-Report from data of GridView. The GridView has three columns in which two columns are filled with values coming from DataBase in a label and third column has a CheckBox which on check sends the value of these two columns as query string to the .cs page of Crystal-Report. The column value is used by the stored-procedure and then result is shown in the Crystal-Report.
Now my problem is if user checks two CheckBox then the value of both columns should be sent to Crystal-Report page as array. How to implement this

My code behind in GridView page is

  protected void ChkCity_CheckedChanged(object sender, EventArgs e)
    {   
    foreach (GridViewRow row in gdCityDetail.Rows)
        {
 bool ischecked = ((System.Web.UI.WebControls.CheckBox)row.Cells[0].FindControl("CheckBox2")).Checked;
            if (ischecked == true) 
{
int getrow = Convert.ToInt32(e.CommandArgument);
  Label label1 = (Label )gdVilDetail.Rows[getrow].FindControl("label1");
                Label label2= (Label )gdVilDetail.Rows[getrow].FindControl("label2");

                Response.Redirect("~/crystal report/Landowner.aspx?Yojna=" + label1.text + "&Village=" + label2.text);

            }

and the code on .cs page of Crystal-Report is

 private void cityreport()
    {
        SqlCommand Cmd = new SqlCommand("Showvillage", Constr1);
        Cmd.CommandType = CommandType.StoredProcedure;
        Cmd.Parameters.Add("@Yojna_No", Request.QueryString[0]);
        Cmd.Parameters.Add("@Village_Code", Request.QueryString[1]);
        DataSet ds = new DataSet();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T22:11:09+00:00Added an answer on June 16, 2026 at 10:11 pm

    I think you cannot pass Array or any other Objects through Query string except string values. Rather you can use Session Variable.

    Try this..

    In page One.

    //Set
    Session["Variable"] = ArrayObj;
    

    In page Two.

    //If String[]
    
    string[] arry = (string[])Session["Variable"];
    

    hope it helps..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a report using Crystal Reports 2008 and Peachtree database. Report should display
I have two kinds of parameters in a specific Crystal Report I am making
Making an adobe flex ui in which data that is calculated must use proprietary
I am trying to retrieve values from the database using mysql and PHP. The
After some googling-fu on making subscript text in crystal report, I found this ,
Making an ajax call to return some data from the server. The data comes
The table which I am trying to export is imported in Crystal Reports from
We have a Crystal Report that lets the user pick which of several fields
I am new to making reports and so far I can make crystal report
im making an application where i have to load my database from html file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.