Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
91 views

error in ScriptResource.axd
----------------------------
this._originalText = "juan ( 1 (1)"

var _64=new RegExp(this._originalText,"g"); --> this line error (*1)
var _65=this._originalTextHtml.replace(_64,_62.value);

the error description:

(*1)
unterminated parenthetical
[Break on this error] var _64=new RegExp(this._originalText,"g");

thank you...

Juan
Top achievements
Rank 1
 asked on 29 Mar 2009
1 answer
84 views
Usually I use the the same skin throughout an application.
Is it possible to set the default site skin for all radcontrols somewhere (web.config), and somehow decide on the individual control if it should be skinned or not? (something like EnableSki=true)
 
Morten
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 29 Mar 2009
1 answer
117 views
When I upload a file the uploading part is shown perfectly in the progress control but some files require a certain amount of preliminary processing (after the upload) before our custom progress section kicks off which should indicate progress on the progress control.

Everything works fine unless the preliminary processing takes a long time. In this case when the custom progress begins nothing is updated on the progress control on the web page even though I can see in the code the percentage and other values are being set to new values.

I have also seen it stop updating after working well for some time. This only seems to happen with files that require a lot of processing and it usually eventually does start updating again (i.e. gets to 20% and then sticks for ages and then suddenly starts updating again so to the user it suddenly looks like it jumps to say 60%).

Any ideas why this is happening?

Cheers
ADe
ADe
Top achievements
Rank 1
 answered on 29 Mar 2009
5 answers
224 views
What is the best way to insert via codebehind a column with a checkbox and two radiobuttons into a grid?

with GridTemplateColumn and GridTemplateColumn?

Christian
Christian
Top achievements
Rank 1
 answered on 29 Mar 2009
8 answers
280 views
I am using version 2008.3.1105.20.  When I place a FormDecorator on my page, the resulting HTML is not valid XHTML 1.0 Transitional, according to validator.w3.org.  Here is a simple ASPX page:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %> 
 
<!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> 
</head> 
<body> 
    <form id="form1" runat="server"
        <asp:ScriptManager ID="ScriptManager" runat="server" EnablePartialRendering="true" /> 
        <telerik:RadFormDecorator ID="formDecorator" runat="server" DecoratedControls="All" /> 
        <p> 
            <asp:RadioButtonList ID="rbList" runat="server" RepeatDirection="Vertical" RepeatLayout="Flow"
                <asp:ListItem Text="Option #1" /> 
                <asp:ListItem Text="Option #2" /> 
                <asp:ListItem Text="Option #3" /> 
            </asp:RadioButtonList> 
        </p> 
        <p> 
            <asp:Button ID="btnNext" runat="server" Text="Submit" /> 
        </p> 
    </form> 
</body> 
</html> 
 

The generated HTML is invalid because a STYLE tag can not be placed within the BODY - it must be inside the HEAD.  Any thoughts?  I would much prefer that my site be 100% valid XHTML 1.0 Transitional.







DGDev
Top achievements
Rank 2
 answered on 29 Mar 2009
4 answers
148 views
Hi,

I'm dynamically creating floating gadgets from Docks and almost everything is working as desired.  I noticed that when I click the header of a floating dock, the width of the dock grows by exactly 5px.  Strange, as I have no javascript tied to the event...  I do have some custom javascript that I'm using for saving the X,Y cooridnates of the Dock after moving from Client to Server Side, but even with that disabled, the behavior persists.  My code is as follows:

