Click here to Skip to main content
15,902,189 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ASP.NET Configuration Problem Pin
Abhijit Jana11-Aug-09 10:42
professionalAbhijit Jana11-Aug-09 10:42 
GeneralRe: ASP.NET Configuration Problem Pin
pampam11012-Aug-09 22:21
pampam11012-Aug-09 22:21 
GeneralRe: ASP.NET Configuration Problem Pin
pampam11015-Aug-09 11:35
pampam11015-Aug-09 11:35 
GeneralRe: ASP.NET Configuration Problem Pin
JacSophie13-Jan-10 15:10
JacSophie13-Jan-10 15:10 
QuestionSome Help on how to assign a Web Service to a NamedPipe Pin
AndyASPVB11-Aug-09 9:18
AndyASPVB11-Aug-09 9:18 
AnswerRe: Some Help on how to assign a Web Service to a NamedPipe Pin
eggsovereasy11-Aug-09 11:36
eggsovereasy11-Aug-09 11:36 
GeneralRe: Some Help on how to assign a Web Service to a NamedPipe Pin
AndyASPVB11-Aug-09 12:01
AndyASPVB11-Aug-09 12:01 
QuestionProblem with crystal reports Pin
shylock111-Aug-09 9:02
shylock111-Aug-09 9:02 
I want to display a crystal report using two tables from sql server but when report loads only header fields are visible no data is getting displayed.I have a textbox and a button on the page.After clicking on the button report should be displayed.RollNo is entered in the box and is common to both the tables.Here is the code:-
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using CrystalDecisions.CrystalReports;
using CrystalDecisions.ReportSource;
using CrystalDecisions.Web;


using CrystalDecisions.CrystalReports.Engine;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection();
con.ConnectionString = "data source =SHYLOCK2E935FD7F\\SQLEXPRESS;Initial catalog=StudentDetails ;Integrated Security =true";

}
protected void btnShow_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection();

con.ConnectionString = "datasource=SHYLOCK2E935FD7F\\SQLEXPRESS;Initial catalog=StudentDetails ;Integrated Security =true";
SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
cmd.CommandType = CommandType.Text;
cmd.CommandText = "select c.RollNo,c.StudentName,c.Department,p.feetype,p.amount from studentheader c INNER JOIN studentdetails p on p.Rollno=c.Rollno where c.Rollno=" + TextBox1.Text + "";
DataSet ds = new DataSet();
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;

da.Fill(ds);


con.Close();
ReportDocument CrystalReport = new ReportDocument();
string reportPath = Server.MapPath("CrystalReport.rpt");
CrystalReport.Load(reportPath);
CrystalReport.SetDataSource(ds);
CrystalReportViewer1.ReportSource = CrystalReport;
CrystalReportViewer1.DataBind();
}
}
AnswerRe: Problem with crystal reports Pin
Rahul Chitte17-Aug-09 6:01
Rahul Chitte17-Aug-09 6:01 
Questiona general question on download function Pin
Seraph_summer11-Aug-09 8:53
Seraph_summer11-Aug-09 8:53 
AnswerRe: a general question on download function Pin
Abhijit Jana11-Aug-09 10:47
professionalAbhijit Jana11-Aug-09 10:47 
GeneralRe: a general question on download function Pin
4anusha411-Aug-09 19:41
4anusha411-Aug-09 19:41 
GeneralRe: a general question on download function Pin
Abhijit Jana11-Aug-09 19:58
professionalAbhijit Jana11-Aug-09 19:58 
GeneralRe: a general question on download function Pin
4anusha411-Aug-09 20:00
4anusha411-Aug-09 20:00 
GeneralRe: a general question on download function Pin
Abhijit Jana11-Aug-09 20:11
professionalAbhijit Jana11-Aug-09 20:11 
GeneralRe: a general question on download function Pin
Seraph_summer12-Aug-09 9:13
Seraph_summer12-Aug-09 9:13 
GeneralRe: a general question on download function Pin
Abhijit Jana13-Aug-09 21:38
professionalAbhijit Jana13-Aug-09 21:38 
QuestionSetting up MIME Types in a Web Setup Project Pin
Mike Marynowski11-Aug-09 8:44
professionalMike Marynowski11-Aug-09 8:44 
QuestionLogin Failed on Deplyoed Mode Pin
Ravindra Bisen11-Aug-09 8:23
Ravindra Bisen11-Aug-09 8:23 
AnswerRe: Login Failed on Deplyoed Mode Pin
yesu prakash12-Aug-09 0:28
yesu prakash12-Aug-09 0:28 
QuestionPostback causing problem Pin
greendragons11-Aug-09 8:23
greendragons11-Aug-09 8:23 
AnswerRe: Postback causing problem Pin
Hemant_ec4811-Aug-09 12:29
Hemant_ec4811-Aug-09 12:29 
GeneralRe: Postback causing problem Pin
greendragons11-Aug-09 13:05
greendragons11-Aug-09 13:05 
AnswerRe: Postback causing problem Pin
yesu prakash12-Aug-09 0:33
yesu prakash12-Aug-09 0:33 
GeneralRe: Postback causing problem Pin
greendragons12-Aug-09 1:38
greendragons12-Aug-09 1:38 

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.