blah blah blah is here! blah blah » Close

0
votes
1 answers

Gridview/Objectdatasource Debugging - C#

I created this delete method in visual studio. I've tested in on my database - it works properly from Console. However, when Objectdatasource calls the method from a gridview control, my entry is not getting deleted from the database. ...

0
votes
0 answers

MySQL Transactions C#

I have a MySQL transaction that I'm trying to do. The first step is to write to the table files. When this happens, the database should auto-create the FileID. The second step is to lookup the FileID that was just created. This part ...

0
votes
0 answers

FileUpload only works from specific folder

This function is called to upload a file using the FileUpload control. The function only works when the file is located in the "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\" directory. Otherwise, it won't upload. I ...

0
votes
1 answers

Blank MySqlDataReader - C#

I have a drop down list to populate. When I run the desired query using MySQL Query Browser, it returns 3 rows. So... I know my DataReader should not be empty. Code for GetAuthorForDDL [code] public MySqlDataReader GetAuthorsForDDL ...

0
votes
1 answers

Read/Write XML

I wrote a function in VS C# that works fine reading/writing files to my hard drive. However, when I try to test my app inside of VS Web Developer and try to edit files contained in the project, I get non-stop "The process cannot acces ...

0
votes
1 answers

DataSet and DropDownList C#/ASP

I load my dataset of last names properly into a dropdownlist using an object data source. I want to accomplish the following: 1) My current dataset returns AuthorID, LastName, FirstName from MySQL 2) I need to eliminate LastName and Fir ...

0
votes
1 answers

GridView won't delete rows in MySQL database

I get the GridView to load properly but cannot figure out how to make it delete values. How do I make the deletion propogate to the database? I think one of the problems is that I'm using the SelectedIndex property in the code behind ...

0
votes
2 answers

GridView in ASP.NET/C#

I wrote a very simple application in ASP.NET/C#. When I load my Authors page, I get this error: The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found. Description: An unhandled exception ...

0
votes
1 answers

Database question

I'm planning how to organize my tables for my first database project using MySQL and C#. One problem came up immediately that wasn't covered in my introductory book. For example, say I have a customers table and want to assign two sale ...

0
votes
1 answers

DataGridView not displaying

This code connects fine to my SQL database, but the DataGridView doesn't display any of the information that I queried. Any ideas on what I'm lacking here? using System; using System.Collections.Generic; using System.ComponentModel; us ...

0
votes
1 answers

Which collection type

I want to create a simple collection that I can reference like an array. Which collection type should I use? The table I have would be like this Arraylike reference int double 0 ...

0
votes
1 answers

Object Property in List not updating properly

I don't understand why this is happening: The valueHolder gets the correct number. I want to assign it to listStats[0].Mean, but what's happening is that the code assigns valueHolder to the Mean property of every OutcomeStats object in th ...

0
votes
1 answers

Formatting StringBuilder

I've written a simple web application that is almost exactly how I want it. The issue now is formatting the output. This is my code: display.AppendLine("Counter Entries: " + Convert.ToString(counter)); display.AppendLine(" ...

0
votes
1 answers

Do-while & XML

I'm trying to read an XML file using a do while loop. Right now the "do" part works ok - it finds the correct information in the first two "Row"s and displays them on the console. The problem is that no subsequent in ...

0
votes
1 answers

Simple XML Problem

This is the XML that I'm reading: ***************************************** <Row ss:AutoFitHeight="0" ss:Height="12"> <Cell ss:StyleID="s22"><Data ss:Type="String" x:Ticked=&q ...

Feedback