<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Default.Master.cs" Inherits="Web.App_Templates.Default.Default" %> <%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head id="Head" runat="server"> <title><%= Page.Title %></title>
</head> <body> <form id="MainForm" runat="server"> <telerik:RadScriptManager ID="ScriptManager" runat="server"> </telerik:RadScriptManager> <telerik:RadAjaxManager ID="TelerikAjaxManager" runat="server"> </telerik:RadAjaxManager> <telerik:RadWindowManager ID="TelerikWindowManager" runat="server"> <Windows> <telerik:RadWindow ID="TelerikWindow" runat="server"> </telerik:RadWindow> </Windows> </telerik:RadWindowManager> <asp:UpdatePanel ID="UpdatePanel" runat="server"> <ContentTemplate> <asp:Literal ID="Feedback" runat="server" Text=" " /> <asp:ContentPlaceHolder ID="MainContentPlaceHolder" runat="server"> </asp:ContentPlaceHolder> </ContentTemplate> </asp:UpdatePanel> </form> </body> </html>namespace Web.App_Templates.Default { using System; public partial class Default : System.Web.UI.MasterPage { public void ShowFeedback(string feedBackText, bool useAlert) { if (useAlert) { string radalertscript = string.Format("<script language='javascript'>function f(){{radalert('{0}', 330, 210);Sys.Application.remove_load(f);}};Sys.Application.add_load(f);</script>", feedBackText); Page.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript); } else { this.Feedback.Text = feedBackText; } } } }<%@ Page Title="Welcome" Language="C#" MasterPageFile="~/App_Templates/Default/Default.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Web.Default" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> <%@ MasterType VirtualPath="~/App_Templates/Default/Default.Master" %> <asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server"> <asp:Button ID="TestFeedbackAlert" runat="server" Text="Click Me" OnClick="TestFeedbackAlert_Click" Width="100" /> - <asp:Button ID="TestFeedbackNoAlert" runat="server" Text="Click Me" OnClick="TestFeedbackNoAlert_Click" Width="100" /> </asp:Content> namespace Web { using System; using System.Web.UI; public partial class Default : Page { protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { //this.Master.ShowFeedback("<p>Hello, AppWorld!</p>", true); } } protected void TestFeedbackAlert_Click(object sender, EventArgs e) { this.Master.ShowFeedback("<p>Clicked!</p>", true); } protected void TestFeedbackNoAlert_Click(object sender, EventArgs e) { this.Master.ShowFeedback("<p>Clicked!</p>", false); } } }TestFeedbackAlert button.Hi,
I am using MOSS Radeditor on one of my SharePoint 2010 site. The issue is when I am accessing the SharePoint site remotely to open the image editor dialog form through image manager than the system gives me following error
"Web application at http://SiteIp could not be found"
However when I open the site locally (i.e. through the http://localhost ) then image editor dialog form is opening correctly without giving any error message.
Please see the attached screen shots for details.
Can anybody help me that how to fix this issue.
Thanks
I had a similiar question but I didnt see an answer so...
I am updating a Org item... but I need to updated the 'updatedby' and 'updateddate' which I must do programmatically since it is not part of the radgrid... How do I do this ?
Here is how I am trying to do it but the break point is not being hit.. is this the right way to get my custom update? I suppose I COULD create a seperate stored procedure.. but it would be nice if I could keep it in the entities world.
<asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=G3TEntities" DefaultContainerName="G3TEntities" EnableFlattening="False" EnableInsert="True" EntitySetName="Orgs" EnableUpdate="True" OnUpdated="EntityDataSource1_Updated"> </asp:EntityDataSource> protected void EntityDataSource1_Updated(object sender, EntityDataSourceChangedEventArgs e) { Org oOrg = new Org(); oOrg = (Org)e.Entity; oOrg.updateby = 69; }Hi Team
I have two Telerik RadComboBox at the bottom of the page. On selection change of first RadComboBox ,2nd RadComboBox will populate, In this case binding is working fine but Page does not maintain scroll position at the bottom of the page, It goes on the top of the page.
I have written MaintainScrollPositionOnPostback="true" but it is not working.
Please help me ,It’s very urgent.
My Code blocks is
<telerik:RadComboBox ID="drpRequestType" Width="185px" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="drpRequestType_SelectedIndexChanged" EnableScreenBoundaryDetection="true" >
</telerik:RadComboBox>
<telerik:RadComboBox Width="185px" ID="drpSubRequestType" runat="server">
</telerik:RadComboBox>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="drpRequestType">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="drpSubRequestType" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
With this set up, the border on the bottom / last menu item is a double line border while the others are as designed in the CSS below. How do I make the last item like the others?
<
telerik:RadMenu ID="USSRadMenu" runat="server" DataSourceID="USSsmd" EnableEmbeddedSkins="false" Skin="">
</telerik:RadMenu>
div.RadMenu .rmGroup .rmLink
{
color: #000;
border:1px solid #DEDFDF;
padding: 2px 0 2px 0;
}
TIA