After poking around on the web I found a way to put up a messagebox on page
load to that after I've done something, I can tell the user I've done it.
The method is to have a hidden textbox that I then check the value of in a
function during page load. The problem is that if I make the textbox hidden,
the routine can't find it. If it's visible, it works just fine. I've also
tried a label and had the same results.
Anybody have any thoughts?
TIA
Here's the code:
The code in the head section:
<script language="JavaScript">
function disp_confirm()
{
var txtAD
var txt
txtAD = document.getElementById('lblDisplayMessage')
txtAD.value
if (txt != '')
{
var name=confirm(txt)
}
}
</script>
The code for the text box:
<asp:TextBox id="lblDisplayMessage"
Runat="server">test</asp:TextBox>