No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
16 Posted Topics
I'm trying to write C# code for a code-behind page in an ASP.project. I'm to the point where if any of the fields are blank, the code returns the page with the missing fields highlighted in yellow, and if all the fields are filled, then the page saves session state … | |
I'm new to Java (2 weeks) and was given a class assignment to create a program that takes a 5 digit number and checks to see if it is a palindrome (same forwards as backwards.) The requirement stated to use the methods main(), retrieveInput(), check(), and display(). My code works … ![]() | |
This is probably obvious to someone who is familiar with Oracle, however, I'm writing a script file for a class, and it throws an error on the line [CODE]ALTER TABLE FACULTY ADD CONSTRAINT FACULTY_Locid_fk REFERENCES LOCATION;[/CODE] where the table is FACULTY, the column is Locid, and I'm trying to create … | |
I need to provide IIS and ASP.NET Web Forms functionality to an existing installation running under VMWare. I have created a new VM container with an installation of Windows Server 2008 R2, and I'm looking for some feedback as to what the minimum packages and protocols I need to install … | |
I'm currently thinking of having a older VisualFoxPro database installation, migrated to the .NET platform, and am envisioning mySql, with a .ASP and Sharepoint front end. I'm just at the beginning of determining what frontside functionality will be needed, but in general, for developing a 10-20 user access, small database, … | |
I'm trying to understand the correct way to instantiate objects in C#, and I just can't seem to get it right. My code is in lines 17-37 lines 47-51 and lines 102-103 Any direction would be genuinely appreciated. Jim [CODE] private void findMortgagePayment() { string prompt; bool validPV = false; … | |
I've had one C# class two semesters ago, now as part of a UML/Object Oriented Analysis and Design class (with a programming prerequisite) I'm trying to take CRC cards and design specs and finalizing the code. However, between one C# class and one Java class, my syntax has all gone … | |
Re: +1 for the Sony Vaio. I have a core 2 duo that has been trouble free for the last 3 years. I just recently replaced it with an i7 G73 Asus, but the Sony still works fine. | |
I have data consisting of two arrays, string item [], and string location [], How do you create a DataGridView ( or is that even the right component to use) to display the data in a windows form, like in a listbox? Basically I need to write a method to … | |
I have a comboBox that is populated by an array. When one of the choices is no longer available, I'd like to remove that item from the comboBox. I tried [CODE]if (firstClassAvailable == 0) { this.comboBox1.Items.Remove("First"); }[/CODE] which throws this exception System.ArgumentException: Items collection cannot be modified when the DataSource … | |
I'm getting this error, and I'm not sure why I can't do this in a method. On lines 92 and 93 I get this error thrown: "Only assignment, call, increment, decrement, and new object expressions can be used as a statement" I'm sure it's something obvious, but I'm stumped. [CODE]using … | |
This may be a simple question, but I'm trying to populate a combo box with an array of string variables, but only that pass a conditional test. I'm getting a "complex databinding accepts as a datasource either in Ilist or IListSource" error. Obviously this is not the right way to … | |
I have a form that has two text boxes. The first is visible, and the second one is not. How do I go about having the second text box become visible if the user tabs out of the first text box? I wrote a KeyDown event handler to check for … | |
I'm trying to code a C# homework assignment that takes a phone number in this format XXX-XXXX (8 digits that can be alphanumeric) and then "Define a method named ReadDials( ) that reads each digit/letter dialed into eight separate char variables (DO NOT USE ARRAYS). All digits are sent back … | |
[CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Lab5_A { class Program { static void InputData(ref int counter, string[] playerName, int[] playerScore) { string aValue = null; Console.Write("Enter Player Name (Q to quit): "); playerName[counter] =Console.ReadLine(); Console.Write("\nEnter score for {0}:", playerName[counter]); aValue = Console.ReadLine(); playerScore[counter] = int.Parse(aValue); return; } … | |
For some reason, the variables I try to pass by value (errorFlag between Main() and ReadDials() and testDigit between ToDigit() and ReadDials()) don't get passed. The variables passed by reference get passed fine. As a work-around I passed a temp variable for each and copied the value from the temp … |
The End.