Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
Hello Telerik,

I have a question regarding how to access controls inside the slidingpane.

I have a FormView with a slidingpane in it (with all the structure. Slidingzone and all of that)
I have a radiobuttonlist I would like to access in order to make one of its items hidden. Since I don't see server side events (correct me if I 'm wrong) I'm trying to use a script to find all the radiobuttons and make the first item hidden. The question is how do I get the elements in order to reach my radiobuttons? can you direct me to the right direction? 

Thanks in advance

PS
This is what I've tried without success cause it falls into a loop
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="FVInitialView" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>   

function OnClientExpanded(sender, args) {
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();
 }

<formView id="FVInitialView"....>
 <itemTemplate....>
   ....
   <telerik:RadSlidingPane ID="Radslidingpane4" Title="Page 1" runat="server" Height="550px" OnClientExpanded="OnClientExpanded">
Dobromir
Telerik team
 answered on 14 Apr 2011
2 answers
560 views
Hi I am trying to make sure that a column can not be edited but when you insert a new one the textbox is available to create a new row.  I found out how to disable the textbox that is being edited but it also disables the textbox for the insert as well and I dont want that.  Is there a way to only allow for the edit text box to be disabled and not the insert text box?
Jeremy
Top achievements
Rank 1
 answered on 14 Apr 2011
5 answers
133 views
Hi,

I ,m new bee for telerik charting. i want to display stacked chart from xml/database. i have attached chart pic to design by using xml file. Can you guys suggest how to implement the thing.

XML File Data:

<?xml version="1.0" encoding="utf-8" ?>
<LaborHours>
  <LaborHour>
    <EmployeeID>100018</EmployeeID>
    <EmployeeName>Andrew Anderson</EmployeeName>
    <InTime>5/24/10 7:57 AM</InTime>
    <OutTime></OutTime>
    <OnClock>3:48</OnClock>
    <WTDTotal>29.30</WTDTotal>
    <WTDOvertime>1.50</WTDOvertime>
    <Total>42.68</Total>
    <Overtime>4.17</Overtime>
  </LaborHour>
  <LaborHour>
    <EmployeeID>100004</EmployeeID>
    <EmployeeName>Bob Barley</EmployeeName>
    <InTime>5/24/10 7:59 AM</InTime>
    <OutTime></OutTime>
    <OnClock>3:46</OnClock>
    <WTDTotal>42.60</WTDTotal>
    <WTDOvertime>4.60</WTDOvertime>
    <Total>46.50</Total>
    <Overtime>8.83</Overtime>
  </LaborHour>
  <LaborHour>
    <EmployeeID>100006</EmployeeID>
    <EmployeeName>Cathey Cantrell</EmployeeName>
    <InTime>5/24/10 7:57 AM</InTime>
    <OutTime></OutTime>
    <OnClock>3:46</OnClock>
    <WTDTotal>27.87</WTDTotal>
    <WTDOvertime>0.00</WTDOvertime>
    <Total>32.10</Total>
    <Overtime>0.00</Overtime>
  </LaborHour>
  <LaborHour>
    <EmployeeID>100009</EmployeeID>
    <EmployeeName>David Dyson</EmployeeName>
    <InTime>5/24/10 11:59 AM</InTime>
    <OutTime>5/24/10 8:02 AM</OutTime>
    <OnClock></OnClock>
    <WTDTotal>31.50</WTDTotal>
    <WTDOvertime>0.00</WTDOvertime>
    <Total>39.75</Total>
    <Overtime>0.00</Overtime>
  </LaborHour>
  <LaborHour>
    <EmployeeID>100015</EmployeeID>
    <EmployeeName>Eddie Edwords</EmployeeName>
    <InTime>5/24/10 12:01 AM</InTime>
    <OutTime>5/24/10 8:02 AM</OutTime>
    <OnClock></OnClock>
    <WTDTotal>31.50</WTDTotal>
    <WTDOvertime>0.00</WTDOvertime>
    <Total>39.50</Total>
    <Overtime>0.00</Overtime>
  </LaborHour>
  <LaborHour>
    <EmployeeID>100024</EmployeeID>
    <EmployeeName>Fiona Finegate</EmployeeName>
    <InTime>5/23/10 3:58 PM</InTime>
    <OutTime>5/24/10 12:01 AM</OutTime>
    <OnClock></OnClock>
    <WTDTotal>32.00</WTDTotal>
    <WTDOvertime>0.00</WTDOvertime>
    <Total>32.00</Total>
    <Overtime>0.00</Overtime>
  </LaborHour>
  <LaborHour>
    <EmployeeID>100061</EmployeeID>
    <EmployeeName>George Gilespy</EmployeeName>
    <InTime>5/23/10 4:00 PM</InTime>
    <OutTime>5/24/10 12:02 AM</OutTime>
    <OnClock></OnClock>
    <WTDTotal>41.50</WTDTotal>
    <WTDOvertime>1.50</WTDOvertime>
    <Total>41.50</Total>
    <Overtime>1.50</Overtime>
  </LaborHour>
  <LaborHour>
    <EmployeeID>100088</EmployeeID>
    <EmployeeName>Haana Henderson</EmployeeName>
    <InTime>5/23/10 4:01 PM</InTime>
    <OutTime>5/24/10 12:01 AM</OutTime>
    <OnClock></OnClock>
    <WTDTotal>32.40</WTDTotal>
    <WTDOvertime>0.00</WTDOvertime>
    <Total>40.00</Total>
    <Overtime>0.00</Overtime>
  </LaborHour>
