Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 20th, 2006, 02:39 AM
Registered User
 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Implmenting AJAX in ASP.NET

Hi there,

I have an asp.net application that uploads a file to the server. It has a FileUpload component, a Upload button and a label to display the file details.

// Code behind

protected void UploadButton_Click(object sender, EventArgs e)
{

HttpFileCollection fileUpload;

 HttpPostedFile postedFile = fileUpload[0];

Label1.Text = postedFile.FileName + "<br>";

}

When the file is uploaded by the user on clicking the upload button, without refreshing the page, the label should be updated.

Please tell me how to do that using a simple ajax solution. I am not using atlas.

Thanks.

Lols.
 
Old December 20th, 2006, 07:59 AM
Registered User
 
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you need to learn how to use ajax first really.

especially if your not going to use atlas.

it would be quite simple with atlas using an update panel

Guy ((d^n^b))
 
Old December 20th, 2006, 08:11 AM
Registered User
 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Can anyone post some code to give me a headstart.

Thanks.
Lols






Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET 2.0 Ajax raminriahi General .NET 2 September 5th, 2007 12:48 PM
Turning a regular ASP.NET App into an AJAX ASP.Net donrafeal7 Ajax 2 August 31st, 2007 12:33 AM
Asp.net ajax everest General .NET 0 March 8th, 2007 12:21 AM
ASP.NET AJAX inkrajesh ASP.NET 2.0 Professional 3 January 19th, 2007 03:42 PM
using AJAX in ASP.Net muskaanbajaj ASP.NET 1.0 and 1.1 Professional 3 February 24th, 2006 05:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.