Click here to Skip to main content
16,011,680 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

How to create an User Interface that i need to upload the files in that UI.


Thanks in Advance

Sucharitha Goud
Posted
Updated 5-Dec-11 1:24am
v2
Comments
#realJSOP 5-Dec-11 7:24am    
I fixed your tag (was "C++").

Initially create u r UI by using the following code:
XML
<asp:FileUpload ID="FileUpload2" runat="server" /><br />
    <asp:Button ID="Button2" runat="server" Text="Upload" onclick="Button2_Click"/>


then use this c# code to save file:
C#
protected void Button2_Click(object sender, EventArgs e)
   {
       FileUpload2.SaveAs(Server.MapPath("~/Uploads"));
   }


Futher reading you can go through the below link:
http://msdn.microsoft.com/en-us/library/aa479405.aspx[^]
 
Share this answer
 
 
Share this answer
 
In order to create a UI for an app or a form in an app, you have to have a set of requirements. Once you know these requirements, you can design the UI. Based on your exhaustive description of the problem, I would recommend the following controls:

0) A label that identifies the intended content of the next control

1) A textbox that allows the user to specify the name of the file to upload

2) A button with an appropriate label, such as "Upload", "Go", "Make it so", or even "OK". Avoid button labels that don't foster a sense of confidence on the part of the user that the operation may not work, such as "Give it a shot", "Shield your eyes", or "Hold onto yer butt".

EDIT ======================

In rersponse to your request for code, no, I won't supply code to you unless you're willing to pay me for my time and royalties on each copy of the application that is sold/run. My wage is $100/hour with a minimum charge of $1000, and royalties are negotiable, but my typical royalty is 10 cents on every dollar, or 25 cents per execution session. If you'd like to arrange something like this, I can have my people contact your people.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900