</LaborHours>




Thanks
Ravi
Missing User
 answered on 14 Apr 2011
3 answers
144 views

Hello programmers, i hope now you can help me.
I have a grid that each item has its table of detail, yet each detail table is different, because they may have a different number of columns.
I modify the structure from the code, however, when I expand the detail table shows the previous structure and expand a second time, shows the correct structure.
Is there any way to display the existing economic structure right the first time?

Annex code and images.

-- ASPX ========================================================================

<Telerik:RadGrid ID="radGriOrdComDetalles" runat="server" Width="980" AutoGenerateColumns="false"
                             AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false">
                                <MasterTableView DataKeyNames="Id, prodSkucode" CommandItemDisplay="None"
                                 EditMode="InPlace" NoDetailRecordsText =" " NoMasterRecordsText="">
                                    <Columns>
                                        <Telerik:GridBoundColumn UniqueName="colIdOrdCompra" HeaderText="Id orden de compra" DataField="Id" HeaderStyle-Width="130px"/>
                                        <Telerik:GridBoundColumn UniqueName="colSku" HeaderText="SKU" DataField="prodSkucode" HeaderStyle-Width="160px"/>
                                        <Telerik:GridBoundColumn UniqueName="colDescripcion" HeaderText="Descripcion" DataField="prodDescripcion" HeaderStyle-Width="300px"/>                               
                                        <Telerik:GridBoundColumn UniqueName="colDepartamento" HeaderText="Departamento" DataField="depaDescripcion" HeaderStyle-Width="180px"/>                     
                                    </Columns>
                                    <DetailTables>
                                        <Telerik:GridTableView Name="gridProductoDetalles" DataKeyNames="Id, prodSkucode" EditMode="InPlace" NoDetailRecordsText="" NoMasterRecordsText=""
                                          GridLines="Vertical">
                                        </Telerik:GridTableView>
                                    </DetailTables>
                                </MasterTableView>
                            </Telerik:RadGrid>

