A
Andy B
How do you add javascript to a page from codebehind? I have a method I am
working on that has a few conditions in it:
1. if either 1 or both WordTextBox or DefinitionTextBox is empty, show a
popup window telling the user that the textbox(s) can't be empty and return
them to the page with no further action.
2. The value in WordTextBox is already in the collection as a key, so show a
popup telling the user that the word already exists and then return them to
the page with no further action.
How would you do this?
working on that has a few conditions in it:
1. if either 1 or both WordTextBox or DefinitionTextBox is empty, show a
popup window telling the user that the textbox(s) can't be empty and return
them to the page with no further action.
2. The value in WordTextBox is already in the collection as a key, so show a
popup telling the user that the word already exists and then return them to
the page with no further action.
How would you do this?