C
Coleen
Please see threads on "Dumb question about Message boxes" - I went to the
specified link - this works great if all you want to do is display a message
box before any of your script behind the aspx.vb runs or on the click event,
but if you are actually trying to validate user selections, such as when an
item from a drop-down is selected, I get an error if I put it in this code:
<asp:dropdownlist id="ddl_year" runat="server" Width="40%"
CssClass="datagrid " AutoPostBack="True" OnSelectedIndexChanged="script
language="VBScript"> MsgBox "Hello there" </script>"></asp:dropdownlist>
I get the red-squiggly on ="VBScript" and "Hello There" and of course a
build error when I try to run it. What I really need to do is validate a
selection from the dropdown list box (a date), if it is not the current
date, then I need a msg or alert box to warn the user that their selection
is not current and that the data they will be viewing is not updateable.
Where do I need to put this code to get it to run after a selection has been
made? Any suggestions? Thanks
Coleen
specified link - this works great if all you want to do is display a message
box before any of your script behind the aspx.vb runs or on the click event,
but if you are actually trying to validate user selections, such as when an
item from a drop-down is selected, I get an error if I put it in this code:
<asp:dropdownlist id="ddl_year" runat="server" Width="40%"
CssClass="datagrid " AutoPostBack="True" OnSelectedIndexChanged="script
language="VBScript"> MsgBox "Hello there" </script>"></asp:dropdownlist>
I get the red-squiggly on ="VBScript" and "Hello There" and of course a
build error when I try to run it. What I really need to do is validate a
selection from the dropdown list box (a date), if it is not the current
date, then I need a msg or alert box to warn the user that their selection
is not current and that the data they will be viewing is not updateable.
Where do I need to put this code to get it to run after a selection has been
made? Any suggestions? Thanks
Coleen