Click here to Skip to main content
15,919,341 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hii.. how do we bind data from aspx page to crystal report with a button click. usually for grid we use
after writing the sqlcommand for searching in a button click we give like this
for retreiving in grid

C#
if (dt.Rows.Count >(greater than) 0)
       {
           GridView1.DataSource = dt;
            GridView1.DataBind();
       }
 for crystal report i will be giving as
  if (dt.Rows.Count >(greater than) 0)
       {
          response.Redirect("crystalreport.aspx") //the page where we can view the crystal report.
       }

what should be the code written in crystalreport aspx page
and in case we are using stored procedure what should be the discreet value of the parameter in crystal report in case 'where' condition is used
Posted
Updated 23-Feb-12 20:52pm
Comments
Anuja Pawar Indore 24-Feb-12 2:52am    
Added code block

Hi Nihal Hussain,

Refer this link. It may help you.
http://geekswithblogs.net/AzamSharp/archive/2006/09/13/91125.aspx[^]
 
Share this answer
 
Comments
Nihal Hussain 24-Feb-12 0:50am    
@vishnupriyaraju hi.. i tried using that link.. i got an error as object expected.. i already gave the key from which i need to get the data. even in the parameter field i have given the key

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900