This is a migrated thread and some comments may be shown as answers.

PostbackUrl / Use on SEO page?

5 Answers 99 Views
Rating
This is a migrated thread and some comments may be shown as answers.
vtech
Top achievements
Rank 1
vtech asked on 28 Jan 2010, 01:25 PM
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..

5 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 02 Feb 2010, 05:09 PM
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.
0
vtech
Top achievements
Rank 1
answered on 04 Feb 2010, 06:13 AM
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.  :-)


0
Tsvetie
Telerik team
answered on 05 Feb 2010, 02:44 PM
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.
0
Albert Bertina
Top achievements
Rank 1
answered on 09 Mar 2010, 11:54 AM
Hi
i am an SEO, working hard for my web site ranking. hey what is Postbackurl i don't know about?

Albert Bertina


0
kevin85
Top achievements
Rank 1
answered on 20 Jun 2010, 09:14 AM
<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.
Tags
Rating
Asked by
vtech
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
vtech
Top achievements
Rank 1
Albert Bertina
Top achievements
Rank 1
kevin85
Top achievements
Rank 1
Share this question
or