iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Handy Hi,
In the above thread I wrote file version and added links for: original file + uploaded file
"(using ISNet.WebUI.WebTextEditor 1.0.1000.135"
This is my code (pretty simple):
<ISWebTextEditor:WebFileUploader ID="WFU" runat="server" PostbackMode="FlyPostBack" StyleSettings-ButtonStyle-Normal-Width="80px" StyleSettings-ButtonStyle-Active-Width="80px" StyleSettings-ButtonStyle-Over-Width="80px" StyleSettings-ButtonStyle-Normal-Height="23px" StyleSettings-ButtonStyle-Active-Height="23px" StyleSettings-ButtonStyle-Over-Height="23px" AllowSimultaneousUpload="false" AllowAdd="false" AllowRemove="false" AllowCancel="false" UploadPath="~/UPLD/" InitialFilesCount="1" Width="300px" FileTypes="*.xls" OnAfterUpload="WFU_OnAfterUpload" OnErrorUpload="WFU_OnErrorUpload"> <FlyPostBackSettings PostControlState="true" PostHiddenFields="true" PostInputControls="true" PostViewState="true" /> <ProgressInformation ShowProgressArea="False" ShowProgressBarForTotal="True" ></ProgressInformation> <ClientSideEvents OnAfterUpload="GetNotification" OnError="WFU_OnError" OnFileAdded="WFU_OnFileAdded" OnBeforeUpload="WFU_OnBeforeUpload(false)" /> </ISWebTextEditor:WebFileUploader> protected void WFU_OnAfterUpload(object sender, ISNet.WebUI.WebTextEditor.WebFileUploaderFileEventArgs e) { //This is where I check the uploaded file in ~/UPLD folder }
PostbackMode="FlyPostBack" StyleSettings-ButtonStyle-Normal-Width="80px" StyleSettings-ButtonStyle-Active-Width="80px" StyleSettings-ButtonStyle-Over-Width="80px" StyleSettings-ButtonStyle-Normal-Height="23px" StyleSettings-ButtonStyle-Active-Height="23px" StyleSettings-ButtonStyle-Over-Height="23px" AllowSimultaneousUpload="false" AllowAdd="false" AllowRemove="false" AllowCancel="false" UploadPath="~/UPLD/" InitialFilesCount="1" Width="300px" FileTypes="*.xls" OnAfterUpload="WFU_OnAfterUpload" OnErrorUpload="WFU_OnErrorUpload"> <FlyPostBackSettings PostControlState="true" PostHiddenFields="true" PostInputControls="true" PostViewState="true" /> <ProgressInformation ShowProgressArea="False" ShowProgressBarForTotal="True" ></ProgressInformation> <ClientSideEvents OnAfterUpload="GetNotification" OnError="WFU_OnError" OnFileAdded="WFU_OnFileAdded" OnBeforeUpload="WFU_OnBeforeUpload(false)" /> </ISWebTextEditor:WebFileUploader> protected void WFU_OnAfterUpload(object sender, ISNet.WebUI.WebTextEditor.WebFileUploaderFileEventArgs e) { //This is where I check the uploaded file in ~/UPLD folder }
There are no file manipulations at my end. As soon as the file is uploaded to ~/UPLD folder, it seems to be damaged.
Please take a look at the files binary footers under notepad.
Does WebTextEditor add anything to the uploaded file?
Hello Hans,
That would require me to purchase the latest version.
Are you sure this issue has been fixed in latest versions?
Thanks
Hans Hi,
Unfortunately, the issue still persists even while using your code sample.
Original File: 28K:
https://www.mediafire.com/?1klg9dha00x0u9g
Uploaded file (using ISNet.WebUI.WebTextEditor 1.0.1000.135): 28.04K:
https://www.mediafire.com/?aldjxgzq03s19af
There is a binary difference as you can see (hopefully mediafire does not change the binary content on their upload procedure...)
After some investigation, using your code and mine, I found the issue to occour in:
Chrome 31.0.1650.63 and
Firefox: 25.0.1
Internet explorer 10 seems to work fine.
I'm using WebInput.NET 4.0.7200.18 & WebUI.NET 3.0.5000.768
Bernard Hi,
For some reason the GetWindowDivElement() is null when OnCreated fires.
I had to use this call dlgBox.Window.GetWindowDivElement().onmouseup = function () { CheckLocation(); };
only after .ShowDialog();
Anyhow, that did the trick.
Fantastic! Works like charm!
Though I think that should have been done automatically, just by calling ShowDialog();
BTW, where can I find full client side API's for all controls?
Regards,
For some reason I am not able to use the link you have sent me.
Do you happen to know of a way to dynamically OVERRIDE the "OnClicked" event of each WebButton control? For example, I can use this function to override each OnLoad event of each page:
protected override void OnLoad(EventArgs e){
base.OnLoad(e);}
Overriding the "OnClicked" event could be very helpful.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname