May 12, 2016, 3:12 PM
DirectEvents.Click.Url parameters
Thank you in advance.
We have been successful with using Ext.Net for file uploading through setting parameters for controls via markup, however, when attempting the same via dynamic controls in C#, there has been little control. Please see below:
Any thoughts on potential resolution?
Thanks again
The following works:
We have been successful with using Ext.Net for file uploading through setting parameters for controls via markup, however, when attempting the same via dynamic controls in C#, there has been little control. Please see below:
Any thoughts on potential resolution?
Thanks again
The following works:
<ext:FileUploadField ID="FileUploadField1" runat="server" />
<ext:Button runat="server" Text="Upload">
<DirectEvents> <Click Url="UploadHandler.ashx" /> </DirectEvents>
</ext:Button>
The following does not yield the same results: Ext.Net.FileUploadField fup = new Ext.Net.FileUploadField();
fup.ID = "FileUploadField1";
fup.Width = 400;
fup.FieldLabel = "Attachment(s)";
f_upload.Add(fup);
Ext.Net.Button btnup = new Ext.Net.Button();
btnup.ID = "btn";
btnup.DirectEvents.Click.CleanRequest = true ;
btnup.DirectEvents.Click.Method = HttpMethod.POST ;
btnup.DirectEvents.Click.Url = "UploadHandler.ashx" ; // this fails
btnup.DirectEvents.Click.Confirmation.ConfirmRequest = true; // this does produce confirmation request
btnup.Text = "Upload";
btnup.Icon = Ext.Net.Icon.Disk;
f_upload.Add(btnup);
Last edited by knknj; May 12, 2016 at 3:15 PM.