Search:
Type: Posts; User: MaslowB
Search:
Search took 0.04 seconds.
-
Clear the error from ModelState? that wouldn't help as I am not able to get the updated values, they don't come in on the next pass into the Controller.
-
The Model being passed in isn't updated. So the same error message, continues to the next run.
-
A user submits registration information to the form:
<h2>Create</h2>
<%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
<% using...
-
how you 'delete' it depends on how and where you are storing it and if it implements IDisposable. If the only thing holding a reference to it is a list then
list.Remove(item);. if it's a field...
-
Yeah plug-ins, extensibility,testing. Also a big one is the Strategy Pattern. Using a Strategy pattern on a switch statement.
I've read that it's best to program to abstract classes or...
-
When working with SQL, and you aren't sure what the correct SQL is, you usually want to use your SQL server's native client to work out the correct sql before stuffing it into your program the way...
-
So far I've defined my own superclass, with the IEditableObject interface,then turned off the IEditableObject interface so that the damn bindingSource didn't automatically try to save everytime the...
-
Is there a recommended way to implement individual row-level change tracking? such that when a change is made to more than one row before a save is called, changes that the database doesn't reject...
-
well... that was simple to implement, all that remains is deciding if I should implement BeginEdit or leave it alone so that all changes are buffered instead of immediately committed.
Thanks.
-
I googled IEditableObject, read this article it appears what IEditableObject is supposed to do is added EndEdit and CancelEdit to an object... isn't this what the bindingSource does? how come it...
-
I haven't worked with a DataView or DataRowView, only datatable, dataSet and a strongly typed dataSet. It sounds like you're saying I do need to wrap a linq to sql row in a buffered business object...
-
Agreed, this goes along with option strict and option explicit.
-
you are setting whatFile inside the method, but it's being passed in as byVal instead of byReference. if this code is intended to change values in this way and have that change propagate out to the...
-
ok so this has been a solid week at least of frustration with implementing any kind of cancel changes with this combo.
CancelEdit on the bindingsource only seems to work on things like...
-
I would imagine they would go to different sockets in chunks rather than as single chars all firing into the same socket, so that some packet order information would be available, and the larger the...
-
This is a good reason to use things like table layout panels. so you control which areas grow with the form size and which don't.
-
isn't passing something byRef in VB effectively the same performance improvement as a pointer to the item?
-
I'd like to display a linq-to-sql on a datagridview as such:
Dim myQ = From b In _dcBooks.Books Select New With {Key b.ID, b.Title, b.Genre, b.ISBN, b.Format, b.Series, _
.Author...
-
and what all is in your form_load code on the form that freezes?
-
This extension takes care of the checking for invoke required part
public static void InvokeSafe<T>(this T c, Action<T> DoWhat)
where T : System.Windows.Forms.Control
{
Action d =...
-
Using a strongly typed dataset and its related table Adapters, normally when I want the changes to pass back, just pass it the table and let it do all the work.
What are some easy ways to enforce...
-
I ripped down the example and used it as a template for the actual work I needed the combobox for, and it worked just fine. So clearly I must have made a mistake somewhere. I built a snippet from the...
-
Hopefully this is helpful and posts ok: here's the idea converted to a snippet:
bDataGridViewCombo.snippet
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets...
-
I'm in Visual studio 2008 .net 3.5 c#.About stage 2 step 9: When I click edit columns the DataPropertyName drop down has nothing available in it besides none. I typed in the requested value and then...
-
ok, I found the post I will look into it more as soon as I get to work tomorrow. Thanks
-
I'm bringing down a strongly typed dataset table into a datagridview. then adding a column of combo boxes to let the foreign keys be selected by name instead of ID. Perhaps there's an easier way to...
-
an enum is the best way to me.
Public Enum SortMethod
Code
Title
End Enum
Public Sub SortDg(ByVal dg As Windows.Forms.DataGridView, ByVal method As SortMethod)
-
I'd like something write once based and plug in or call to wrap. like a class that accepts a dataadapter. I thought about exposing the command collection like most the modify dataAdapter posts on...
-
you mean as the user updates, deletes or inserts data? or do you mean when the data in the database is changed by someone else?
if it's the first one then you can load this dataset into a...
-
key, code, title,time, or comment may have been keywords, reserved words, or a datatype.
-
perhaps GIS database normalization I think that will help
-
are you using a design time strongly typed dataset or a hand-coded programmatically designed dataset?
you would probably need a primary key on the dataset if what you are trying to do with a...
-
I've written a class that wraps up any database queries with the following added functionality:
Automatic retry on timeout
Automatic reopen on connection closed
Thread Safety
Limited Auto...
-
you can also have the information stored off to another table in an update trigger on the table you are changing.
-
dynamic is the opposite of static. you would have to write a sql query that would change based on the number of rows or your query options.
-
Oddly enough I did something very similar to this just a few days ago writing my own little windows explorer clone that only showed folders with vb solutions or code in them.
'rootnode.tag must...
-
so if it's not clear, don't add directories to the treeview until you have found a file you want to show in them or one of their children.
-
I assume the fn() function is to add nodes?
You would want to a depth first recursive search... looking for files first.
you could store the path in the tag of the node you found something in,...
-
Also you may be opening the one in the project folder, while the program is opening the one in the debug or bin folder. run the insert program, then search your entire solution folder for the file...
-
Have you looked into this possibility yet?
|
Click Here to Expand Forum to Full Width
|