You should look up the MarshalAs attribute, especially with the UnmanagedType.LPTStr and UnmanagedType.LPArray parameters. And I have to agree that this question would fit better into the C# forum.
Regards, Tim
Hi there, To force the Save As dialog box at the client side, you can use the Content-Disposition header field to send the image data from the server to the client side. You can simply google for "ASP.NET Content-Disposition " to get more info.
You can set the ID of a control as follows: myControl.ID ="myCtlID"; then use the .FindControl("myCtlID") method in the parent page/control. It'll return a control that you can cast to a text box and do what you need.