[Mono-bugs] [Bug 623406] ConvertEmptyString doesn't work

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Sep 2 02:07:21 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=623406

https://bugzilla.novell.com/show_bug.cgi?id=623406#c2


--- Comment #2 from Yudi Wibowo <yuditriwibowo at yahoo.com> 2010-09-02 06:07:19 UTC ---
Created an attachment (id=387051)
 --> (http://bugzilla.novell.com/attachment.cgi?id=387051)
Source Code of ConvertEmptyStringToNull bug

Please try test.aspx

in test.aspx.cs I added this code :

protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
        {
            string s ="";
            int numberOfParams = e.NewValues.Count;
            for (int i = 0; i < numberOfParams; i++)
            {
                if (e.NewValues[i] != null)
                    s += e.NewValues[i].GetType() + " ; ";
                else s += "null ; " ;

            }
            Label1.Text = s;
            e.Cancel = true;

        }

        protected void GridView1_RowDeleting(object sender,
GridViewDeleteEventArgs e)
        {
            string s = "";
            int numberOfParams = e.Values.Count;
            for (int i = 0; i < numberOfParams; i++)
            {
                if (e.Values[i] != null)
                    s += e.Values[i].GetType() + " ; ";
                else s += "null ; ";

            }
            Label4.Text = s;
            e.Cancel = true;
        }

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list