5 Answers, 1 is accepted
0
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.
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. :-)
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
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:
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.
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
0
kevin85
Top achievements
Rank 1
answered on 20 Jun 2010, 09:14 AM
<a href="http://www.internetpositions.com">search engine optimization</a> |