jonofnewport
Technical User
Hello,
I am developing an asp.net program to interact with an access database. I'm very new and just learning. Coding in VB.
I've learned how to call a procedure such as:
sub orderByModel(s As Object, e As EventArgs) ... end sub
by clicking on a button in a form such as:
<asp:button text="Model" onclick="orderByModel" runat="server"/>
Now what I want to do is call a "function" (with arguments), such as:
function orderBy(para as string) ... end function
by clicking on a button, kind of like this (though not proper code):
<asp:button text="Model" onclick="orderBy("Model")" runat="server"/>
Can it be done?
Thanks!
I am developing an asp.net program to interact with an access database. I'm very new and just learning. Coding in VB.
I've learned how to call a procedure such as:
sub orderByModel(s As Object, e As EventArgs) ... end sub
by clicking on a button in a form such as:
<asp:button text="Model" onclick="orderByModel" runat="server"/>
Now what I want to do is call a "function" (with arguments), such as:
function orderBy(para as string) ... end function
by clicking on a button, kind of like this (though not proper code):
<asp:button text="Model" onclick="orderBy("Model")" runat="server"/>
Can it be done?
Thanks!