User Profile & Activity

roi ukashi Member
Page
of 4

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
}

 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?

Any suggestions?
Posted: January 8, 2014 8:13 AM

Hello Hans, 


That would require me to purchase the latest version. 

Are you sure this issue has been fixed in latest versions?


Thanks



Posted: January 7, 2014 2:35 AM

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...)





Posted: January 6, 2014 3:59 AM

Hans Hi, 


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

Posted: December 31, 2013 2:30 AM

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.

 
Thanks.
Posted: December 11, 2013 2:59 AM

Bernard Hi, 

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, 



Posted: December 9, 2013 9:23 AM

Bernard Hi, 

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.

  

Posted: December 8, 2013 9:19 AM
Bernard Hi, Session Client side checks are not optional for me, since it's not secured. Furthermore, that would require me to client side check each and every onclick made.
All times are GMT -5. The time now is 7:02 PM.
Previous Next