PostbackUrl / Use on SEO page?

6 posts, 0 answers
  1. vtech
    vtech avatar
    17 posts
    Member since:
    Oct 2004

    Posted 28 Jan 2010 Link to this post

    Hi,

    RadRating is cool, and I know he's the new kid on the block for RadControls.

    I find there's no PostbackUrl, so am unable to use on my SEO friendly pages - is there a workaround?

    Thanks in advance..
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 02 Feb 2010 Link to this post

    Hi vtech,
    Indeed, the current version of the rating control does not have a PostbackUrl property. However, you can use Response.Redirect or Server.Transfer in the handler for the rate server event of the control instead.

    Sincerely yours,
    Tsvetie
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. vtech
    vtech avatar
    17 posts
    Member since:
    Oct 2004

    Posted 04 Feb 2010 Link to this post

    Thanks for your idea...

    Consider:
      my actual path:  /app/rate.aspx
      my SEO Path:  /this/is/my/data/page.aspx

    Am I correct in interpretting you're suggesting to create the "/this/is/my/data/page.aspx " to Server.Redirect to /app/rate.aspx? .. or is it a client event? .. or ?

    Thanks.  :-)


  5. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 05 Feb 2010 Link to this post

    Hello vtech,
    My suggestion was to set AutoPostBack=true for the rating control and in the server handler for the rate event of the control - call Server.Transfer. One downside of this is that the URL displayed with the target page is still that of the source page. You can read more about this method in MSDN.

    Another approach that you can use, is to define an ASP Button and use its PostBackUrl property - simply call the click method of the button with javascript, when the value of the rating changes. For example:
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadRating ID="RadRating1" runat="server" OnClientRated="OnClientRated">
        </telerik:RadRating>
     
        <script type="text/javascript">
            function OnClientRated(sender,args)
            {
                $get("<%= Button1.ClientID %>").click();
            }
        </script>
     
        <asp:Button ID="Button1" runat="server" Text="Test" Style="position: absolute; top: -9999px;
            visibility: hidden;" PostBackUrl="~/Tickets/PostbackUrl_Rating/data/SEOPage.aspx" />
        </form>
    </body>

    Sincerely yours,
    Tsvetie
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  6. Albert Bertina
    Albert Bertina avatar
    1 posts
    Member since:
    Mar 2010

    Posted 09 Mar 2010 Link to this post

    Hi
    i am an SEO, working hard for my web site ranking. hey what is Postbackurl i don't know about?

    Albert Bertina


  7. kevin85
    kevin85 avatar
    1 posts
    Member since:
    Jun 2010

    Posted 20 Jun 2010 Link to this post

    <href="http://www.internetpositions.com">search engine optimization</a> 
    PostbackURL sends all data to the assigned page. so if your going to do handle all the data on a separate page just use it. also, its more equivalent to server and simply sets client-side script event.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017