Answer the question
In order to leave comments, you need to log in
How to pass parameter to button click handler in asp.net?
I have an element <input id="f" type="file" />
and a button on my form.
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
Answer the question
In order to leave comments, you need to log in
Assign a name to the imput such as Name
Then in the handler ask:string fText= Request.Form["Name"];
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question