Protected Sub ReturnUserGadgets(byval user as string)  
        Dim ds As New DataSet  
        ds = odata.ReturnDS("sp_GadgetLoadByUser""@GadgetUser", user)  
 
        Dim i, cnt As Integer 
        cnt = ds.Tables("Generic").Rows.Count  
 
        For i = 0 To cnt - 1  
            Dim dock As New RadDock()  
            Dim widget As New UserControl  
            widget = LoadControl(ds.Tables("Generic").Rows(i).Item("GadgetContent"))  
 
            With dock  
                .ID = user & "_" & ds.Tables("Generic").Rows(i).Item("GadgetName")  
                .Title = ds.Tables("Generic").Rows(i).Item("GadgetName")  
                .Skin = "Office2007" 
                .UniqueName = Guid.NewGuid().ToString()  
                .Width = CInt(ds.Tables("Generic").Rows(i).Item("GadgetWidth"))  
                .Height = CInt(ds.Tables("Generic").Rows(i).Item("GadgetHeight"))  
                .Left = CInt(ds.Tables("Generic").Rows(i).Item("GadgetX"))  
                .Top = CInt(ds.Tables("Generic").Rows(i).Item("GadgetY"))  
                .Resizable = False 
                .Pinned = False 
                .DockMode = DockMode.Floating  
                '.OnClientDragEnd = "Moved"  
                '.OnClientDragStart = "OnClientDragStart"  
                .ContentContainer.Controls.Add(widget)  
            End With 
            RadDockLayout1.Controls.Add(dock)  
        Next i  
 
        ds.Clear()  
        ds.Dispose()  
        ds = Nothing 
    End Sub 
Kurt
Top achievements
Rank 1
 answered on 29 Mar 2009
2 answers
316 views
Hi,
 
       This is my first post in telerik forums. Hope i get a quick response. I have downloaded the exe file of rad controls from free trails section and installed them in my pc. I have a dnn website and i have used a tab strip control in one of my modules.But when i am adding a module to my page i get the following error .
The control with ID 'RadTabStrip1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
 RadStrip1 is my tab strip.

If i add a asp:scriptmanager in aspx page its throwing an error multiple references are found for script manager in system.web.ui. I am also attaching the code part.

<%

@ Control Language="vb" AutoEventWireup="false" Explicit="True" Inherits="XWD.Modules.XWD_DNN_CompetencyManager.Competency" CodeFile="Competency.ascx.vb" %>

<%

@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke" %>

<%

@ Register Src="~/controls/LabelControl.ascx" TagName="Label" TagPrefix="dnn" %>

<%

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 

<

table width="" cellpadding="0" cellspacing="0">

 

<tr valign="top">

 

<td class="TabArea" style="width:578px;height:30px" >

 

</td>

 

</tr>

</

table>

 

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Align="Justify"

MultiPageID="RadMultiPage1" SelectedIndex="0" Width="650px"

Skin="Telerik">

 

<Tabs>

 

<telerik:RadTab id="RadTab1" runat="server" Text="Competencies" Font-Size="Smaller">

 

</telerik:RadTab>

 

<telerik:RadTab runat="server" Text="Categories" Font-Size="Smaller"

Selected="True">

 

</telerik:RadTab>

 

<telerik:RadTab runat="server" Text="Skill Types" Font-Size="Smaller">

 

</telerik:RadTab>

 

<telerik:RadTab runat="server" Text="Experiences" Font-Size="Smaller">

</telerik:RadTab>

 

<telerik:RadTab runat="server" Text="Statuses" Font-Size="Smaller">

 

</telerik:RadTab>

 

<telerik:RadTab runat="server" Text="Options" Font-Size="Smaller">

 

</telerik:RadTab>

 

</Tabs>

 

</telerik:RadTabStrip>



vb code file

Imports

DotNetNuke

Imports

DotNetNuke.Common

Imports

DotNetNuke.Entities.Modules

Imports

DotNetNuke.Security.Roles

Imports

DotNetNuke.Security.PortalSecurity

Imports

System.Collections.Generic

Imports

System.Web.UI

Imports

System.Web.UI.Page

Imports

DotNetNuke.Services.Localization

Imports

DotNetNuke.Services.FileSystem

Imports

DotNetNuke.UI.Skins.Controls.ModuleMessage

Imports

DotNetNuke.UI.Utilities

Imports

DotNetNuke.UI.WebControls

Imports

DotNetNuke.Security.Permissions

Imports

System.IO

Imports

ICSharpCode.SharpZipLib.Zip

Imports

Telerik.Web.UI.RadGrid

Namespace

XWD.Modules.XWD_DNN_CompetencyManager

Partial Class Competency

Inherits DotNetNuke.Entities.Modules.PortalModuleBase

Dim ExperienceId As Integer = -1

Public Const SETTING_ADD_ROLES As String = "XAddRoles"

Public Const SETTING_VIEW_ROLES As String = "XViewRoles"

