Search

You searched for the word(s): userid:818967

Matching Posts

  • Re: How do you display errors/messages in a grid view?

    That's pretty much what I managed to get to; in fact, I used this; which is slightly more durable. 1 Control c = (Control)sender; 2 Control m = c.FindControl( "MyMessageLabel" ); 3 while (c.Parent != null && m == null ) 4 { 5 c = c.Parent; 6 m = c.FindControl( "MyMessageLabel" ); 7 } 8 ((Label)m).Text = "Well done, change effected." ; 9 ((Label)m).Visible = true ; Of course, it should have another null check before line 8, but that's okay, I can live
  • Update panel from custom control

    Web web app looks similar to a file explorer - on the left is a tree heriarchy and on the right is a content pane. At the moment I have it framed, with the tree on the left, and the content on the right. However I want to be able to produce the same effect with update panels. The trouble is, I don't know how to trigger the panel to update from the custom control on the left (and pass a parameter to it, so that it updates with the right content). My custom control is basically a jQuery file tree
    Posted to ASP.NET AJAX Discussion and Suggestions (Forum) by alexanderhowell on 8/27/2008
    Filed under: Trigger, updatete panel, Custom Control
  • Re: How do you display errors/messages in a grid view?

    [quote user="alexanderhowell"] I am using a separate class to implement this functionality, so the page's members aren't in scope from the event handler. [/quote]
  • Re: How do you display errors/messages in a grid view?

    [quote user="ecbruck"] That's really up to you, but most often the error message is set to the Text property of a given Label outside of the GridView. Some will use multiple Labels with predefined messages and simply turn them off and on as needed. I myself use a custom ValidationSummary that can be written to so that all of my errors can be summarized. [/quote] I guess the question after this is; "how do I access those labels?" From the updating event I can access the gridview
  • How do you display errors/messages in a grid view?

    I have an editable grid view and I am using handlers to verify inputs. What is the best way of passing errors, warnings and messages back to the user of the grid view?
    Posted to Data Presentation Controls (Forum) by alexanderhowell on 8/26/2008
    Filed under: errors, GridView, Warning, messages
  • GridView update fails silently if (optional) fields are left blank

    I am using a gridview with a SqlDataSource object to view and edit records. Unfortunately I have the following symptoms: If all the columns have data in the update commits fine, if however, any one of the columns is empty, the update fails. I am using a stored procedure for updates which specifies default values (therefore values should not be compulsory) The update "appears" to have worked- as in my grid view returns to the view mode, and no exceptions are thrown. The SqlDataSourceStatusEventArgs
    Posted to Data Presentation Controls (Forum) by alexanderhowell on 8/11/2008
    Filed under: SILENTLY, UPDATE, EXCEPTION, FAIL, GridView, EMPTY, SQlLDATASOURceCE
Page 1 of 1 (6 items)