-- CODE BEHIND =======================================================================
void radGriOrdComDetalles_DetailTableDataBind(object sender, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
        {
            try
            {
                if (e.DetailTableView.Name == "gridProductoDetalles")
                {
                    Telerik.Web.UI.GridDataItem parentItem = e.DetailTableView.ParentItem;
                    strSkucode = parentItem.Cells[3].Text;
                    strIdOrdCompra = parentItem.Cells[2].Text;
  
                    DataTable datTabDatosDetalle = new DataTable();
                    if (ViewState["OrdCompraProdDetallesSub" + strIdOrdCompra + strSkucode] == null)
                        datTabDatosDetalle = CCSMovimientoProductos.BuscarProdDetOrdenCompra_CEDIS(strIdOrdCompra, strSkucode).Tables[0];
                    else
                        datTabDatosDetalle = (DataTable)ViewState["OrdCompraProdDetallesSub" + strIdOrdCompra + strSkucode];
                        //e.DetailTableView.DataSource = datTabDatosDetalle;
  
  
  
                    // SE AGREGAN LAS COLUMNAS CORRESPONDIENTES.
  
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].Columns.Clear();
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].Rebind();
  
                    Telerik.Web.UI.GridBoundColumn campo;
                    foreach (DataColumn dc in datTabDatosDetalle.Columns)
                    {
                        campo = new Telerik.Web.UI.GridBoundColumn();
                        radGriOrdComDetalles.MasterTableView.DetailTables[0].Columns.Add(campo);
  
                        campo.UniqueName = "col" + dc.ColumnName;
                        campo.HeaderText = "[ " + dc.ColumnName + " ]";
                        campo.HeaderStyle.Font.Bold = true;
                        campo.HeaderStyle.HorizontalAlign = HorizontalAlign.Center;
                        campo.DataField = dc.ColumnName;
  
                        if (dc.ColumnName == "Talla")
                            campo.ReadOnly = true;
                    }
  
                    Telerik.Web.UI.GridEditCommandColumn campoEdit = new Telerik.Web.UI.GridEditCommandColumn();
                    campoEdit.UniqueName = "colEdit";
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].Columns.Add(campoEdit);
                    campoEdit.UniqueName = "colEdit";
                    campoEdit.ButtonType = Telerik.Web.UI.GridButtonColumnType.LinkButton;
                    campoEdit.EditText = "Editar";
                    campoEdit.UpdateText = "Actualizar";
                    campoEdit.CancelText = "Cancelar";
    
                    // SE AGREGA EN EL VIEWSTATE LA REGLETA CORRESPONDIENTE AL PRODUCTO
                    if (ViewState["OrdCompraProdDetallesSub" + strIdOrdCompra + strSkucode] == null)
                        ViewState.Add("OrdCompraProdDetallesSub" + strIdOrdCompra + strSkucode, datTabDatosDetalle);
                    else
                        ViewState["OrdCompraProdDetallesSub" + strIdOrdCompra + strSkucode] = datTabDatosDetalle;
  
                    // SE AGREGAN LOS DATOS FINALES AL SOURCE DEL GRID.
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].DataSource = datTabDatosDetalle;
  
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].Columns[0].Visible = false;
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].Columns[1].Visible = false;
  
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].CommandItemDisplay = Telerik.Web.UI.GridCommandItemDisplay.Top;
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].EditMode = Telerik.Web.UI.GridEditMode.InPlace;
                    radGriOrdComDetalles.Rebind();
                }
            }
            catch (Exception ex)
            {
            }
        }

-- CODE BEHIND =======================================================================
Carlos Rodriguez
Top achievements
Rank 1
 answered on 14 Apr 2011
1 answer
34 views
Hello,

I have a bar chart with one series. PSA image there are 4 Bars with differenr severity level. I want to apply different colors to each severity i.e. each bar need to be of different color. Is it possible to do so ?

Thanks,
Prayag
Evgenia
Telerik team
 answered on 14 Apr 2011
1 answer
109 views
Hello everyone,

