I am trying to get some reuse out of a window. If in the querystring I pass a task_no the page runs using that task_no (executing stored procedures etc) ... the task no being shown as a label on the webform.
if the task_no is not included... I want the user to be able to search by entering a task_no in a textbox and when the user hits the enter key then try to reload the window using the entered task_no.
I have added code in the code behind to trap for when I have not received a task_no as part of the querystring.. I hide the label and show the textbox for entry. I have added the attribute keypress to the textbox and trapped for the 'enter' (13) keycode. The issue is that when I recognize the enter key I set the location of the window to
window.location.href="addHistory.aspx?task_no="+ll_task_no; using JavaScript and that causes validation and the user gets notified that they haven't entered dates etc on the page... I would like to obviously skip the validation in this instance...
any idea.... sorry for the long post. TIA -W
if the task_no is not included... I want the user to be able to search by entering a task_no in a textbox and when the user hits the enter key then try to reload the window using the entered task_no.
I have added code in the code behind to trap for when I have not received a task_no as part of the querystring.. I hide the label and show the textbox for entry. I have added the attribute keypress to the textbox and trapped for the 'enter' (13) keycode. The issue is that when I recognize the enter key I set the location of the window to
window.location.href="addHistory.aspx?task_no="+ll_task_no; using JavaScript and that causes validation and the user gets notified that they haven't entered dates etc on the page... I would like to obviously skip the validation in this instance...
any idea.... sorry for the long post. TIA -W