Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
WebUpload not visible in ouput
posted

Hi ,

        I am using CLR 2.0 of infragistics for asp.net controls

=> when i am using webupload control it's not visible in output reaming controls are visible

below code i used for this according to documentation

attachemnt:

web.config:

web.config

<appSettings>
<add key="fileUploadPath" value="~/Uploads" />
<add key="maxFileSizeLimit" value="100000000" />
</appSettings>

for IIS6:
<system.web>
    <httpHandlers>
<add verb="GET" type="Infragistics.Web.UI.EditorControls.UploadStatusHandler"
path="IGUploadStatusHandler.ashx" />
</httpHandlers>
<httpModules>
<add name="IGUploadModule" type="Infragistics.Web.UI.EditorControls.UploadModule" />
</httpModules>
</system.web>
for iis7:
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<add name="IGUploadModule" type="Infragistics.Web.UI.EditorControls.UploadModule"
preCondition="managedHandler" />
</modules>
<handlers>
<add name="IGUploadStatusHandler" path="IGUploadStatusHandler.ashx" verb="*"
type="Infragistics.Web.UI.EditorControls.UploadStatusHandler" preCondition="integratedMode" />
</handlers>
</system.webServer>
ASp.net:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<%@ Register assembly="Infragistics2.Web.jQuery.v11.1, Version=11.1.20111.1006, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.EditorControls" tagprefix="ig" %>

<%@ Register assembly="Infragistics2.WebUI.WebDataInput.v11.1, Version=11.1.20111.1006, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.WebDataInput" tagprefix="igtxt" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
   
    <link type="text/css" href="/Styles/ig/jquery.ui.custom.css" rel="stylesheet" />
<link type="text/css" href="/Styles/base/ig.ui.min.css" rel="stylesheet" />

<script type="text/javascript" src="/Scripts/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="/Scripts/jquery-ui.min.js"></script>
<script type="text/javascript" src="/Scripts/Samples/combined/min/ig.ui.min.js"></script>





</head>
<body>
    <form id="form1" runat="server">
    <div>
   
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
      
        <ig:WebUpload ID="WebUpload1" runat="server" Mode="Single"
         AutoStartUpload="true" ProgressUrl="/WebUploadStatusHandler.ashx">
        
        </ig:WebUpload>
        <br />
       <igtxt:WebImageButton ID="WebImageButton1" runat="server" Text="Image button">
        </igtxt:WebImageButton>
  
   
    </div>
    </form>
</body>
</html>

=>after i find that that links what mentioned in documents are not exits in
"ig_ui" directory(please view the attachment for your reference)

=>So,according my style and script files i change the links as below

Updated asp.net source code:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>

<%@ Register assembly="Infragistics2.Web.jQuery.v11.1, Version=11.1.20111.1006, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.EditorControls" tagprefix="ig" %>
<%@ Register assembly="Infragistics2.WebUI.WebDataInput.v11.1, Version=11.1.20111.1006, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.WebDataInput" tagprefix="igtxt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
   
    
    <link type="text/css" href="/themes/ig/jquery.ui.custom.css" rel="stylesheet" />
<link type="text/css" href="/themes/base/ig.ui.min.css" rel="stylesheet" />

<script type="text/javascript" src="/js/ig.ui.js"></script>
<script type="text/javascript" src="/js/ig.ui.upload.js"></script>
<script type="text/javascript" src="/js/min/ig.ui.min.js"></script>
  
</head>
<body>
    <form id="form1" runat="server">
    <div style="height: 290px">
   
        <igtxt:WebImageButton ID="WebImageButton1" runat="server" Text="WebImageButton">
        </igtxt:WebImageButton>
   
        <ig:WebUpload ID="WebUpload1" runat="server"
         AutoStartUpload="true" ProgressUrl="/WebUploadStatusHandler.ashx"  >
        </ig:WebUpload>
   
    </div>
    </form>
</body>
</html>

=> but still webupload not visible in output

=> please view the attachment for to know what all are the files are listed and give corresponding style and script links