Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics 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 March 26th, 2010, 04:32 AM
Registered User
 
Join Date: Mar 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default AJAX AsyncFileUpload control - referencing server side controls after upload

Hi there,

My AsyncFileUpload works fine, file is uploaded ok in UploadedComplete event
but nothing happens on server controls - Label1 and Textbox1 (both are inside updatepanel)

Here is the code:

.vb:

Protected Sub AsyncFileUpload1_UploadedComplete(ByVal sender As Object, ByVal e As AjaxControlToolkit.AsyncFileUploadEventArgs) Handles AsyncFileUpload1.UploadedComplete

Label1.Text="File uploaded ok"
Label1.Visible = True
TextBox1.Visible = False

AsyncFileUpload1.SaveAs("c:\somefile.pdf")


End Sub
---------------------------------------------------
.aspx:

<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<cc1:AsyncFileUpload ID="AsyncFileUpload1" runat="server" />
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Label ID="Label1" runat="server" Text="Text" visible="false"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>

---------------------------

Tnx.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Client-Side Features to Server Controls barkerl ASP.NET 2.0 Professional 2 February 22nd, 2009 01:44 PM
AJAX without server side script possible? suersh79 BOOK: Professional Ajax ISBN: 978-0-471-77778-6 4 November 17th, 2006 01:55 AM
ASP.NET Server Controls and Client-Side Scripts LoneStar1 BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 5 March 15th, 2006 05:51 PM
Multi-level output w/ server side controls? glandgraf@gocfi.com .NET Framework 2.0 0 February 2nd, 2005 03:20 PM
ASP.NET server side controls me_shriram VS.NET 2002/2003 3 August 11th, 2003 03:55 AM





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