Pass more arguments with sender and e?

tanqd

New Member
I have a function in the c# code that looks like:\[code\]protected void UploadFile(Object s, EventArgs e){blah blah blah}\[/code\]and this function will upload file to the server.i call to the function like this:\[code\]<asp:Button ID="uploadButton" runat="server" Text="Upload!" OnClick="UploadFile"/>\[/code\]i want to pass another argument to the function, and its will be the name of the file.but i tried to add it in the \[code\]UploadFile\[/code\] and its not work, how can i do it? thanks.
 
Back
Top