Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
azpan47  
#1 Posted : Tuesday, October 20, 2009 5:39:45 AM(UTC)
azpan47

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.


Tamila  
#2 Posted : Tuesday, October 20, 2009 8:46:41 PM(UTC)
Tamila

Rank: Advanced Member

Groups:
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.
Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
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.