Search:

Type: Posts; User: MaslowB

Page 1 of 4 1 2 3 4

Search: Search took 0.04 seconds.

  1. VS 2008 Re: MVC1 - Invalid Values persist on form and Model

    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.
  2. VS 2008 Re: MVC1 - Invalid Values persist on form and Model

    The Model being passed in isn't updated. So the same error message, continues to the next run.
  3. VS 2008 MVC1 - Invalid Values persist on form and Model

    A user submits registration information to the form:


    <h2>Create</h2>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using...
  4. Replies
    3
    Views
    8,532

    Re: delete an instance of a class

    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...
  5. Thread: Interface

    by MaslowB
    Replies
    4
    Views
    855

    Re: Interface

    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...
  6. Thread: Group by

    by MaslowB
    Replies
    3
    Views
    587

    Re: Group by

    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...
  7. Re: linq-to-sql implementing a business model wrapper for row level change rollback

    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...
  8. linq-to-sql implementing a business model wrapper for row level change rollback

    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...
  9. Re: binding navigator to binding source to linq-to-sql

    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.
  10. Re: binding navigator to binding source to linq-to-sql

    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...
  11. Re: binding navigator to binding source to linq-to-sql

    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...
  12. Replies
    8
    Views
    837

    VS 2005 Re: Passing an array as a parameter in a sub?

    Agreed, this goes along with option strict and option explicit.
  13. Replies
    8
    Views
    837

    VS 2005 Re: Passing an array as a parameter in a sub?

    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...
  14. [RESOLVED] binding navigator to binding source to linq-to-sql

    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...
  15. Replies
    4
    Views
    775

    Re: Multithreaded Sockets Issues?

    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...
  16. Re: Application Sizing Issue with High Res Monitors

    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.
  17. Replies
    8
    Views
    805

    Re: C# Is There Any Benefits?

    isn't passing something byRef in VB effectively the same performance improvement as a pointer to the item?
  18. VS 2008 How can I retain update bindings while showing additional information?

    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...
  19. Re: Using the "Invoke" method from another form.

    and what all is in your form_load code on the form that freezes?
  20. Replies
    9
    Views
    29,393

    Re: Accessing Controls from Worker Threads

    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 =...
  21. Replies
    0
    Views
    2,465

    Strongly-typed dataset security

    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...
  22. Re: [.NET 2.0+] Adding a ComboBox Column to a DataGridView

    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...
  23. Re: [.NET 2.0+] Adding a ComboBox Column to a DataGridView

    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...
  24. Re: [.NET 2.0+] Adding a ComboBox Column to a DataGridView

    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...
  25. 2.0 Re: Why does my datagridviewcolumn not accept changes at this point?

    ok, I found the post I will look into it more as soon as I get to work tomorrow. Thanks
  26. 2.0 [RESOLVED] Why does my datagridviewcolumn not accept changes at this point?

    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...
  27. Replies
    15
    Views
    1,308

    Re: How do you index a dataset?

    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)
  28. Replies
    2
    Views
    753

    Re: Strongly Typed Dataset functionality

    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...
  29. Replies
    15
    Views
    1,308

    Re: How do you index a dataset?

    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...
  30. Re: Problem saving a dataset to Access Database

    key, code, title,time, or comment may have been keywords, reserved words, or a datatype.
  31. Replies
    3
    Views
    477

    Re: Indexes question

    perhaps GIS database normalization I think that will help
  32. Replies
    15
    Views
    1,308

    Re: How do you index a dataset?

    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...
  33. Replies
    2
    Views
    753

    Strongly Typed Dataset functionality

    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...
  34. Re: Sql server: Retrieve after Update

    you can also have the information stored off to another table in an update trigger on the table you are changing.
  35. Replies
    3
    Views
    768

    VS 2008 Re: Write a query to bind it to dataGridView

    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.
  36. Replies
    4
    Views
    1,119

    VS 2008 Re: Need advice on folder treeview

    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...
  37. Replies
    4
    Views
    1,119

    VS 2008 Re: Need advice on folder treeview

    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.
  38. Replies
    4
    Views
    1,119

    VS 2008 Re: Need advice on folder treeview

    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,...
  39. Replies
    35
    Views
    2,274

    VS 2008 Re: insert into statement

    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...
  40. Replies
    35
    Views
    2,274

    VS 2008 Re: insert into statement

    Have you looked into this possibility yet?
Results 1 to 40 of 148
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width