Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Using Ajaxtoolkit page gets postback  instead of using AJAXUsing Ajaxtoolkit page gets postback instead of using AJAX
Previous
 
Next
New Post
9/12/2008 8:35 AM
 


Hi All


I am using dotnetnuke 4.08.04 , Asp.net 2.0 .

I am using Ajax tool kit  Star ratting ( http://www.asp.net/ajax/ajaxcontroltoolkit/samples/Rating/Rating.aspx ) inside update panel ,  in one of my user control . I am installing script manager in page load ( user control's page load and also in default.aspx page load ) .

Issue : When I click submitt button the page is post back instead of using AJAX .



Design view
<asp:UpdatePanel runat="server" ID="up1">
            <ContentTemplate>
                <div style="float: left;">How spicy do you like your Thai food? &nbsp;</div>
                <ajaxToolkit:Rating ID="ThaiRating" runat="server" BehaviorID="RatingBehavior1"
                    CurrentRating="2"
                    MaxRating="5"
                    StarCssClass="ratingStar"
                    WaitingStarCssClass="savedRatingStar"
                    FilledStarCssClass="filledRatingStar"
                    EmptyStarCssClass="emptyRatingStar"
                    OnChanged="ThaiRating_Changed"
                    style="float: left;" />               
               
                                   
                    <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="Submit_Click" />
                    <asp:Label ID="lblRatting" runat="server" Text="[No response provided yet]"></asp:Label>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>


Code Behind

        Protected Sub bttnSubmitt_Click(ByVal sender As Object, ByVal e As System.EventArgs)
            lblRatting.Text = " You have given Ratting " & userReview.CurrentRating
        End Sub

 Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Try
                If Not Page.IsPostBack Then
                    If DotNetNuke.Framework.AJAX.IsInstalled Then
                        DotNetNuke.Framework.AJAX.RegisterScriptManager()
                    End If
                End If
            Catch exc As Exception        'Module failed to load
                ProcessModuleLoadException(Me, exc)
            End Try
        End Sub

 

thanks for helping me

 

 

 

 

 
New Post
9/12/2008 10:15 AM
 

This is actually an issue with the Ajax Control Toolkit itself in the rating control.


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
9/15/2008 2:51 AM
 

 Thanks Crispy ,

  Is there any alternative similar to  ajax star ratting .

My requirement :

  To use star ratting ( 1 , 1.5 , 2 ,...., 4.5 ,  5 ) , using mouse move and page should not be post back .

I searched  in net but many module ther are giving options 1 to 5 not float points or else they gave options of radio buttons to rate . I found java script ratting

( http://www.nofunc.com/AJAX_Star_Rating/ )   This works fine but the design view is varrying for IE and morzilla also it is varying with respective to other modules in othe pane . so if there is any alternative for this module please let me know .

Once again Thanks to all for ur help

 

 
New Post
9/16/2008 8:07 AM
 

Try this:

Login as Portal Admin
Select Host -> Module Defintions
Find your module in the list
Click on the Edit icon next to your module
At the bottom in the Control list, find your View.ascx control
Click on the Edit icon next to it
Make sure  Supports Partial Rendering? is selected

You should now get AJAX working just fine.
 

 
New Post
9/18/2008 2:17 AM
 

Thanks Keith Adler

    I selected Supports Paritial Rendering as you stated , and it works and my postback issue got resolved .

Thanks a lot

Also can I know how to get star rating ( 1 , 1.5 , .... 4.5 , 5 )  similar to Ajax tool kit Star Rating which  allows  only integer ( 1 to 5 )  rating

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Using Ajaxtoolkit page gets postback  instead of using AJAXUsing Ajaxtoolkit page gets postback instead of using AJAX


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out