How to pass an object as argument? [modified]
-
Hai I have some n number of fileupload control in my site. During submission i need to save the file in some loaction and save file location in DB. So i write a single function to do this process and call the function for the n number of controls. To do so i am inneed to pass the file controls as args to that function. How to achieve this. Thanks in advance.
modified on Tuesday, February 3, 2009 3:34 AM
-
Hai I have some n number of fileupload control in my site. During submission i need to save the file in some loaction and save file location in DB. So i write a single function to do this process and call the function for the n number of controls. To do so i am inneed to pass the file controls as args to that function. How to achieve this. Thanks in advance.
modified on Tuesday, February 3, 2009 3:34 AM
Am I missing something, or are you asking how to write a basic method signature in .NET ? If you're talking about an event, you can't change their signatures. If you're talking about a basic method, what is the issue ? Also, you don't need to pass the file controls ( although you sure can ), you can pass the file data without passing the controls, if you need to.
Christian Graus Driven to the arms of OSX by Vista.