Rank: Newbie
Groups: Member
Joined: 10/20/2009(UTC) Posts: 7
|
Hi, I am trying to copy the text of a textbox to a label in the OnFileUploaded event of the ImageUploaded but the change in the text is note reflected. Any help is appreciated. Also is there any way to validate the textbox contents either on the client or on the server side ? Below is the code: aspx: <body> <form id="form1" runat="server"> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <cc1:ImageUploader ID="ImageUploader1" runat="server" height="400" width="600" OnFileUploaded="ImageUploader1_OnFileUploaded" UploadView="Details" PaneLayout="OnePane" ActiveXControlEnabled="false" ShowDescriptions="false" ButtonSendText="Upload" AdditionalFormName="form1" > </cc1:ImageUploader> <asp:Label ID="Label1" runat="server" Text="label" ></asp:Label> </form> </body> aspx.cs: protected void Page_Load(object sender, EventArgs e) {} protected void ImageUploader1_OnFileUploaded(object sender, Aurigma.ImageUploader.FileUploadEventArgs e) { Label1.Text = TextBox1.Text; } Thanks, Pavan.
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 3/9/2008(UTC) Posts: 554
Was thanked: 1 time(s) in 1 post(s)
|
Hello Pavan, To resolve your problem you need after upload complete send from server to client TextBox1 text value. On client side use onClientAfterUpload event and here you can give to Label1.Text appropriate value. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.