Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > BOOK: Beginning Ajax with ASP.NET
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 19th, 2006, 12:36 AM
Registered User
 
Join Date: Dec 2006
Location: , , .
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.
  #2 (permalink)  
Old January 29th, 2007, 10:25 PM
Registered User
 
Join Date: Oct 2006
Location: , , .
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.

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:30 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.