Hi everyone
I have a page setup like the following:
Master Page
ContentPlaceHolder
RadScriptManager
RadAjaxManager
RadGrid
MasterTableView
NestedViewTemplate
RadTabStrip
RadMultiPage
RadPageView
On the page view I have some commands, but I want to show a success/failure message that is allocated directly under the ContentPlaceHolder:
When I click on the delete button, all actions work as they need to, but the message never becomes visible? Any reason why it should not be working?
Im not getting an error, and when I view the currentRow.Parent.Parent.Parent.Parent object when in debug mode, it says ContentPlaceHolder.
Any ideas?
I have a page setup like the following:
Master Page
ContentPlaceHolder
RadScriptManager
RadAjaxManager
RadGrid
MasterTableView
NestedViewTemplate
RadTabStrip
RadMultiPage
RadPageView
On the page view I have some commands, but I want to show a success/failure message that is allocated directly under the ContentPlaceHolder:
<
asp:Panel
ID
=
"uxMessagePanel"
Visible
=
"false"
runat
=
"server"
CssClass
=
"message success"
>
<
asp:Label
ID
=
"uxMessageLabel"
runat
=
"server"
/>
</
asp:Panel
>
When I click on the delete button, all actions work as they need to, but the message never becomes visible? Any reason why it should not be working?
RadButton uxDeleteContact = (RadButton)sender;
GridNestedViewItem currentNestedRow = (GridNestedViewItem)uxDeleteContact.NamingContainer;
GridDataItem currentRow = (GridDataItem)currentNestedRow.ParentItem;
//some other code here
//Show Success Message to User
((Panel)(currentRow.Parent.Parent.Parent.Parent.FindControl(
"uxMessagePanel"
))).Visible =
true
;
((Label)(currentRow.Parent.Parent.Parent.Parent.FindControl(
"uxMessageLabel"
))).Text =
"Contact successfully deleted."
;
Im not getting an error, and when I view the currentRow.Parent.Parent.Parent.Parent object when in debug mode, it says ContentPlaceHolder.
Any ideas?