I haver recently downloaded uploadify 3.1 for upload multiple files.using .ashx file. i'm getting problem to get server side values or server controls in asp.net for FormData. i used for asp.net controls<%=TextBox.ClientID%> and for serverside
values <%=MyString%> and when look in view source it showing like "MainContent_TextBox" i searched lot of forums but no proper answer. i hope some one will help me here.
Appreciate for your help
Below is my code (using masterpage)
Regards,
Yasin,
Copy & Paste will save the time ,not the Knowledge
smd_yasin
Member
18 Points
67 Posts
how to get asp.net controls in jquery uploadify form data
Jun 14, 2012 07:03 AM|LINK
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server"> <script type="text/javascript"> $(function () { $('#<%=FileUpload1.ClientID%>').uploadify({ 'method': 'post', 'formData': { 'to':'<%=txtEmail.ClientID%>','Messege': 'sample static test'}, 'requeueErrors': true, 'auto': false, 'swf': '../Scripts/FileUpload/uploadify.swf', 'uploader': '../test.ashx', 'onCancel': function (file) { alert('The file ' + file.name + ' was cancelled.'); } }); }); </script> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <asp:FileUpload ID="FileUpload1" runat="server" /><asp:TextBox ID="txtEmail" runat="server"></asp:TextBox> </asp:Content>Hello Team,
I haver recently downloaded uploadify 3.1 for upload multiple files.using .ashx file. i'm getting problem to get server side values or server controls in asp.net for FormData. i used for asp.net controls<%=TextBox.ClientID%> and for serverside values <%=MyString%> and when look in view source it showing like "MainContent_TextBox" i searched lot of forums but no proper answer. i hope some one will help me here.
Appreciate for your help
Below is my code (using masterpage)
Yasin,
Copy & Paste will save the time ,not the Knowledge
Mudasir.Khan
All-Star
15346 Points
3142 Posts
Re: how to get asp.net controls in jquery uploadify form data
Jun 14, 2012 07:58 AM|LINK
please check this
silverlightfileupld.codeplex.com
smd_yasin
Member
18 Points
67 Posts
Re: how to get asp.net controls in jquery uploadify form data
Jun 14, 2012 09:24 AM|LINK
but to run this silverlight i need to take host silverlight support right?which is expensive or with out silverlight hosting it will work?
Yasin,
Copy & Paste will save the time ,not the Knowledge