Hello,
I'd like to manipulate the message on my webdialogwindow. I tried doing the following:
<asp:ScriptManager ID="ScriptManager1" runat="server" /> <cc1:WebDialogWindow ID="confirmDelete" runat="server" Height="300px" Width="400px" WindowState="Hidden" Modal="True"> <ContentPane> <Template> <asp:Label ID="deleteMessage" runat="server" Text="Label"></asp:Label> </Template> </ContentPane> </cc1:WebDialogWindow>
I'm displaying my WebDialogWindow via a javascript function:
function DeleteLine(RowName) {alert("In deleteline!");$find('deleteMessage').Text = "Are you sure you want to delete" & RowName & "?"$find('incAttachments1_confirmDelete').show()}
I get a null when I try to access $find('deleteMessage').Text, however the "Show" message works just fine.
I did a view source and it my asp:Label appears as the following in my html source:
<span id="incAttachments1_confirmDelete_tmpl_deleteMessage">Label</span>
When I try to view that in the the immediate pane, like so, it returns a null:
$find("incAttachments1_confirmDelete_tmpl_deleteMessage")
I'm open to other techniques to be able to change the message on my webdialogwindow.
-Eric
I can recommend using the following syntax
$find("<%= deleteMessage.ClientID %>");
or
document.getElementById("<%= deleteMessage.ClientID %>");
Could you please try this and let us know if it works?