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 =...
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 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...
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...
When I run my ASP application on localhost everything is ok. But, when I start my application from http://ip/WebSite/Default.aspx I can delete and edit table, but Insert doesn’t work. There is no error, I put some labels to check my code, everything is fine, but Insert doesn’t work.
It is very...
In my SQL database I have all user/login information like users, roles, permissions etc. So I have one web form with Login data: username and password. When user click button OK I check in my database that user, and if it is ok I redirect him to another page.
I wonder, when I say Logout I...
I have search web form with dropdownlist which is bound to datatable. When page is loaded I want dropdownlist.text to be empty because it is optional parameter for search.
When I set dropdownlist.text="" I got error.
How to solve this?
I need client side Msgbox in ASP 2.0 to confirm deleting. I found some scripts but they works on Button_click event and I need something like this:
Sub ButtonDelete_Click
Some code here…..
Some checking here…..
And here I want Msgbox (“Do you want….?”, OKCancel…..)
some code...
I have gridview bound to datatable. There are 2 columns: ID and NAME.
When I click Edit button ID field is read only and NAME is textbox that I can edit.
Then on OnRowEditing Event I would like to have code like this:
datatable.Rows(0).Item("NAME")= gridview.rows.(e.rowindex).cells(1).text...
Hi,
I've been trying to work with the XSDs and ran into a few problems.
1. How do you programatically change the connection string at runtime when using these TableAdapters via databinding in the IDE GUI?
2. I have in web.config connection string and I want my XSD to use this string to connect...
In my SQLServer database I have Timestamp field. I want to compare these fields like this:
If ds1.Rows(0).Item("Timestamp") = ds.Rows(0).Item("Timestamp") Then
.....
end if
I got error :
"Operater '=' is not defined for type 'Byte()'"
How to compare these fields?
In my old VB project I have this procedure to work with database:
1. I get recordset from database
2. I displey recordset values in textboxes
3. I update values in textboxes
4. I asign that values to recordset
5. I update Recordset to database
In ASP.NET 2.0 tutorials I don't see this kind of...
I have Visual Studio 2005 and I start to read ASP.NET 2.0 tutorials. In all tutorials they say that DataSource control and wizards are much better then writing the code for connections, filling dataset etc… They say:
“While point-and-click data access is useful for prototyping and for beginners...
I am new in ASP.NET. I need example of ASP.NET application to do this:
1. I have SQLserver database
2. I show selected data in datagrid
3. I want to insert new data
4. I want to select row from datagrid and delete it
5. I want to edit selected row
I don't know the concept of web application. On...
I am new in VB.NET so if somebody can help me. I have my vb project with some parameter functions to insert data in any table. I retrieve empty rs from database, then I fill that rs, and then call function Insert. It is very convinient because it works for any table. I also have some functions...
I am new in VB.NET. I need to write connection to database, but the name of database, server, username and password are in INI file. How to write this?
Second, I need to write one parameter method "Select *from Table....." where Table is parameter, so I can use this method for all my tables.
Can...
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.