Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > BOOK: Beginning Ajax with ASP.NET
|
BOOK: Beginning Ajax with ASP.NET
This is the forum to discuss the Wrox book Beginning Ajax with ASP.NET by Wallace B. McClure, Scott Cate, Paul Glavich, Craig Shoemaker; ISBN: 9780471785446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Ajax with ASP.NET 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 19th, 2006, 12:36 AM
Registered User
 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding AJAX to existing ASP.NET application

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>";

}

I want that 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 a simple ajax solution. I am not using atlas.

Thanks.

Lols.
 
Old January 29th, 2007, 10:25 PM
Registered User
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can not update the label.text without refreshing the page.

If you want to refresh the text without refreshing, you should return the text to the client, and change the label text in the client browser by using javascript and DOM.






Similar Threads
Thread Thread Starter Forum Replies Last Post
VB.net, adding XML data to an existing XML file saikoboarder XML 11 April 17th, 2008 04:19 PM
Turning a regular ASP.NET App into an AJAX ASP.Net donrafeal7 Ajax 2 August 31st, 2007 12:33 AM
How to access Application with Ajax.net Pro lib Aaronmeng BOOK: Beginning Ajax with ASP.NET 0 January 29th, 2007 10:16 PM
feedback about my asp.net ajax application gusfai BOOK: Beginning Ajax with ASP.NET 0 November 18th, 2006 08:02 PM
Adding existing and non-existing attributes spencer.clark XSLT 5 July 27th, 2005 04:02 PM





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