I have asp master page with menu control like this:
MenuItem1
MenuSubItem1
MenuSubItem2
MenuItem2
MenuSubItem3
MenuSubItem4
I want some menu items and subitems to be disabled or enabled. I have code like this:
For Each menu In Menu1.Items
If menu.Value = "E" Then
menu.Enabled =...
Sorry, I don't know how to change text color. Sentence in red is:
"they always exist as a class in the project, and are available from IntelliSense and visible in the Object Browser
I found this site for CrystalReports support.
http://support.businessobjects.com/documentation/product_guides/cr_net/vs_2005/html/crconsdkfundamentalsembeddedornonembedded.htm
First in the text they say:
Note In Visual Studio 2005, Crystal Reports report files are no longer embedded in Web...
I have 2 webforms Form1 and Form2.
Form1 has button Print
Form2 has CrystalReportViewer
I have VB code for Print_click
Datatable=something from database……
……………………………………….
Dim rpt As New ReportDocument
rpt.Load(Server.MapPath("Test.rpt"))
rpt.SetDataSource(datatable)...
I think I am missing namespace, I have:
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Why I cannot instance report as new Test?
I have web form with button Print to show report. I made Test.rpt based on the xsd file.
Protected Sub Print_Click
Dim Report As New Test
Report.DiscardSavedData()
Report.Database.SetDataSource(some datatable)
CRViewer1.ReportSource = Report
CRViewer1.ViewReport()
End Sub
1. Problem is...
I want my Crystal report to use ttx file.
I have this code:
Public Declare Function CreateFieldDefFile Lib "p2smon.dll" (ByVal lpUnk As Object, ByVal fileName As String, ByVal bOverWriteExistingFile As Long) As Long
And in my function:
dt = New DataTable
dt =...
I have on my web form one dropdownlist which data source is datatable.
dt = New DataTable
dt = .....
dropdownlist.DataSource = dt
dropdownlist.DataBind()
When I click on dropdown I have 3 values John, Tom, Mike.
When user change the text TextChanged and...
Thank you.
Now I have another problem. I have webform and on page load I call one function from Class1. When error ocurrs in class I want the class to pass that error to the form, like in VB6.
I don't know how to do this. In VB6 I have in Tool Options to set:
Break on all errors
Break in Class...
I know this Try...catch...er.message...
But what am I looking for is Error.Number not Error.message
Like I have in my VB 6 project:
Err:
Select Case Err.Number
Case -2147467259, 17:
MsgBox "There is no connection"
Case 2627, 3621:
MsgBox "Field is unique."
Case...
I wonder how to catch error in the ASP.NET?
1. I have web form and when I click Add button I call Function Insert from my Class1
2. When function Insert has an error how to pass that error to my web form and where to show this error?
3. How to catch error code and handle error, for instance in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.