J
Joey
I have a web application with a page where user can go to upload data
files. When they click "Upload", which is an aspnet Button, I want to
be able to instantly hide a couple of textboxes and buttons on the
webpage before doing the postback. This is because if I place code to
do this in the server-side code block, it doesn't get executed until
after the upload completes - not very useful for this scenario! And so
I thought I would put in some client-side javascript to do the job .
But how do I wire up the client side function to the aspnet Button? I
need to be able to execute the client side javascript code block and
then immediately execute the server side code block afterwards. The
runat="server" is required for the aspnet Button, or at least that's
what the VS2005 compiler says. So how can I accomplish this?
files. When they click "Upload", which is an aspnet Button, I want to
be able to instantly hide a couple of textboxes and buttons on the
webpage before doing the postback. This is because if I place code to
do this in the server-side code block, it doesn't get executed until
after the upload completes - not very useful for this scenario! And so
I thought I would put in some client-side javascript to do the job .
But how do I wire up the client side function to the aspnet Button? I
need to be able to execute the client side javascript code block and
then immediately execute the server side code block afterwards. The
runat="server" is required for the aspnet Button, or at least that's
what the VS2005 compiler says. So how can I accomplish this?