Click here to Skip to main content
15,918,706 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: 2010 validation control Pin
dcof27-Nov-11 13:15
dcof27-Nov-11 13:15 
QuestionEmbedded image in portable area not showing on deployment Pin
AumSingh25-Nov-11 6:05
professionalAumSingh25-Nov-11 6:05 
AnswerRe: Embedded image in portable area not showing on deployment Pin
jkirkerx25-Nov-11 19:25
professionaljkirkerx25-Nov-11 19:25 
GeneralRe: Embedded image in portable area not showing on deployment Pin
AumSingh25-Nov-11 22:07
professionalAumSingh25-Nov-11 22:07 
GeneralRe: Embedded image in portable area not showing on deployment Pin
jkirkerx26-Nov-11 6:48
professionaljkirkerx26-Nov-11 6:48 
GeneralRe: Embedded image in portable area not showing on deployment Pin
AumSingh26-Nov-11 7:40
professionalAumSingh26-Nov-11 7:40 
GeneralRe: Embedded image in portable area not showing on deployment Pin
jkirkerx26-Nov-11 12:33
professionaljkirkerx26-Nov-11 12:33 
GeneralRe: Embedded image in portable area not showing on deployment Pin
AumSingh26-Nov-11 17:13
professionalAumSingh26-Nov-11 17:13 
GeneralRe: Embedded image in portable area not showing on deployment Pin
jkirkerx26-Nov-11 19:35
professionaljkirkerx26-Nov-11 19:35 
GeneralRe: Embedded image in portable area not showing on deployment Pin
AumSingh27-Nov-11 6:05
professionalAumSingh27-Nov-11 6:05 
GeneralRe: Embedded image in portable area not showing on deployment Pin
jkirkerx27-Nov-11 8:51
professionaljkirkerx27-Nov-11 8:51 
QuestionAJAX ENABLED WEBSITE IN VS 2010 Pin
Member 322226425-Nov-11 2:03
Member 322226425-Nov-11 2:03 
AnswerRe: AJAX ENABLED WEBSITE IN VS 2010 Pin
Not Active25-Nov-11 3:15
mentorNot Active25-Nov-11 3:15 
AnswerRe: AJAX ENABLED WEBSITE IN VS 2010 Pin
jkirkerx25-Nov-11 19:20
professionaljkirkerx25-Nov-11 19:20 
GeneralRe: AJAX ENABLED WEBSITE IN VS 2010 Pin
Member 322226426-Nov-11 0:40
Member 322226426-Nov-11 0:40 
GeneralRe: AJAX ENABLED WEBSITE IN VS 2010 Pin
jkirkerx26-Nov-11 7:16
professionaljkirkerx26-Nov-11 7:16 
GeneralRe: AJAX ENABLED WEBSITE IN VS 2010 Pin
Member 322226428-Nov-11 0:05
Member 322226428-Nov-11 0:05 
QuestionWeb Service input validation in WSDL Pin
umairmoghal23-Nov-11 21:53
umairmoghal23-Nov-11 21:53 
AnswerRe: Web Service input validation in WSDL Pin
jkirkerx24-Nov-11 8:56
professionaljkirkerx24-Nov-11 8:56 
Questionshowing crystal report with query string parameter Pin
sk_ko23-Nov-11 16:11
sk_ko23-Nov-11 16:11 
AnswerRe: showing crystal report with query string parameter Pin
thatraja23-Nov-11 17:03
professionalthatraja23-Nov-11 17:03 
GeneralRe: showing crystal report with query string parameter Pin
sk_ko23-Nov-11 17:22
sk_ko23-Nov-11 17:22 
AnswerRe: showing crystal report with query string parameter Pin
thatraja23-Nov-11 19:20
professionalthatraja23-Nov-11 19:20 
GeneralRe: showing crystal report with query string parameter Pin
sk_ko24-Nov-11 14:56
sk_ko24-Nov-11 14:56 
yesterday I tried to display Crystal Report with parameter pass in visual studio 2005,
web application.
thank thatraja.
the link you provided is helpful.
But my problem is not solved yet.
I tried like this tutorial you provided.
But the report automatically request to input parameter in Textbox, when I click "ViewReport" link.
when I typed integer parameter in this textbox, the report show correct result.

I described my problem in detail below.
Let's say two documents.

1. Document1.aspx
2. ViewReport.aspx

First I put hyperlink in Formview of Document1.aspx.
I take ID value using QueryString to another page (ViewReport.aspx), Like below,
using hyperlink tag

href="ViewReport.aspx?id=<%#Eval("id")%>"

then, in ViewReport.aspx.cs, I coded like below,

string id = Convert.ToString(Request.QueryString["id"]); //take query string value
string connStr;
string strSQL;
ReportDocument cryRpt = new ReportDocument();
strSQL = "SELECT * FROM requests WHERE id=" + id; //make sql statement with parameter
ReportDocument rptDoc = new ReportDocument();
connStr = ConfigurationManager.ConnectionStrings["IThelpdeskConnectionString"].ConnectionString;
SqlConnection sqlCon = new SqlConnection(connStr);
DataSet ds = new DataSet();
sqlCon.Open();
SqlDataAdapter da = new SqlDataAdapter(strSQL, sqlCon);
SqlCommandBuilder cmdBldr = new SqlCommandBuilder(da);
da.Fill(ds, "requests");
rptDoc.SetDataSource(ds);
CrystalReportViewer1.ReportSource = rptDoc;
CrystalReportViewer1.RefreshReport();

the Error shows on Line.... rptDoc.SetDataSource(ds);
Invalid file path error
Exception Details: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Invalid report file path.

I don't know how to solve this error.
Anyboxy, pls help me.
I am using VS 2005 professional, web application (C#).
AnswerRe: showing crystal report with query string parameter Pin
thatraja24-Nov-11 15:05
professionalthatraja24-Nov-11 15:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.