|
According to the method of RegisterStartupScript, there is a time problem, and it seems that this problem cannot be solved.
The registered script is executed together with the button event. I now want to execute some statements in the background before executing the script.
If executed together with the button event, you can also use this method
BUTTON.Attributes.Add
What I want to do now is: upload a picture, save the picture in the background, and then return the address of the picture to the foreground control, with a time interval in between.
In order to solve this time interval, the JAVASCRIPT event cannot be triggered by ASP.NET. I don't know if ASP.NET has any way to actively send parameters to the foreground control.
Thank you for your advice. |
|