I have a question about doing something with binding to a control and then doing some processing in the code-behind based on that binded information. I wasn't sure if it were possible, if it is I'd like to know how to do.
Alright, here's the general scenario.
I binded an Sql query to a DataBind control, doesn't matter what I guess, Repeater, DataList, ListView, whatever.
<asp:Repeater ID="Test" runat="server"?
<%# Eval("Test") %>
<asp:Button ID="btnTest" OnClick="btnTest_Click" runat="server" />
Something like that. The MAIN thing I really want to do is when I click btnTest I want to do some processing based on the information I've bounded to the Repeater. For instance I'll already have a SELECT statement that selects an ID and whatever else. I just want to take that ID ( based on that particular entry of course ), do some other data processing based on that ID, and other crap. So how would I do this?
Is it possible? Am I doing this wrong? What would you do in a situation like this? I'm fairly new to ASP and I don't know the nifty tricks most everyone knows.
View Complete Post