More in this section
Forums / General Discussions / youtube Embeded Link

youtube Embeded Link

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Asif
    Asif avatar
    110 posts
    18 Nov 2010
    22 Dec 2010
    Link to this post
    In Admin section, I want Admin to insert the Youtube Embeded link while creating a product. for example the youtube Embeded link is

    <object width="480" height="385"><param name="movie" value=";hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src=";hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>

    But my application is throwing an error which is

    A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$contolPanel$ctl00$ctl01$ctl00$ctl00$ctl00$ctl00$MetaFields$ctl00$EmbededVideo="<object width="480" ...").

    Description: 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. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.

    Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$contolPanel$ctl00$ctl01$ctl00$ctl00$ctl00$ctl00$MetaFields$ctl00$EmbededVideo="<object width="480" ...").

    Source Error:

    [No relevant source lines]

    Source File: c:\WINDOWS\\Framework\v2.0.50727\Temporary ASP.NET Files\root\9e1837fa\331180dc\App_Web_-atqyqap.2.cs    Line: 0

    Stack Trace:

    [HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$contolPanel$ctl00$ctl01$ctl00$ctl00$ctl00$ctl00$MetaFields$ctl00$EmbededVideo="<object width="480" ...").]
       System.Web.HttpRequest.ValidateString(String s, String valueName, String collectionName) +8721914
       System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, String collectionName) +111
       System.Web.HttpRequest.get_Form() +129
       System.Web.HttpRequest.get_HasForm() +8722023
       System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +97
       System.Web.UI.Page.DeterminePostBackMode() +63
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
       System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
       System.Web.UI.Page.ProcessRequest() +80
       System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
       System.Web.UI.Page.ProcessRequest(HttpContext context) +49
       ASP.sitefinity_admin_modules_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\\Framework\v2.0.50727\Temporary ASP.NET Files\root\9e1837fa\331180dc\App_Web_-atqyqap.2.cs:0
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    24 Dec 2010
    Link to this post
    Hi Asif,

    Do you use a custom control to enter your video or you paste it into the RadEditor's content area? There should not be a problem if you paste the video in the RadEditor's content area. As far as I see you use some text box control to paste the object and this cases the error you see. You can use RadEditor as a TexBox which should fix the issue.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered