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
Hi All,
I have requirement where the user will upload CSV files and bind the arrays to a Oracle stored procedure for validation and insertion into the database. how do we do it using web ui components(<ISWebTextEditor:WebFileUploader> and </ISWebTextEditoyr:WebFileUploader>)since i am new to this webui components can any one of you please explain me in details.....
Regards,
Anjali
It is correct that when you drag and drop WebFileUploader control into your page form, the appearance of the WebFileUploader component will be exactly as the screenshot shown in the attachment of your previous post. It is the default style user interface of WebFileUploader.
You will need to customize WebFileUploader only by setting some properties to a value or just enable some feature in order to have WebFileUploader to meet your specific requirement.
You can choose whether to use panel user interface or attachment bar user interface layout as the user interface of WebFileUploader. Next, you can also choose the upload mode to automatic or batch upload mode. File validation also support file validation. You can validate file by type, redundant file, size, and custom. Progress bar that shows the uploading progress in real-time is one of the key features in WebFileUploader. Simply choose your desired progress bar of WebFileUploader that will looks nice and fit into your web application. You can show progress information by completion percentage, by size or by time remaining. WebFileUploader allows you to completely customize its appearance and textual settings.
For more detail information, kindly check the WebTextEditorSamples project or WebFileUploader live sample at following link, http://live.intersoftpt.com/Default.aspx?p=WebTextEditor.
Hope this helps.
Intersoft WebFileUploader is a memory-efficient ASP.NET file uploading component that supports asynchronous multiple files upload without page refresh. It uploads files into a destination folder.
WebFileUploader suits with your requirement until the uploading process of your specific scenario. You will need to handle the rest of the process, to bind the arrays to Oracle stored procedure for validation and insertion into the database, since this process will not be handled by WebFileUploader.
Please let us know your response.
Hi Yudi,
Thanks for the suggestion.... My question was not clear i am really sorry for that. i have already the Browse,upload button and validation functionalities written in ASP.net without using Webui components now my requirement is i should change it to webui components....
so do i need to change only ASPX page which as <input type="file" id="fileupload" name="fileupload" runat="server" /> to<ISWebTextEditor:WebFileUploader> or anything else need to be chnaged/added.
Practically you can replace the elements that handle the uploading process in your page with WebFileUploader.
I’m willing to advise you further but in order to do so I would need you to elaborate on your specific scenario and possibly give me a running simple sample that shows the structure of your page to be observed.
Thanks you very much for willing to advise me ....
I have attached the page functinality how to it work and below is the code which i have written in ASPX. Please let me know if any further information required.
**************ASPX File********************
<table> <tr> <td align="left" valign="middle">File to Upload</td> <td><input type="file" id="fileupload" name="fileupload" runat="server" /></td> <td><asp:Button ID="button1" runat="server" Height="20" Width="100" OnClick="Button1_Click" Text="Upload" OnClientClick="return Validate();" /> </td> </tr> </table><table><tr> <td><asp:Label runat="server" ID="lblMessage"></asp:Label></td></tr></table></fieldset> <script language="JavaScript" type="text/javascript"> function Validate() { var strFullFileName = document.getElementById('ctl00_maincontent_fileupload').value; var strFileExt; var strFile = strFullFileName.split("\\"); var strFileName = strFile[strFile.length-1]; if(strFullFileName != "") { var strFileExt = strFullFileName.split(".");
if ((strFileExt[1] != undefined) && (strFileExt[1] != "")) { strFileExt[1] = strFileExt[1].toLowerCase();
if(strFileExt[1] == "csv") { return true; } else { alert("You must select csv files only."); return false; } } else { alert("You must select csv files only."); return false; } } else { alert("Please Select the file for upload."); return false; } } </script>
************C# Coding******************
protected void Button1_Click(object sender, EventArgs e) {
string[] strArray = fileupload.PostedFile.FileName.Split('\\');
if (!Directory.Exists(Server.MapPath("UploadedFile"))) Directory.CreateDirectory(Server.MapPath("UploadedFile"));
string strFilename = Server.MapPath("UploadedFile/" + strArray[strArray.Length -1]); fileupload.PostedFile.SaveAs(strFilename); LoadFile(strFilename);
}
Anjali...
Good Morning Yudi,
Please let me know if any information required....
Sorry for the delay response.
I have checked your page structure and I think the html input (type=”file”) and the asp.net button object can be replaced by WebFileUploader. I haven’t chechked whether WebFileUploader will need further modification or not since I couldn’t have your sent sample run in my local test.
Should you need any further assistance regarding this, please let us know.
Thanks Yudi for the response.
I have other question with this webFileUploader is this only used to load the images files? because once i drag and drop this <ISWebTextEditor:WebFileUploader> component it automatically says upload an image file. i have attached the screen shot for reference.
code in ASPX
<ISWebTextEditor:WebFileUploader ID="fileupload" runat="server" FilesCount="1" FileTypes="*.csv"> </ISWebTextEditor:WebFileUploader>
Thanks yudi for the suggestion will try hope it will work...
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