Skip to main content

Posts

Showing posts from April, 2021

custom File Upload ASP.net C#

Default.aspx.cs PageLolad   protected void Page_Load(object sender, EventArgs e)     {         FileUpload1.Attributes["onchange"] = "UploadFile(this)";     } protected void Upload(object sender, EventArgs e)     {         FileUpload1.SaveAs(Server.MapPath("~/AAA/Uploads/" +                                                        Path.GetFileName(FileUpload1.FileName)));                lblMessage.Visible = true;     } --------------------------------------------------------------------------------------------------------------- Default.aspx inside  form tag  put this code         <asp:FileUpload ID="FileUpload1" accept=".png,.jpg,.jpeg,.gif" Style="display: none" runat="s...

WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).

  WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive). Solution   < appSettings > < add key = "ValidationSettings:UnobtrusiveValidationMode" value = "None" /> </ appSettings >