Click here to Skip to main content
11,805,035 members (66,755 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET Ajax
i did all things but my code is not running well please help me out why it showing error.

aspx page

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="vv" %>
<!DOCTYPE html>
<html xmlns="">
<head runat="server">
    <form id="form1" runat="server">
      <vv:ToolkitScriptManager ID="ToolkitScriptManager1"  runat="server">
        <vv:AjaxFileUpload id="ajaxUpload1"
        runat="server" />
           runat="server" />

cs file

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;

public partial class _Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
    protected void ajaxUpload1_OnUploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e)
        string filePath = "~/Uploads/" + e.FileName.ToString();


Posted 15-Jun-13 0:33am
ThePhantomUpvoter at 15-Jun-13 7:43am
Are we supposed to guess which error you are getting out of all of the errors that it could be?
cyber_addicted at 15-Jun-13 7:56am
its not compile error. ajaxUpload1_OnUploadComplete method not invoked.
Nick Ginis at 18-Jun-13 19:05pm
Is the o in önUploadComplete how it appears in your code? Could be the issue.
mahakaal at 20-Jun-13 0:39am
have your solved this problem or still working on it.

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

  Print Answers RSS
0 OriginalGriff 305
1 Sergey Alexandrovich Kryukov 268
2 CPallini 210
3 Richard Deeming 190
4 CHill60 150
0 OriginalGriff 3,255
1 Maciej Los 1,990
2 KrunalRohit 1,907
3 CPallini 1,855
4 Richard MacCutchan 1,227

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 15 Jun 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100