User Profile & Activity

Anjali C Member
Posted: October 19, 2010 12:00 PM

Hi Handy,

 

Thanks for the detailed mail.. but sorry i guess i confused you with my question

i use components for "WebUI Studio for ASP.NET " when sending files for my

client do i need to send the even the bin folder along with the files(which has webui components) or only the files without the bin folder

i have attached the screen shot of the bin folder.

 

Posted: August 25, 2010 12:12 PM

Thanks handy got the solution.....

Posted: August 13, 2010 7:15 AM

Thanks yudi for the suggestion will try hope it will work...

Regards,

Anjali

Posted: August 11, 2010 6:22 AM

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>

Posted: August 5, 2010 8:57 AM

Good Morning Yudi,

 

Please let me know if any information required....

 

Regards,

Anjali

Posted: August 4, 2010 3:59 AM

Hi Yudi,

 

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

     }

 

 

Regards,

Anjali...

Posted: August 3, 2010 7:49 AM

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.

 

Regards,

Anjali

Thanks Handy ....

Hi Handly,

 

Thanks for your suggestion. Its working fine after registering the SmartWebResource .But  i have question where do we find the Property EnableSmartWebResources i am new to this application please.

Regards,

Anjali

 

All times are GMT -5. The time now is 8:49 PM.
Previous Next