Good morning,
I'm fairly new to the world of ASP.NET and C#. I've been trying to get something working for a web application that I'm converting from classic ASP to .NET and I'm having some trouble finding the information that I need to do what I want.
What I'm looking to do is to have multiple pages in the app use the same function in a code behind file but pass in different variables. The reasoning for this is that I have a function that I want to take a query string in order to pull data from a database.
What I want to be able to do is something like this:
<asp:Button runat="server" text="Submit Query" OnClick="runQuery('SELECT * FROM testTable')" />
& ...
Go to the complete details ...