C# ASP.NET how to pass a parameter by pressing a button
<p>i have the situation: im showing many lines from the DB on the page. just creating dynamic lines (<code>&lt;% foreach (res in DBVar) %&gt;</code>). Every line has a button. every button use just 1 OnClick method. I really dont care of the name(value) of these buttons, but i can't take, how can i pass a parameter (e.g. a ID of a line from DB (<code>res.ID</code>)) from the .aspx page to OnClick Method. (Using LINQ to SQL)
I tried to take my param to the name(value) of a button with  "<code>&lt;input type="button" value="&lt;%= "string"+DBVar.ID%&gt;</code>"  and so on. the runat=server even can't take the variable on the name(value) coz of this i used just input method. 
Please show me the way to do with my problem. Thanks.</p>
