We will share with you the implementation of the button dynamically generated by C #. Net and the Response Processing.
1. Button for generating input in the background
Htmlgenericcontrol control = new htmlgenericcontrol ("input ");
Control. Attributes. Add ("type", "button ");
Control. Attributes. Add ("onclick", page. clientscript. getpostbackeventreference (this, "btnmyquery ")
Write to interface
2. Background sending interception and Processing
If (page. ispostback)
{
// Obtain the response parameters
String eventargument = page. Request. Form ["_ eventargument"];
If (! String. isnullorempty (eventargument)
& Eventargument. Equals ("btnmyquery "))
{
// Execute your sending back process Code
}
}
Welcome to: http: // 121.18.78.216, which is a demonstration platform for ease of query and analysis, workflow, content management, and project management.