Formview: Control over null strings becoming DbNull?

Last post 05-09-2008 5:57 AM by KevInKauai. 0 replies.

Sort Posts:

  • Formview: Control over null strings becoming DbNull?

    05-09-2008, 5:57 AM

    I am customizing the original ClubStartKit and came across a thorny, problemmatic issue. In the Events_Edit area, the user is given the opportunity to enter the details of a new Calendar event. Howver, the data enforcement for this seems to be totally missing and permits the user to enter an Event with NO text description which then causes a "yellow screen of death" on retrieving the current events.

    The control for the Event Description is here:

    <asp:TextBox Text='<%# Bind("description") %>' runat="server" ID="descriptionTextBox"
                                        Rows="10" TextMode="MultiLine" Width="500px" Height="166px"></asp:TextBox>

    As the Text area is using the "Bind" function, I am at a loss to construct an "insurance" assignment (e.g., FormView1.descriptionTextBox = "").

    I am unable to find any documentation on the original ClubStartKit which might help point towards a solution to this problem.

    Any hints gratefully accepted ... :)  KevInKauai 

    Filed under: ,
Page 1 of 1 (1 items)
Microsoft Communities
Page view counter