Dim Rolecount, j, ActionIdscount, ActionIds As Integer

Dim StatusActionIds As String

Public showroles, X, parameter As String

Dim TabCompetencyId, TabCategoryId, TabSkillTypeId, TabExperienceId, TabStatusId, TabOptionsId As Integer

#Region

" Web Form Designer Generated Code "

'This call is required by the Web Form Designer.

<System.Diagnostics.DebuggerStepThrough()>

Private Sub InitializeComponent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init

'CODEGEN: This method call is required by the Web Form Designer

'Do not modify it using the code editor.

InitializeComponent()

End Sub

#End

Region

Protected Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Try

If DotNetNuke.Framework.AJAX.IsInstalled Then

DotNetNuke.Framework.AJAX.RegisterScriptManager()

DotNetNuke.Framework.AJAX.RegisterPostBackControl(

Me.categorygridexport)

DotNetNuke.Framework.AJAX.RegisterPostBackControl(

Me.skilltypeexport)

DotNetNuke.Framework.AJAX.RegisterPostBackControl(

Me.experienceexport)

DotNetNuke.Framework.AJAX.RegisterPostBackControl(

Me.statusexport)

DotNetNuke.Framework.AJAX.RegisterPostBackControl(

Me.competencygridexport)

End If


etc ....


I am using vs 2008 and my os is xp.
 Hope you can solve my problem
Tee Bee
Top achievements
Rank 1
 answered on 28 Mar 2009
2 answers
309 views
Hi

I have unchecked the 'enable client side row selection' check box,
 but still if I click a row in the grid, it changes colour the same as if row selection is enabled.
How can I stop this effect?

Skin is 'default'

Thanks

Clive
antoniodlp
Top achievements
Rank 2
 answered on 28 Mar 2009
1 answer
117 views
Hello, i am trying to accomplish simple task by hiding a RadDock on PageLoad based on some logic.
I simply set radDock.visible=false
It does actually hides the DOCK but than when page continues to load i get this generic JS error

 
Microsoft JScript runtime error: 'undefined' is null or not an object  
 
