Thie following is part of the .aspx file:
<asp:FileUpload ID="fAttached_Other" enctype="multipart/form-data" runat="server" /> <asp:Button Width="200" CssClass="stdButton" runat="server" ID="btnSubmit" UseSubmitbehavior="true" Text="Submit File" />
The following is part of the .cs file:
protected void Page_Load(object sender, EventArgs e)
{
frmPreApp.Focus();
btnSubmit.Click += new EventHandler(btnSubmit_Click);
if (!IsPostBack)
{
AddStandardCaptchaColors();
comboColors.DataSource = ColorCaptcha1.GetPossibleColors();
}
DataBind();
}
This is what I need to call when the .aspx file is uploaded to the SQL database.
public void Save()
{
if (fAttached_Other.HasFile)
{
fAttached_Other.SaveAs(@"C:\DB\web\HR\Original_PreApp\PreApp\Uploaded_Files\" + fAttached_Other.FileName);
}
}
This post has been edited by nonpro: 09 February 2010 - 03:48 PM

New Topic/Question
Reply




MultiQuote





|