Click here to Skip to main content
15,907,392 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: when set property enable = false for checkbox control in design time then after how to enable = true in javascript Pin
Coding C#28-Aug-09 2:06
Coding C#28-Aug-09 2:06 
QuestionHow can we add dynamic control to Data table Pin
Jain Vijay28-Aug-09 1:31
Jain Vijay28-Aug-09 1:31 
AnswerRe: How can we add dynamic control to Data table Pin
Coding C#28-Aug-09 2:08
Coding C#28-Aug-09 2:08 
GeneralRe: How can we add dynamic control to Data table Pin
Jain Vijay28-Aug-09 2:17
Jain Vijay28-Aug-09 2:17 
GeneralRe: How can we add dynamic control to Data table Pin
Coding C#28-Aug-09 2:21
Coding C#28-Aug-09 2:21 
QuestionASP.NET GridView not displaying label value while paging Pin
Inderjeet Kaur27-Aug-09 23:30
Inderjeet Kaur27-Aug-09 23:30 
AnswerRe: ASP.NET GridView not displaying label value while paging Pin
Inderjeet Kaur28-Aug-09 0:20
Inderjeet Kaur28-Aug-09 0:20 
QuestionHelp with Crystal Reports [modified] Pin
callousfantom27-Aug-09 23:26
callousfantom27-Aug-09 23:26 
Hi. I'm rather new to asp.net and even more so in crystal. Basically this is the first time I'm using this. What I need to do is prepare a report from a dynamically created dataset(untyped if you will). I have read a lot of articles online but haven't been able to make it work.
Basically the table that i want to display in crystal doesn't exist in database and was created programmatically as a DataTable

The data simply doesn't display.Here's the code in codebehind:

Protected Sub CrystalReportViewer1_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Init
Dim rpt As New ReportDocument
rpt.Load(Server.MapPath("CrystalReport1.rpt")
rpt.SetDataSource(dset.Tables("Tab1"))
CrystalReportViewer1.ReportSource = rpt
CrystalReportViewer1.DataBind()
End Sub


Please note that the dataset is populated correctly as i can see it in a gridview. CrystalReport1.rpt uses the same schema as Tab1 but using a dataset included at design time called "DataSet1".
Here is the code for how this dataset was created:


Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
Dim mysqlDad As MySqlDataAdapter
Dim mysqlConn As MySqlConnection
Dim query As String = "" 'some select query that returns 2 rows.
Dim connstring As String = "Database=ocsweb;Data Source=10.135.158.160;User Id=abc;Password=abc"
dset = New DataSet("Home")
dset.ReadXmlSchema(Server.MapPath("~\App_Code\DataSet1.xsd"))
mysqlConn = New MySqlConnection(connstring)
mysqlDad = New MySqlDataAdapter(query, mysqlConn)
mysqlDad.Fill(dset, "Tab1_tmp")
Dim Dt As New DataTable("Tab1")
Dim col1 As New DataColumn("Unchecked")
Dim col2 As New DataColumn("Checked")
Dt.Columns.Add(col1)
Dt.Columns.Add(col2)
Dim dr As DataRow = Dt.NewRow()
dr.Item(0) = dset.Tables("Tab1_tmp").Rows(0).Item(0)
dr.Item(1) = dset.Tables("Tab1_tmp").Rows(1).Item(0)
Dt.Rows.Add(dr)
dset.Tables.Add(Dt)
catch ex as exception
msgbox(ex.message)
end try


If there is something else that can/needs to be done, please let me know. I'm very new and could surely use some help here. Frown | :(

modified on Friday, August 28, 2009 6:18 AM

AnswerRe: Help with Crystal Reports Pin
Satish Mahapatra28-Aug-09 1:29
Satish Mahapatra28-Aug-09 1:29 
Questionproblem on inserting non english values in DB Pin
sajjy27-Aug-09 23:15
sajjy27-Aug-09 23:15 
AnswerRe: problem on inserting non english values in DB Pin
Manas Bhardwaj28-Aug-09 0:28
professionalManas Bhardwaj28-Aug-09 0:28 
GeneralRe: problem on inserting non english values in DB Pin
sajjy28-Aug-09 1:22
sajjy28-Aug-09 1:22 
QuestionScroll bar in data gridview Pin
myinstincts27-Aug-09 23:03
myinstincts27-Aug-09 23:03 
AnswerRe: Scroll bar in data gridview Pin
Arun Jacob27-Aug-09 23:04
Arun Jacob27-Aug-09 23:04 
GeneralRe: Scroll bar in data gridview Pin
myinstincts27-Aug-09 23:18
myinstincts27-Aug-09 23:18 
GeneralRe: Scroll bar in data gridview Pin
Arun Jacob27-Aug-09 23:20
Arun Jacob27-Aug-09 23:20 
AnswerRe: Scroll bar in data gridview Pin
Arun Jacob27-Aug-09 23:21
Arun Jacob27-Aug-09 23:21 
GeneralRe: Scroll bar in data gridview Pin
myinstincts27-Aug-09 23:20
myinstincts27-Aug-09 23:20 
GeneralRe: Scroll bar in data gridview Pin
Arun Jacob27-Aug-09 23:21
Arun Jacob27-Aug-09 23:21 
AnswerRe: Scroll bar in data gridview Pin
padmanabhan N27-Aug-09 23:16
padmanabhan N27-Aug-09 23:16 
GeneralRe: Scroll bar in data gridview Pin
myinstincts27-Aug-09 23:22
myinstincts27-Aug-09 23:22 
QuestionWeb Project Pin
Suresh_code27-Aug-09 23:03
Suresh_code27-Aug-09 23:03 
QuestionProblem in GridView DataSource Pin
nagendrathecoder27-Aug-09 22:45
nagendrathecoder27-Aug-09 22:45 
QuestionUse of Exchange Users to access Web application Pin
sadanand027-Aug-09 22:36
sadanand027-Aug-09 22:36 
AnswerRe: Use of Exchange Users to access Web application Pin
Arun Jacob27-Aug-09 23:08
Arun Jacob27-Aug-09 23:08 

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.