| <%@ Register Src="~/uc1.ascx" TagName="test" TagPrefix="uc1" %> |
| <%@ Register Src="~/uc2.ascx" TagName="test"TagPrefix="uc2" %> |
| <uc1:test ID="uc1" runat="server" /> |
| <uc2:test ID="uc2" runat="server" /> |
Code Behind:
| protected void Page_Load(object sender, EventArgs e) |
| { |
| RadAjaxManagerProxy AjaxManager = (RadAjaxManagerProxy)this.FindControl("RadAjaxManagerProxy1"); |
| AjaxManager.AjaxSettings.AddAjaxSetting(uc1.FindControl("Button1"),uc2.FindControl("TextBox1")); |
| } |
| <%@ Control Language="C#" AutoEventWireup="true" CodeFile="uc1.ascx.cs" Inherits="App_TelusPHR_uc1" %> |
| <asp:Button ID="Button1" runat="server" Text="Button" /> |
User Control 2 is
| <%@ Control Language="C#" AutoEventWireup="true" CodeFile="uc2.ascx.cs" Inherits="App_TelusPHR_uc2" %> |
| <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> |
code Behind
| public static int count = 0; |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| count++; |
| TextBox1.Text = count.ToString(); |
| } |
User control 2 is never refreshed..... any idea?
Protected Sub RadGrid1_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.DataBound
'Expand all items using our custom storage
Dim indexes As String() = New String(Me.ExpandedStates.Keys.Count) {}
Me.ExpandedStates.Keys.CopyTo(indexes, 0)
Dim arr As New ArrayList(indexes)
'Sort so we can guarantee that a parent item is expanded before any of
'its children
arr.Sort()
For Each key As String In arr
If key Is Nothing Then
Else
Dim value As Boolean = DirectCast(Me.ExpandedStates(key), Boolean)
If value Then
------------------------>>>>>> RadGrid1.Items(key).Expanded =
True <<<<<<<---------------------
End If
End If
Next
End Sub

rDatePickerInicial.ClientEvents.OnDateSelected = "ChangeCheckBox('" + ckChanges.ClientID + "')";
The code for asp.net textbox is:
txtDescricaoPt.Attributes.Add(
"onkeypress", "javascript:ChangeCheckBox('" + ckChanges.ClientID + "')");
txtDescricaoGb.Attributes.Add(
"onkeypress", "javascript:ChangeCheckBoxCheckBox('" + ckChanges.ClientID + "')");
and this works.
My only problem has to do with Telerik controls.

Hello, this is my code for bind a dropdowlist in ItemTemplate that has a Bind("field")
it's work fine, but in Edit Mode one time in
list.DataSource = dsDropDown
give the error:
{"Object reference not set to an instance of an object."}
Then in I'm using a catch for this error, and all is fine.
Do you know a solution for don't use the catch?
Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated
If (TypeOf e.Item Is GridDataItem AndAlso e.Item.IsDataBound) Then
Try
Dim dsDropDown As New DataSet()
OleDbCnn = New Data.OleDb.OleDbConnection(Session("CONNECT_DBS"))
Dim item As GridDataItem = e.Item
Dim list As DropDownList = item.FindControl("DDL_AREA_GEOGRAFICA_NAME")
OleDbSql = Area_Geografica_Code()
Dim OleDbDad As New Data.OleDb.OleDbDataAdapter
OleDbDad = New Data.OleDb.OleDbDataAdapter(OleDbSql, OleDbCnn)
OleDbDad.Fill(dsDropDown)
list.DataSource = dsDropDown
list.DataTextField = "NAME"
list.DataValueField = "CD_CODE"
Catch ex As Exception
ex.Message.ToString()
End Try
End If
End Sub
Thanks for any help
Message from webpage :
Web.config registration missing!
The Telerik dialogs require a HttpHandler registration in the web.config file. Please, use the control's Smart Tag to add the handler automatically, or see the help for more information: Controls > RadEditor > Dialogs > Introduction
-------------------------------------------------------------------------------------------------------------------------------------------
500 - Internal server error.
----------------------------------------------------------------------------------------------------------------------------------------
I got this error at a time of click on Image Manager in IIS 7.
this thing is working fine in IIS 5.
My ASPX Page Code
<%
@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<
telerik:RadEditor ID="telerik1" runat="server" Width="100%" CssClass="editorcontent" AllowScripts="True" Height="600px" DialogHandlerUrl="" ToolbarMode="Default">
<ImageManager ViewPaths="~/App_Themes/Default/images" UploadPaths="~/App_Themes/Default/images" DeletePaths="~/App_Themes/Default/images" />
<DocumentManager ViewPaths="~/App_Themes/Default/images" UploadPaths="~/App_Themes/Default/images" DeletePaths="~/App_Themes/Default/images" />
</
telerik:RadEditor>
My web.config.
<
system.web>
<
pages theme="Default">
<
controls>
<
add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
controls>
</
pages>
<
httpModules>
<
add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
httpModules>
<
httpHandlers>
<
remove verb="*" path="*.asmx"/>
<
add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<
add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<
add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<
add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<
add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<
add verb="*" validate="false" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
<
add verb="*" validate="false" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/>
<
add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI"/>
<
add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<
add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>
<
add path="Telerik.Web.UI.DialogHandler.axd" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false"/>
</
httpHandlers>
< compilation debug="true">
<
assemblies>
<
add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
assemblies>
</
compilation>
</ system.web>
<
system.webServer>
<
validation validateIntegratedModeConfiguration="false"/>
<
modules>
<
add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<
add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule"/>
</
modules>
<
handlers>
<
remove name="WebServiceHandlerFactory-Integrated"/>
<
add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<
add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.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=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<
add name="Telerik.Web.UI.DialogHandler" verb="*" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
</
handlers>
</
system.webServer>
