Hello,
I have a window (used to display error messages) which resides on the master page. This window is then called by a publically accessable function on the master code behind which can be accessed by the child pages. Now, if I attempt to use the RadGrid RowDrop function and an error occurs, the master window does not display. The window does appear if I force an error (give an invalid stored procedure name) on the population method, but in this situation a full page laod accurs.
I would greatly appreciate your assistance.
See sample code example below:
Master Page
--------------------
public void Show_Error_Msg(String strLocation, String strError)
{
RadWindow objWindow = RadWindowManager1.Windows[0];
(objWindow.ContentContainer.FindControl("lbl_error_local") as Label).Text = strLocation;
(objWindow.ContentContainer.FindControl("lbl_error_msg") as Label).Text = strError;
objWindow.VisibleOnPageLoad = true;
}
Content Page
---------------------
protected void RadGrid1_RowDrop(object sender, GridDragDropEventArgs e)
{
try{
throw new Exception("This is the error from the RowDrop function");
}
catch(exception err){ Master.Show_Error_Msg("Row Drop", err.Message.ToString()); }
}