'When I try to call button I got nothing
I tested function which is called with this button and it works fine. But when I try to call it throw linkbutton, nothing happened. And in debug I have this error: TypeError: theForm.submit is not a function at __doPostBack
Part of a code where button is creating:
var button = new LinkButton()
{
Text = "look"
};
button.Click += new EventHandler(submit_Click3);
cell.Controls.Add(button);
Part of a code where I call function with this button:
protected void submit_Click3(object sender, EventArgs e)
{
// some code that already works good
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
