J
Jim McGivney
In VWD I have an aspx page with a detailsview tied into a gridview for a
Master-Detail page.
I make one of the detailsview fields (the race field) a template field. On
the EditItem template I replace the text box with a DropDownList. This all
works fine until a record is selected with a value in the race field that is
not one of the items on the DropDownList, a error is thrown when the EDIT
button is clicked, saying the value is not on the list.
I would like to trap this error but do not know where or how. If I double
click the EDIT button, the event argument "
DetailsView1_PageIndexChanging(object sender, DetailsViewPageEventArgs e)"
is displayed. I do not know what to place in the try or catch expressions.
Sample code would be appreciated.
Thanks in advance for your help,
Jim
Master-Detail page.
I make one of the detailsview fields (the race field) a template field. On
the EditItem template I replace the text box with a DropDownList. This all
works fine until a record is selected with a value in the race field that is
not one of the items on the DropDownList, a error is thrown when the EDIT
button is clicked, saying the value is not on the list.
I would like to trap this error but do not know where or how. If I double
click the EDIT button, the event argument "
DetailsView1_PageIndexChanging(object sender, DetailsViewPageEventArgs e)"
is displayed. I do not know what to place in the try or catch expressions.
Sample code would be appreciated.
Thanks in advance for your help,
Jim