Rank: Member
Groups: Administration
Joined: 11/5/2007(UTC) Posts: 4
|
Hi I need to set the Filemask property of Imageuploader at Runtime. Any suggestion please. Code:iu.addParam("FileMask", "*.jpeg;*.jpg;*.jpe;*.doc;*.pdf");
Thanks VJ Edited by user Monday, February 25, 2008 12:55:56 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Administration
Joined: 7/26/2006(UTC) Posts: 203
|
Hello, Please see FileMask property reference (Get/Set Value in Runtime section). Don't forget to call Refresh method after assigning this property. Code:getImageUploader("ImageUploaderID").setFileMask(value);
getImageUploader("ImageUploaderID").Refresh();
Edited by user Monday, February 25, 2008 1:00:43 PM(UTC)
| Reason: Not specified |
Best regards, George Ulyanov
|
|
|
|
Rank: Member
Groups: Administration
Joined: 11/5/2007(UTC) Posts: 4
|
Hi when I tried to set FileMask at runtime I got this error. "Microsoft JScript runtime error: Object doesn't support this property or method" I call this below function from the PageLoad. Code:<script>
function ImageUploader_FileMask(value)
{
getImageUploader('ImageUploader1').setFileMask(value);
getImageUploader('ImageUploader1').Refresh();
}
</script>
Please correct me if I am wrong. Thanks VJ Edited by user Monday, February 25, 2008 1:01:45 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Administration
Joined: 7/26/2006(UTC) Posts: 203
|
Hello, At which exact line do you receive this error? Edited by user Monday, February 25, 2008 1:01:28 PM(UTC)
| Reason: Not specified |
Best regards, George Ulyanov
|
|
|
|
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.