or
| <telerik:RadAjaxManagerProxy ID="ramProxyShow" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadGrid1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManagerProxy> |
| <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="MainMaster.master.cs" Inherits="Test_Web_Application.MainMaster" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <%@ Register src="UserControls/Message.ascx" tagname="Message" tagprefix="uc1" %> |
| <!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></title> |
| <asp:ContentPlaceHolder ID="head" runat="server"> |
| </asp:ContentPlaceHolder> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <uc1:Message ID="MessageInfo" runat="server" /> |
| <asp:ContentPlaceHolder ID="ContentBlock" runat="server"> |
| </asp:ContentPlaceHolder> |
| </div> |
| <telerik:radscriptmanager ID="ScriptManager" runat="server"> |
| </telerik:radscriptmanager> |
| <telerik:radajaxloadingpanel ID="RadAjaxLoadingPanel" runat="server" |
| Transparency="20"> |
| </telerik:radajaxloadingpanel> |
| <telerik:radajaxmanager ID="RadAjaxManager" runat="server" |
| DefaultLoadingPanelID="RadAjaxLoadingPanel"> |
| </telerik:radajaxmanager> |
| </form> |
| </body> |
| </html> |
| using System; |
| using System.Collections.Generic; |
| using System.Linq; |
| using System.Web; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| using Test_Web_Application.UserControls; |
| namespace Test_Web_Application |
| { |
| public partial class MainMaster : System.Web.UI.MasterPage |
| { |
| public Message MessageControl |
| { |
| get |
| { |
| return MessageInfo; |
| } |
| } |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| } |
| } |
| } |
| <%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.Master" AutoEventWireup="true" CodeBehind="TestMPwithAJAX.aspx.cs" Inherits="Test_Web_Application.TestMPwithAJAX" %> |
| <%@ Register src="UserControls/ButtonControl.ascx" tagname="ButtonControl" tagprefix="uc2" %> |
| <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> |
| </asp:Content> |
| <asp:Content ID="Content3" ContentPlaceHolderID="ContentBlock" runat="server"> |
| <uc2:ButtonControl ID="ButtonControlShow" runat="server" /> |
| </asp:Content> |
| <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Message.ascx.cs" Inherits="Test_Web_Application.UserControls.Message" %> |
| <asp:Label ID="LabelMessage" runat="server" Text="Label"></asp:Label> |
| using System; |
| using System.Collections.Generic; |
| using System.Linq; |
| using System.Web; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| namespace Test_Web_Application.UserControls |
| { |
| public partial class Message : System.Web.UI.UserControl |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| } |
| public string CurrentMessage |
| { |
| get |
| { |
| return LabelMessage.Text; |
| } |
| set |
| { |
| LabelMessage.Text = value; |
| } |
| } |
| } |
| } |
| <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ButtonControl.ascx.cs" Inherits="Test_Web_Application.UserControls.ButtonControl" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <asp:Button ID="ButtonShowMessage" runat="server" Text="Show Message" onclick="ButtonShowMessage_Click" /> |
| <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" |
| AutoGenerateColumns="False" Skin="Office2007" |
| onneeddatasource="RadGrid1_NeedDataSource" Width="800px" |
| oninsertcommand="RadGrid1_InsertCommand" onitemcreated="RadGrid1_ItemCreated"> |
| <ClientSettings> |
| <Scrolling AllowScroll="true" /> |
| </ClientSettings> |
| <MasterTableView DataKeyNames="PaymentFrequencyID" EditMode="EditForms" Width="2000px" CommandItemDisplay="Top"> |
| <Columns> |
| <telerik:GridTemplateColumn DataField="Disabled" DataType="System.Boolean" |
| HeaderText="Disabled" |
| UniqueName="Disabled"> |
| <ItemTemplate> |
| <asp:CheckBox ID="chkDisabled" runat="server" /> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| <editformsettings editformtype="Template"> |
| <formtemplate> |
| <asp:Button ID="btnShowMessageFromTheGrid" runat="server" onclick="btnShowMessageFromTheGrid_Click" Text="Show Message" /> |
| </formtemplate> |
| </editformsettings> |
| </MasterTableView> |
| <ClientSettings> |
| <Resizing AllowColumnResize="True" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
| <telerik:RadAjaxManagerProxy ID="ramProxyShow" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadGrid1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManagerProxy> |
| using System; |
| using System.Collections.Generic; |
| using System.Linq; |
| using System.Web; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| namespace Test_Web_Application.UserControls |
| { |
| public partial class ButtonControl : System.Web.UI.UserControl |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| } |
| protected void btnShowMessageFromTheGrid_Click(object sender, EventArgs e) |
| { |
| (this.Page.Master as MainMaster).MessageControl.CurrentMessage = "TEST TEST"; |
| } |
| protected void ButtonShowMessage_Click(object sender, EventArgs e) |
| { |
| (this.Page.Master as MainMaster).MessageControl.CurrentMessage = "TEST"; |
| } |
| protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) |
| { |
| var list = new List<TestDIVBorder>(); |
| list.Add(new TestDIVBorder() { PaymentFrequencyID = 1, Disabled = true }); |
| RadGrid1.DataSource = list; |
| } |
| protected void RadGrid1_InsertCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) |
| { |
| } |
| protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e) |
| { |
| } |
| } |
| } |
| <telerik:RadGrid ID="RGPlaylist" Skin="ParagalloSkin" EnableEmbeddedSkins="false" CssClass="list_one" runat="server" Width="800px" |
| GridLines="None" AutoGenerateColumns="false" |
| ForeColor="#333333" |
| AllowSorting="True" PageSize="10" |
| DataKeyNames = "PlaylistID" OnPreRender="RGPlaylist_PreRender" OnNeedDataSource="RGPlaylist_NeedDataSource" |
| AllowPaging="true" AllowFilteringByColumn="true" AllowAutomaticDeletes="true"> |
| <ItemStyle CssClass="rows" /> |
| <AlternatingItemStyle CssClass="alternate_rows" /> |
| <GroupingSettings CaseSensitive="false" /> |
| ...... |
| <FooterStyle BackColor="#fff" Font-Bold="True" ForeColor="White" /> |
| <HeaderStyle BackColor="#b6b6b6" Font-Bold="True" CssClass="toprow" /> |
| <PagerStyle Mode="NumericPages" ShowPagerText="true" CssClass="gridPager" BackColor="#ececea" ForeColor="Gray" AlwaysVisible="true" PagerTextFormat="Endre side: {4} Side {0} av {1}, produkt {2} til {3} av totalt {5}"/> |
| <SortingSettings SortToolTip="Klikk her for å sortere" SortedAscToolTip="sortert stigende" |
| SortedDescToolTip="sortert desc" /> |
| </telerik:RadGrid> |
| <html> |
| <head> |
| <title>A potentially dangerous Request.Form value was detected from the client (CommandArgument="<br>").</title> |
| <style> |
| body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} |
| p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} |
| b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} |
| H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } |
| H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } |
| pre {font-family:"Lucida Console";font-size: .9em} |
| .marker {font-weight: bold; color: black;text-decoration: none;} |
| .version {color: gray;} |
| .error {margin-bottom: 10px;} |
| .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } |
| </style> |
| </head> |
| <body bgcolor="white"> |
| <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1> |
| <h2> <i>A potentially dangerous Request.Form value was detected from the client (CommandArgument="<br>").</i> </h2></span> |
| <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "> |
| <b> Description: </b>Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. To allow pages to override application request validation settings, set the requestValidationMode attribute in the httpRuntime configuration section to requestValidationMode="2.0". Example: <httpRuntime requestValidationMode="2.0" />. After setting this value, you can then disable request validation by setting validateRequest="false" in the Page directive or in the <pages> configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. For more information, see http://go.microsoft.com/fwlink/?LinkId=153133. |
| <br><br> |
| <b> Exception Details: </b>System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (CommandArgument="<br>").<br><br> |
| <b>Source Error:</b> <br><br> |
| <table width=100% bgcolor="#ffffcc"> |
| <tr> |
| <td> |
| <code> |
| An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code> |
| </td> |
| </tr> |
| </table> |
| <br> |
| <b>Stack Trace:</b> <br><br> |
| <table width=100% bgcolor="#ffffcc"> |
| <tr> |
| <td> |
| <code><pre> |
| [HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (CommandArgument="<br>").] |
| System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection) +8809720 |
| System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, RequestValidationSource requestCollection) +122 |
| System.Web.HttpRequest.get_Form() +114 |
| Telerik.Web.UI.SpellCheckHandler.ProcessRequest(HttpContext context) +187 |
| System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100 |
| System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 |
| </pre></code> |
| </td> |
| </tr> |
| </table> |
| <br> |
| <hr width=100% size=1 color=silver> |
| <b>Version Information:</b> Microsoft .NET Framework Version:4.0.30128; ASP.NET Version:4.0.30128.1 |
| </font> |
| </body> |
| </html> |
| <!-- |
| [HttpRequestValidationException]: A potentially dangerous Request.Form value was detected from the client (CommandArgument="<br>"). |
| at System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection) |
| at System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, RequestValidationSource requestCollection) |
| at System.Web.HttpRequest.get_Form() |
| at Telerik.Web.UI.SpellCheckHandler.ProcessRequest(HttpContext context) |
| at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() |
| at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) |
| --> |
| <asp:datalist id="dlProducts" runat="server" EnableViewState="False"> |
| <HeaderTemplate> |
| </td> |
| <td colspan="9" /> |
| </tr> |
| <tr class="gridHeader"> |
| <td width="5%">SC</td> |
| <td width="15%">Man Code</td> |
| <td width="30%">Description</td> |
| <td width="10%" align="right">Cost 1</td> |
| <td width="10%" align="right">Cost 2</td> |
| <td width="10%" align="right">Cost 3</td> |
| <td width="10%" align="right">Cost 4</td> |
| <td width="10%" align="right">Status</td> |
| </tr> |
| </HeaderTemplate> |
| <ItemTemplate> |
| </td> |
| <td colspan="9" /> |
| </tr> |
| <tr class="gridItem"> |
| <td width="5%" align="left"><asp:HyperLink id="hlnkSC" runat="server" NavigateUrl='<%# String.Format("~/Purchasing/ProductDealerDetail.aspx?siid={0}", DataBinder.Eval(Container.DataItem, "SupplierItemId")) %>' Text='<%# DataBinder.Eval(Container.DataItem, "SourceCode") %>'/></td> |
| <td width="15%" align="left"><asp:HyperLink id="hlnkManCode" runat="server" NavigateUrl='<%# String.Format("~/Purchasing/ProductDealerDetail.aspx?siid={0}", DataBinder.Eval(Container.DataItem, "SupplierItemId")) %>' Text='<%# DataBinder.Eval(Container.DataItem, "SupplierItemCode") %>'/></td> |
| <td width="30%" align="left"><asp:HyperLink id="hlnkItem" runat="server" NavigateUrl='<%# String.Format("~/Purchasing/ProductDealerDetail.aspx?siid={0}", DataBinder.Eval(Container.DataItem, "SupplierItemId")) %>' Text='<%# DataBinder.Eval(Container.DataItem, "SupplierProduct") + " " + DataBinder.Eval(Container.DataItem, "Description2") %>'/></td> |
| <td width="10%" align="right"><%# FormatCurrencyString(DataBinder.Eval(Container.DataItem, "OCCost")) %></td> |
| <td width="10%" align="right"><%# FormatCurrencyString(DataBinder.Eval(Container.DataItem, "OCCost1")) %></td> |
| <td width="10%" align="right"><%# FormatCurrencyString(DataBinder.Eval(Container.DataItem, "OCCost2")) %></td> |
| <td width="10%" align="right"><%# FormatCurrencyString(DataBinder.Eval(Container.DataItem, "OCCost3")) %></td> |
| <td width="10%" align="right"><it:TextImage id="Textimage1" Text='<%# DataBinder.Eval(Container.DataItem, "ItemStatusImage" )%>' ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ItemStatusImage" )%>' ImageDirectory="/ItemStatus" Runat="Server" /></td> |
| </tr> |
| </ItemTemplate> |
| </asp:datalist> |