I have a site with multiple instances of the RadEditor. All of them display correctly except this one. I have searched for a solution, but found nothing that makes sense to me (it should be pointed out that I am a designer and not a developer, so most of what I have read here doesn't make sense to me). 

I've attached the code and picture of what is happening. Any ideas what is happening?

Thanks in advance for your help.

Josh

<div id="blog_header_editor">
        Header:
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadEditor ID="HeaderEditor1" runat="server" ImageManager-DeletePaths="/UserFiles/Images"
                ImageManager-UploadPaths="/UserFiles/Images" ImageManager-ViewPaths="/UserFiles/Images"
                ImageManager-EnableImageEditor="true" DocumentManager-DeletePaths="/UserFiles/Documents"
                DocumentManager-UploadPaths="/UserFiles/Documents" DocumentManager-ViewPaths="/UserFiles/Documents"
                Skin="Windows7" Width="720" Height="440">
                <Tools>
                    <telerik:EditorToolGroup Tag="MainToolbar">
                        <telerik:EditorTool Name="Print" ShortCut="CTRL+P" />
                        <telerik:EditorTool Name="AjaxSpellCheck" />
                        <telerik:EditorTool Name="FindAndReplace" ShortCut="CTRL+F" />
                        <telerik:EditorTool Name="SelectAll" ShortCut="CTRL+A" />
                        <telerik:EditorTool Name="Cut" />
                        <telerik:EditorTool Name="Copy" ShortCut="CTRL+C" />
                        <telerik:EditorTool Name="Paste" ShortCut="CTRL+V" />
                        <telerik:EditorTool Name="PasteStrip" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Undo" ShortCut="CTRL+Z" />
                        <telerik:EditorTool Name="Redo" ShortCut="CTRL+Y" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup Tag="InsertToolbar">
                        <telerik:EditorTool Name="ImageManager" ShortCut="CTRL+G" />
                        <telerik:EditorTool Name="DocumentManager" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="LinkManager" ShortCut="CTRL+K" />
                        <telerik:EditorTool Name="Unlink" ShortCut="CTRL+SHIFT+K" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="Superscript" />
                        <telerik:EditorTool Name="Subscript" />
                        <telerik:EditorTool Name="InsertParagraph" />
                        <telerik:EditorTool Name="InsertGroupbox" />
                        <telerik:EditorTool Name="InsertHorizontalRule" />
                        <telerik:EditorTool Name="InsertDate" />
                        <telerik:EditorTool Name="InsertTime" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="FormatCodeBlock" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="FormatBlock" />
                        <telerik:EditorTool Name="FontName" ShortCut="CTRL+SHIFT+F" />
                        <telerik:EditorTool Name="RealFontSize" ShortCut="CTRL+SHIFT+P" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="AbsolutePosition" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Bold" ShortCut="CTRL+B" />
                        <telerik:EditorTool Name="Italic" ShortCut="CTRL+I" />
                        <telerik:EditorTool Name="Underline" ShortCut="CTRL+U" />
                        <telerik:EditorTool Name="StrikeThrough" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="JustifyLeft" />
                        <telerik:EditorTool Name="JustifyCenter" />
                        <telerik:EditorTool Name="JustifyRight" />
                        <telerik:EditorTool Name="JustifyFull" />
                        <telerik:EditorTool Name="JustifyNone" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Indent" />
                        <telerik:EditorTool Name="Outdent" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="InsertOrderedList" />
                        <telerik:EditorTool Name="InsertUnorderedList" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="ToggleTableBorder" />
                        <telerik:EditorTool Name="XhtmlValidator" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="ForeColor" />
                        <telerik:EditorTool Name="BackColor" />
                        <telerik:EditorTool Name="ApplyClass" />
                        <telerik:EditorTool Name="FormatStripper" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup Tag="DropdownToolbar">
                        <telerik:EditorTool Name="InsertSymbol" />
                        <telerik:EditorTool Name="InsertTable" />
                        <telerik:EditorTool Name="InsertSnippet" />
                        <telerik:EditorTool Name="ImageMapDialog" />
                        <telerik:EditorTool Name="InsertCustomLink" ShortCut="CTRL+ALT+K" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="ConvertToLower" />
                        <telerik:EditorTool Name="ConvertToUpper" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Zoom" />
                        <telerik:EditorTool Name="ModuleManager" />
                        <telerik:EditorTool Name="ToggleScreenMode" ShortCut="F11" />
                        <telerik:EditorTool Name="AboutDialog" />
                    </telerik:EditorToolGroup>
                </Tools>
                <Content>
         
                </Content>
                <ImageManager ViewPaths="/UserFiles/Images" UploadPaths="/UserFiles/Images" DeletePaths="/UserFiles/Images"
                    MaxUploadFileSize="2048000"></ImageManager>
                <DocumentManager ViewPaths="/UserFiles/Documents" UploadPaths="/UserFiles/Documents"
                    DeletePaths="/UserFiles/Documents" MaxUploadFileSize="2048000"></DocumentManager>
            </telerik:RadEditor>
    </div>
    <div class="clear"></div>
    <div id="buttons">
        <div id="cmdSave" class="page_property_button">
            <asp:ImageButton runat="server" ID="ibtnSave" OnClick="cmdSave_Click" src="/LookAndFeel/Images/icon_save.png"
                class="page_property_icon" />
            <div class="page_property_text">
                Save<br />
                This Blog
            </div>
            <div class="clear"></div>
        </div>
Rumen
Telerik team
 answered on 14 Apr 2011
1 answer
56 views
Hi there,

Is that a way I can update the editor's content without changing the scroll bar?

Thanks,
Reza
Rumen
Telerik team
 answered on 14 Apr 2011
4 answers
161 views
Hello,
I have run into a problem where the ItemDataBound event is fired multiple times whenever the "next page" link is clicked and SEO paging is enabled. But the weird thing is that the first time, it's fired for the items on the first page! The sequence goes like this, once the user clicks "next page":

  • page load
  • need data source
  • item data bound for each item on the first page
  • pre render
  • item data bound for each item on the new page

If I turn off SEO paging, it works as expected 
  • page load
  • need data sourec
  • item data bound for each item on the new page
  • pre render

I am not really sure what I am doing wrong. Here's a sample code to demonstrate:
ASPX
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" OnItemDataBound="RadGrid1_ItemDataBound" OnPreRender="RadGrid1_PreRender" PageSize="5" onneeddatasource="RadGrid1_NeedDataSource">
    <MasterTableView DataKeyNames="doc_id">
    </MasterTableView>
    <PagerStyle EnableSEOPaging="true" SEOPagingQueryStringKey="page" />
</telerik:RadGrid>

code behind:
public partial class _Default : System.Web.UI.Page
{
    public class TestData
    {
        public int doc_id{get;set;}
        public string Title{get;set;}
    }
 
    private List<TestData> GetData()
    {
        var data = new List<TestData>();
        for (int i = 1; i < 30; i++) {data.Add(new TestData(){doc_id = i,Title = "Title for " + i});}
        return data;
    }
 
    protected void Page_Load(object sender, EventArgs e)
    {
        Debug.WriteLine("Pageload");
    }
 
    protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            Debug.WriteLine("ItemDataBound: " + (e.Item as GridDataItem).GetDataKeyValue("doc_id"));
        }
    }
 
    protected void RadGrid1_PreRender(object sender, EventArgs e)
    {
        Debug.WriteLine("PreRender");
    }
 
    protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        Debug.WriteLine("NeedDataSource");
        RadGrid1.DataSource = GetData();
    }
}

