I have an ASP button that I want to perform a Server.Transfer when clicked. For some reason, when the button is clicked, the _Click event isn't fired and the page just performs a postback. I've that my _Click event is properly attached to be button, so I know the binding isn'the problem.
Any...
I am trying to execute a startup script using Group Policy. The script runs for a Windows 2000 machine, but not XP. The script is a .bat file that has a CACLS command.
Any ideas why this would work for one platform, but not another?
--B
"Life is too important to be taken seriously" --Albert...
I am starting to look at deploying reports using Crystal in our C# ASP applications. We have a stand-alone version of C# so we don't have Crystal Reports for .NET. We do have a full version of CR9. What do I need to do to be able to use CR9 in my applications? When I go to add a reference...
I am trying to to retrieve a value from a table called Session_ID. When the line in my try block is executed, I get a "Row handle is invalid" error. The value I am trying to get is a long integer in an Access database. I have also tried a SELECT MAX and it still doesn't work. You guys have...
I keep getting an invalid cast exception when trying to retrieve data from an AutoNumber field in Access. Here is what I have:
private int GetSessionNumber()
{
//Check database connection. If closed, open it
if (aLib.SQLConnection.State==System.Data.ConnectionState.Closed)...
I am having a bit of trouble with a try..catch..finally block I am writing. When I get to my finally block, the compiler is complaining that it can't find my reader. It doesn't make much sense to me that a variable is the try block would be out of scope in the finally block.
private...
Hopefully this should be an easy one. I am trying to start an ASP.NET web app in Visual Studio, but when I try I get the following error:
"Visual Studio.NET has detected that the specified web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET web applications or...
Hopefully this should be an easy one. I am trying to start an ASP.NET web app in Visual Studio, but when I try I get the following error:
"Visual Studio.NET has detected that the specified web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET web applications or...
This one has me baffled. I have the following code for resetting a password:
using(PasswordReset resetter = new PasswordReset())
{
if(resetter.ShowDialog() == DialogResult.OK)
{
string sql = "UPDATE Users SET Password = '" + resetter.Password + "' WHERE " +
"User_ID =...
I have a user using Outlook 2000 and the first time she goes to send a message Outlook pops a warning message that a program is accessing her address book and is this OK. Reguardless of what she answers, the blank message pops up like normal and she isn't asked again until the next time she...
I am trying to use an OpenFileDialog control to get a filepath for the selected image file to store in a database. If I click on 'My Network Places' in the dialog box, my application freezes. Is there something special I have to do so this will browse files on the network?
--Brad
I have a question regarding the best way to get rid of a used form. For example, I start my program with a menu form. As of right now, when they click a button, I Hide() the form, create a new instance of the form that will be shown, and Show() the new form. This is done for each form in my...
I have a program I have recently compiled that I want to put out on our intranet. It works fine on my machine, but if I try to run it from the intranet location, I get an...
"Application tried to perform an operation not allowed by security policy error" System.Security.SecurityException...
Alright, not sure if I'm in the right place here, but you guys have been helpful to me in the past. I am currently writing an app in C# that is generating reports in Word. I'm using VBA code to guide me as the code is 75% similar.
I need to know how to go about deselecting a table so when I...
I am having some problems creating a new Bitmap object with a UNC filepath. Here is my code:
Bitmap testPic = new Bitmap(@"\\scbcmain\data\Testing\defaultimage.png");
It works OK if I point it to a file on the local drive. If it makes any difference, I will be showing the file in a...
I am relatively new to C# and OOP, and I have a question about good programming practice regarding database connections. I am writing a program in which multiple forms will be connecting to a singular Access database. I have the OleDbConnection setup and working.
My question is: What is the...
Hey everyone.
I work for a blood bank for which we have mobile units that we deploy for remote blood drives. These units currently register patients into our database with a laptop that connects via VPN with a cellular wireless card.
Here is my problem. We recently validated some software...
I am having a problem getting the DCount function in VBA to recognize when a cell is null. In my query I have a column called STATUSDef that will either contain a 'D' or be null. Here is the code I am using to do this:
'tlh-def
.Cells(13, curColumn) = DCount("STATUSDef", "qryDailyTest"...
Howdy.
Hopefully this will prove to be a simple question with a simple answer. I am currently using VBA to format an Excel spreadsheet from an Access module before transferring it to a table in the database. I am writing a loop to format dates from YYYYMMDD to MM/DD/YYYY. While I have the...
Using ver. 2003
I am having some problems putting text from a Word doc into an Access table field. I have an Outlook task form I am writing VBScript behind to do this to put text into a work order. The problem is stemming from contructing the SQL statement. Here is my code thus far:
set...
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.