Lo que he hecho para solucionar es quitar la invocacion al metodo del boton y solo llamar a la funcion de javascript con el ScriptManager, ya dentro del javascript tambien realizo la invocacion al metodo del servidor y quedo algo asi: Este es el boton en el cual ya no invoco al metodo Exportar.
![Ejecutar Js En Ajax Ejecutar Js En Ajax](https://i.stack.imgur.com/j6him.png)
![Ajax Ajax](https://rolandocaldas.com/wp-content/uploads/2014/08/cargaSincronaJavascriptAsync-Network-Error.png)
I want to implement this method to all the form variables. But When I did that I get the obeject required error. I am assigning the value of the flag whenever the txt is changed in the 2 text boxes. So when I click the submit button, I do some processing based on the value of the flag. It works for mytxt, but throws the Object required error for mycmt.
I pasted the code. Can you help me?
<script language=javascript> function txtChanged( txtForecastDesc) { document.all.txtFlag.value = 1; } </script> <script language=javascript> function txtChanged( txtForecastDesc) { document.all.txtFlag.value = 1; } </script>
scriptlanguage=javascript>
function txtChanged( mytxt)
{
document.all.txtFlag.value = 1;
}
</script>
scriptlanguage=javascript>
function cmtChanged( mycmt)
{
document.all.txtFlag.value = 1;
}
</script>
<ASP:TEXTBOXCLASS='inputleft'ID='mytxt'RUNAT='server'WIDTH='392px'ROWS='1'COLUMNS='80'MAXLENGTH='80'onchange='javascript: txtChanged( this );'></ASP:TEXTBOX>
<ASP:TEXTBOXCLASS='inputleft'ID='mycmt'onchange='javascript: cmtChanged( this );'RUNAT='server'WIDTH='648px'HEIGHT='120px'></ASP:TEXTBOX>