I have a DOS based program which prints output to printer. It also has the option of sending output to Spool file which is actually used by printer.
I am trying to read that Spool file using System.IO.StreamReader in VB.net 2.0 but the problem is it does not read the whole file and stops...
I am using DataGrid with the following options
Allow Sorting - Yes
Allow Paging - Yes (default paging)
When I run the application it shows that there are 5 pages but when I click on any of them for e.g. 2 , 3, 4, 5 it always displays the first page and not the rest. Plus it doesn't...
If we want to display records in ASP then we simply loop through them and display them as follows
<%While not rs.EOF%>
Now what is the best way to do this in ASP.Net? Shall I create an ASP.Net table control?
I have page named Page1.aspx which contain the following code in Page_Load event.
Session("test") = "Hello"
There is also a link on that page which when you click goes to Page2.aspx.
This second page Page2.aspx contain one web user control named UserControl1.ascx. I have written the...
By default this is written in web.config
My question is how can I use this sqlConnectionString defined...
I created a web user control in ASP.Net. Then I added it in the webpage but by default it adds it up at the top of the page. But I want to place this control at the bottom of the page as a footer. I tried everything but couldn't find a way to move it, it is just stuck at the top. What do...
Yesterday I downloaded Refractor! for Visual Basic 2005 (from MSDN website), but when I tried to install it, it said that Visual Studio .Net 2005 is not installed althought I have Visual Studio 2005 Express Edition for Visual Basic installed on my system. What could be the problem?
How do I create database in SQL Server 2005 Express Edition. See the screenshot there is nothing in the start menu. I know that it may not have the Enterprise Manager but still from where I can create/access database?
Today I installed Visual Studio 2005 Beta 2 Team Suite. After installation when I ran it I found no option to create a new project. It is asking me to connect to Team Foundation Server to create a new project. Why is that? Why do I need to connect to Team Foundation Server to develop...
I have a report containing two parameters
The database contain two tables as follows:
Let's say I want to print records of all Employees in...
I have an application with password protected MS Access database. The application connects it via ODBC System DSN.
If I create setup/installer of my application using Setup and Deployment of .Net how can I make sure that it automatically creates an ODBC DSN on target computer?
I have added a dataset in my project named Dataset1.xsd. Then I try to create a connection with password protected Access database but when I press the Test Connection button it gives the following error:
Test connection failed because of an error in initializing provider. Cannot start...
I have a simple application containing one crystal report. I am using a password protected MS Access database. When I run the report a screen pops up and asks for Server, Database, User and Password. How do I avoid that?
I have VS.Net 2003 EA and I am making a VB.Net application which uses Crystal Reports. How do I access the Crystal Report Designer which comes with VS.Net? I can't find it anywhere and the only thing I can find is Crystal Report Viewer in the toolbar.
During VS.Net installation I chose full...
I am making a command line program in VB.Net that goes throught a loop and displays progress on screen like the following:
Now this 1% will increase as the loop progresses.
Problem is to write on command line we have two functions
Write and WriteLine and both writes a new...
I create a setup in VS.Net 2003. It creates three files
When I run MyProgram.msi then after the initial screens where it asks whether you want to install it for Everyone or Just me, it gives error
Error reading from file...
Take a look at the attached program. It is really simple just one textbox and one button.
What I am doing is when you click on the button it calls a subroutine which is inside a module. That sub passes a string value "hello" to another sub which is inside the form.
I can print the value using...