pointing to this line
Sys.UI.VisibilityMode.registerEnum("Sys.UI.VisibilityMode");Sys.UI.Control=function(a){Sys.UI.Control.initializeBase(this);this._element=a;a.control=this

it's not the content inside of the dock, as i tried with no content, or simple one text line. Still same result.
I get an error and the whole DockLayout looses all of it's functionality, ie Drag&Drop, Expand and Colapse.
I tried Hiding code in different events (page_load, RadDockLayout1_Load, RadDockLayout1_LoadDockLayout,  RadDockLayout1_PreRender) it makes no difference.

This used to work in NoN Ajax.net version of doc and in 2008 Q1 version of the controls.
Please advise.

Denny
Top achievements
Rank 1
 answered on 28 Mar 2009
0 answers
219 views
Dear All

         i Used the code for the Image Uploader Functionality. In this functionality to have include the asp.net Controls and some Java Script function. In my requirement when i click the button that the image uploader panel displayed and already i told u know In this panel to have asp.net controls and java script functionality. When i click this button that time asp.net controls part is only showing. Bt not showing java script part. Let me know how can i solve this problem. Here i attached my coding. Pls. Give me a solution at earliest.

<asp:Content ID="AddAreaContent" runat="server" contentplaceholderid="contentMaster">

<script language="javascript" type="text/javascript" >

    function ClearValues() {        
        $find("<%= cmbAddAreaParent.ClientID %>").clearSelection();
        $find("<%= txtAddArea.ClientID %>").clear();
     
        $find("<%= txtAddAreaTrans.ClientID %>").clear();
        $find("<%= txtAddAreaLocal.ClientID %>").clear();        
        $get("<%= chkAddAreaActive.ClientID %>").checked = false;       
    }   
 </script>
 <link href="style.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="iuembed.js"></script>
<script type="text/javascript">
    //<![CDATA[    
    var bitBucket = 0;
    var desktop = 1;
    var myComputer = 2;
    var myDocuments = 3;
    var myMusic = 4;
    var myPictures = 5;
    var myVideo = 6;
    var network = 7;

    function changeView(view) {
        getImageUploader("ImageUploader1").setFolderView(view);
    }

    //Check if appropriate special folder (My Documents, Desktop, etc) exists.
    //If some of these folder is missing, hide appropriate button.
    function checkButton(name, folderId) {
        if (getImageUploader("ImageUploader1").CanGoToFolder(folderId)) {
            document.getElementById(name + "Holder").style.display = "block";
        }
    }

    //window.onload = function(){
    function FullPageLoad() {
        checkButton("Desktop", desktop);
        checkButton("MyDocuments", myDocuments);
        checkButton("MyComputer", myComputer);
        checkButton("MyPictures", myPictures);
        checkButton("MyVideo", myVideo);
        checkButton("Network", network);
    }
    //]]>
    </script>
    
        <div id="addareapnl">
            <asp:Panel ID="pnlAddArea" runat="server" GroupingText="<%$ Resources:AdminResource,pnladdarea %>">
                <asp:Label ID="lblAreaExists" runat="server" CssClass="requiredfieldColor"></asp:Label>                            
                <div class="parentarea">                   
                        <asp:Label ID="lblAddAreaParent" runat="server" Text="<%$ Resources:AdminResource,lblparentarea%>" ToolTip="<%$ Resources:AdminResource,ttparentarea%>"></asp:Label>                    
                </div>
                
                  <!-- Destination-->
                 <div class="parentareacmb">
                      <telerik:RadAjaxPanel ID="AreaAjaxpanel" runat="server">
                          <telerik:RadComboBox ID="cmbAddAreaParent"  AutoPostBack="true" runat="server" width="150px" Font-Size="Small">                                                                               
                          <CollapseAnimation Duration="200" Type="OutQuint" />                          
                          </telerik:RadComboBox>                                                      
                      </telerik:RadAjaxPanel>                        
                 </div>                         
                                             
                <div class="areaname">
                    <asp:Label ID="lblAreaName" runat="server" Text="<%$ Resources:AdminResource,lblareaname %>" ToolTip="<%$ Resources:AdminResource,ttareaname %>" CssClass="requiredfieldColor"></asp:Label>
                    <telerik:RadTextBox ID="txtAddArea" runat="server" width="150px" TabIndex="0" MaxLength="50">
                    </telerik:RadTextBox>                                 
                </div>
                <div class="areanamerequired">
                    <jet:PropertyProxyValidator ID="valtxtAddArea" runat="server" SourceTypeName=" Com.JetSoft.JetSoftFramework.Property.AreaData" ControlToValidate="txtAddArea" PropertyName="Name"> </jet:PropertyProxyValidator>
                </div>
             
                
                <div class="map">
                    <asp:Label ID="lblAddAreaMap" runat="server" Text="<%$ Resources:AdminResource,lblmap %>" ToolTip="<%$ Resources:AdminResource,ttmap%>"></asp:Label>
                  
                </div>
                <!--
                <div class="pictureslbl">
                      <asp:Label ID="Label1" runat="server" Text="<%$ Resources:AdminResource,lblpictures %>" ToolTip="<%$ Resources:AdminResource,ttpictures%>"></asp:Label>
                </div>
                
                <div class="imageset1">
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/tempareaimg1.jpg" Height="100px" Width="100px" />
                    <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/tempareaimg2.jpg" Height="100px" Width="100px"  />
                    <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/tempareaimg1.jpg" Height="100px" Width="100px"  />
                </div>
                 
                <div class="imageset2">
                    <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/tempareaimg2.jpg" Height="100px" Width="100px" />
                    <asp:Image ID="Image5" runat="server" ImageUrl="~/Images/tempareaimg1.jpg" Height="100px" Width="100px"  />
                    <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/tempareaimg2.jpg" Height="100px" Width="100px" />                        
               </div>                      
               -->                  
                
                <div class="active">
                    <asp:Button ID="BtnImagesPnl" Text="Click" runat="server"
                            onclick="BtnImagesPnl_Click" />
                </div>

                <div class="active" id="Whole">
                <asp:Panel id="pnlUploadImages"  Visible="false" runat="server">
                
                <table cellpadding="0" cellspacing="3" border="0">
                <tr>
                <td align="right">
                    Look in:</td>
                <td>
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                <td>
                <telerik:RadAjaxPanel ID="pnl" runat="server">
                <telerik:RadScriptBlock ID="radScript1" runat="server">
                <script type="text/javascript">
                    //<![CDATA[
                    //Create JavaScript object that will embed ShellComboBox to the page.z
                    var sc = new ShellComboBoxWriter("ShellComboBox1", 420, 24);

                    //For ActiveX control full path to CAB file (including file name) should be specified.
                    sc.activeXControlCodeBase = "../ImageUploader5.cab";
                    sc.activeXControlVersion = "5,7,24,0";

                    //For Java applet only path to directory with JAR files should be specified (without file name).
                    sc.javaAppletCodeBase = "../";
                    sc.javaAppletCached = true;
                    sc.javaAppletVersion = "5.7.24.0";

                    //Configure appearance.
                    sc.addParam("BackgroundColor", "#ece9d8");

                    //Link ShellComboBox with ImageUploader
                    sc.addParam("AdditionalFolderNavigator", "ImageUploader1");

                    //Tell the ShellComboBox writer object to generate all necessary HTML code to embed
                    //it to the page.
                    sc.writeHtml();
                    //]]>
                </script>
                </telerik:RadScriptBlock>
                </telerik:RadAjaxPanel>
            </td>
            <td align="right">
            <button onclick="getImageUploader('ImageUploader1').GoToPreviousFolder();" title="Back" class="SmallButton">
                <img src="Images/Back.gif" alt="Back" class="Icon" /></button>
                    <button onclick="getImageUploader('ImageUploader1').GoToParentFolder();" title="Up" class="SmallButton">
                        <img src="Images/Up.gif" alt="Up" class="Icon" /></button>
                    <button onclick="changeView(0);" title="Thumbnails" class="SmallButton">
                        <img src="Images/Thumbnails.gif" alt="Thumbnails" class="Icon" /></button>
                    <button onclick="changeView(3);" title="Details" class="SmallButton">
                        <img src="Images/Details.gif" alt="Details" class="Icon" /></button>
            </td>
            </tr>
            </table>
        </td>
        </tr>
        <tr>
            <td valign="top" class="LeftPanel">
                <table cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td class="ShortcutPanel" valign="top">
                            <table>
                                <tr id="DesktopHolder">
                                    <td>
                                        <button title="Desktop" class="IconButton" onclick="getImageUploader('ImageUploader1').GoToFolder(desktop);">
                                            <img src="Images/Desktop.gif" alt="Desktop" class="Icon" /><br />
                                            Desktop
                                        </button>
                                    </td>
                                </tr>
                                <tr id="MyComputerHolder">
                                    <td>
                                        <button title="My Computer" class="IconButton" onclick="getImageUploader('ImageUploader1').GoToFolder(myComputer);">
                                            <img src="Images/MyComputer.gif" alt="My Computer" class="Icon" /><br />
                                            My&nbsp;Computer
                                        </button>
                                    </td>
                                </tr>
                                <tr id="MyDocumentsHolder">
                                    <td>
                                        <button title="My Documents" class="IconButton" onclick="getImageUploader('ImageUploader1').GoToFolder(myDocuments);">
                                            <img src="Images/MyDocuments.gif" alt="My Documents" class="Icon" /><br />
                                            My&nbsp;Documents
                                        </button>
                                    </td>
                                </tr>
                                <tr id="MyPicturesHolder">
                                    <td>
                                        <button title="My Pictures" class="IconButton" onclick="getImageUploader('ImageUploader1').GoToFolder(myPictures);">
                                            <img src="Images/MyPictures.gif" alt="My Pictures" class="Icon" /><br />
                                            My&nbsp;Pictures
                                        </button>
                                    </td>
                                </tr>
                                <tr id="MyVideoHolder">
                                    <td>
                                        <button title="My Video" class="IconButton" onclick="getImageUploader('ImageUploader1').GoToFolder(myVideo);">
                                            <img src="Images/MyVideo.gif" alt="My Video" class="Icon" /><br />
                                            My&nbsp;Video
                                        </button>
                                    </td>
                                </tr>
                                <tr id="NetworkHolder">
                                    <td>
                                        <button title="Network" class="IconButton" onclick="getImageUploader('ImageUploader1').GoToFolder(network);">
                                            <img src="Images/Network.gif" alt="Network" class="Icon" /><br />
                                            Network
                                        </button>
                                    </td>
                                </tr>
                            </table>
                        </td>
             </tr>
             <tr>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <button title="Select All" onclick="getImageUploader('ImageUploader1').SelectAll();"
                                            class="Button">
                                            Select All</button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <button title="Upload" onclick="getImageUploader('ImageUploader1').Send();" class="Button">
                                            Upload</button>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            <td>
            <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
                <script type="text/javascript">
                    //<![CDATA[
                    //Create JavaScript object that will embed Image Uploader to the page.
                    var iu = new ImageUploaderWriter("ImageUploader1", 550, 490);

                    //For ActiveX control full path to CAB file (including file name) should be specified.
                    iu.activeXControlCodeBase = sc.activeXControlCodeBase;
                    iu.activeXControlVersion = sc.activeXControlVersion;

                    //For Java applet only path to directory with JAR files should be specified (without file name).
                    iu.javaAppletJarFileName = sc.javaAppletJarFileName;
                    iu.javaAppletCodeBase = sc.javaAppletCodeBase;
                    iu.javaAppletCached = sc.javaAppletCached;
                    iu.javaAppletVersion = sc.javaAppletVersion;

                    iu.showNonemptyResponse = "off";

                    //Configure License Keys
                    iu.addParam("LicenseKey", "71050-4E10B-00000-026F4-59F7B;72050-4E10B-00000-03E16-7B80A");

                    //Configure appearance and behaviour.
                    iu.addParam("PaneLayout", "TwoPanes");
                    iu.addParam("FolderView", "Thumbnails");
                    iu.addParam("UploadView", "Details");
                    iu.addParam("PreviewThumbnailSize", "100");
                    iu.addParam("ShowButtons", "false");
                    iu.addParam("ShowSubfolders", "true");
                    iu.addParam("ShowDescriptions", "false");
                    iu.addParam("ShowContextMenu", "false");
                    iu.addParam("ShowDebugWindow", "true");
                    iu.addParam("AllowMultipleRotate", "true");

                    //Configure colors.
                    iu.addParam("PaneBackgroundColor", "#ffffff");
                    iu.addParam("BackgroundColor", "#ffffff");
                    iu.addParam("PreviewThumbnailActiveColor", "#f8b330");
                    iu.addParam("PreviewThumbnailInactiveColor", "#eeeeee");

                    //Hide tree pane.
                    iu.addParam("TreePaneWidth", "-1");

                    //Allow upload not only files, but also entire folders.
                    iu.addParam("AllowFolderUpload", "true");

                    //Single or multiple file selection.
                    //iu.addParam("AllowMultipleSelection", "false");

                    //Link ImageUploader with ShellComboBox.
                    iu.addParam("AdditionalFolderNavigator", "ImageUploader1");

                    //Configure file mask to display images only.
                    iu.addParam("FileMask", "*.jpg;*.jpeg;*.jpe;*.gif;*.png;*.tif;*.tiff;*.psd");

                    //Configure thumbnail settings.
                    iu.addParam("UploadThumbnail1FitMode", "Fit");
                    iu.addParam("UploadThumbnail1Width", "120");
                    iu.addParam("UploadThumbnail1Height", "120");
                    iu.addParam("UploadThumbnail1JpegQuality", "60");

                    //Configure upload settings.
                    iu.addParam("Action", "upload.aspx");
                    iu.addParam("FilesPerOnePackageCount", "1");
                    iu.addParam("AutoRecoverMaxTriesCount", "10");
                    iu.addParam("AutoRecoverTimeOut", "10000");


                    //Configure URL where to redirect after upload.
                    iu.addParam("RedirectUrl", "AddArea.aspx");

                    iu.fullPageLoadListenerName = "FullPageLoad";

                    //Tell Image Uploader writer object to generate all necessary HTML code to embed
                    //Image Uploader to the page.
                    iu.writeHtml();
                    //]]>
                </script>
                </telerik:RadScriptBlock>

                </td>
                </tr>
                </table>
                </asp:Panel>
           
                </div>
                
                  <asp:DataList ID="DataList1" Width="100%" RepeatLayout="Table" RepeatDirection="Vertical"
                        RepeatColumns="4" runat="server">
                 <ItemTemplate>
                    <a href="<%# galleryPath + EncodeFileName(((XmlElement)(Container.DataItem)).GetAttribute("name")) %>"
                    target="_blank">
                    <img src="<%# galleryPath + "Thumbnails/" + EncodeFileName(((XmlElement)(Container.DataItem)).GetAttribute("name")) %>.jpg"
                    alt="<%# Server.HtmlEncode(((XmlElement)(Container.DataItem)).GetAttribute("name"))%>" />
                    </a>
                    <br />
                    <br />
                    <b>Name:</b>
                    <%# Server.HtmlEncode(((XmlElement)(Container.DataItem)).GetAttribute("name")) %>
                    <br />
                    <b>Dimensions:</b>
                    <%# Server.HtmlEncode(((XmlElement)(Container.DataItem)).GetAttribute("width")) %>
                    x
                    <%# Server.HtmlEncode(((XmlElement)(Container.DataItem)).GetAttribute("height")) %>
                </ItemTemplate>
            </asp:DataList>
        
                
                <div class="trasportation">
                    <asp:Label ID="lbltrans" runat="server" Text="<%$ Resources:AdminResource,lbltransporation %>" ToolTip="<%$ Resources:AdminResource,tttransportation%>"></asp:Label>
                </div>
                
                <div class="trasportationtxt">
                    <telerik:RadTextBox ID="txtAddAreaTrans" runat="server" TextMode="MultiLine"  
                        Rows="15" Columns="138" TabIndex="2">
                    </telerik:RadTextBox>
                </div>  
                
                <div class="localactivities">
                    <asp:Label ID="lbllocal" runat="server"  Text="<%$ Resources:AdminResource,lbllocal %>" ToolTip="<%$ Resources:AdminResource,ttlocalactivities%>"></asp:Label>
                </div>  
                         
                 <div class="localactivitiestxt">
                    <telerik:RadTextBox ID="txtAddAreaLocal" runat="server"  TextMode="MultiLine"
                         Rows="15" Columns="138" TabIndex="3">
                    </telerik:RadTextBox>
                </div>
                
                <div class="active">
                    <asp:CheckBox ID="chkAddAreaActive" runat="server" Text="<%$ Resources:AdminResource,chkactive %>" ToolTip="<%$ Resources:AdminResource,ttAreaActive %>" TabIndex="4" />
                </div>
                
                                       
                 <div class="areaaddreset">
                    <asp:Button ID="btnAddArea"  runat="server"
                         Text="<%$ Resources:AdminResource,btnareaadd %>"
                         ToolTip="<%$ Resources:AdminResource,ttadd %>" onclick="btnAddArea_Click"
                         TabIndex="5" CausesValidation="true"/>                        
                    <asp:Button ID="btnReset" runat="server"
                         Text="<%$ Resources:AdminResource, btnContactReset %>"
                         CausesValidation="false"  ToolTip="<%$ Resources:AdminResource, ttReset%>" TabIndex="6" OnClientClick="ClearValues(); return false; "  />                     
                </div>
                
                <telerik:RadAjaxManager ID="pnlImageLoad" runat="server">
                <AjaxSettings>
                 <telerik:AjaxSetting AjaxControlID="BtnImagesPnl">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="pnlUploadImages"  LoadingPanelID="aloadingpanelSearchGrid"/>
                        </UpdatedControls>
                    </telerik:AjaxSetting>       
              </AjaxSettings>
            </telerik:RadAjaxManager>
            
            <telerik:RadAjaxLoadingPanel ID="aloadingpanelSearchGrid" runat="server" Height="75px"
                                Width="75px">
                                <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page,"Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border: 0px;" />
                            </telerik:RadAjaxLoadingPanel>
     
            </asp:Panel>
        </div>                                        
</asp:Content>


Let me know How can i solve this problem

Thanks with Regards

Saravanan.M



Saravanan
Top achievements
Rank 1
 asked on 28 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?