How to call an asp.net method with regular HTML input button
Posted on 2005-05-14
Hello, How can I call a method in an asp.net .vb (.dll) file from a html form submit button. This is what my button code looks like.
<input type="button" onClick="btnAsk_Click" value="Ask >" class="submit" />
and I want it to call this method in that aspx page's codebehind document
public Sub btnAsk_Click()
ltlEmailOutput.Text = "test"
I can't use an asp.net web control because the code for the button is coming from an xslt document and throws errors when I try to add an asp.net web control. Figuring out how to put a web control in an xslt document may also solve my problem. But I think triggering this method with a normal submit button would be fine, any ideas?