c# - FileUpload inside jquery dialog, hasfile false -


I have a jquery UI dialog on my page, there is nothing more than an ASP file UPolod control:

  & asp: fileUpload runat = "server" id = "foo attachment" />  

1 button in the dialog is "OK". Those buttons just close the dialog.

  $ ("# attachment-dialog") Dialog ({height: 300, width: 400, modal: true, resizable: false, autoOpen: false, button: {"OK": function () {$ (this) .dialog ("closed")}}}}) ;  

Pressing the Save button on my page. The method which has an ASP.NET button is called SaveAttachement.

The problem is that fuAttachment.HasFile (fileupload control) is false back. If I move the fileupload control out of the jQuery UI dialog HasFile = true

But should be inside the control dialog. There is no updatepanel within the specific page

The issue is happening because the dialog is out of the form

  $ ("#nectment-dialog"). Dialog ({appendTo: " 

form", height: 300, width: 400, Model: true, resizable: wrong, auto open: wrong, button: {"OK Is ": function () {$ (this) .dialog (" close ");}}});


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Algorithm negotiation fail SSH in Jenkins -

java - Messages from .properties file do not display UTF-8 characters -