Tundey
Top achievements
Rank 1
 answered on 14 Apr 2011
4 answers
224 views
Hi all

I have attached the file containing the error, and i have following web.config file, but still getting this error. If anything missing please advise. Thanks in advance


<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings>
</appSettings>
<connectionStrings>
<clear/>
</connectionStrings>
<system.web>
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
                cookieless="false" timeout="120" />

<!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.

            Visual Basic options:
            Set strict="true" to disallow all data type conversions 
            where data loss can occur. 
            Set explicit="true" to force declaration of all variables.
        -->
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<pages validateRequest="false">
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Generic"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Linq"/>
<add namespace="System.Xml.Linq"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<httpRuntime executionTimeout="3600" maxRequestLength="102400" />
<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
<authentication mode="Windows"/>
<!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
<httpHandlers>
<remove verb="*" path="*.asmx"/>
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.2.1001.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
      <!-- *******  Register the RadUploadProgressHandler for IIS prior to v.7  ****** -->
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" verb="*" validate="false" />
</httpHandlers>
<httpModules>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <!--Newly Added -->
      <!-- *******  Register the RadUploadModule for IIS prior to v.7  ****** -->
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!-- 
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule"/>
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

Ahmet HOSO
Top achievements
Rank 1
 answered on 14 Apr 2011
7 answers
296 views
Hi
Is there a method for stripping out any 'script' tags after the submit button has been pressed?

Thanks
Matt
Rumen
Telerik team
 answered on 14 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?