Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Using Ajaxtoolkit page gets postback instead of using AJAX
Previous Previous
 
Next Next
New Post 9/12/2008 6:35 AM
Resolved
User is offline Arvind
50 posts
10th Ranked


Using Ajaxtoolkit page gets postback instead of using AJAX 


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 8:15 AM
User is offline Crispy
3433 posts
www.apptheory.com
4th Ranked










Re: Using Ajaxtoolkit page gets postback instead of using AJAX 

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



 
New Post 9/15/2008 12:51 AM
User is offline Arvind
50 posts
10th Ranked


Re: Using Ajaxtoolkit page gets postback instead of using AJAX 

 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 6:07 AM
User is offline Keith Adler
55 posts
10th Ranked


Re: Using Ajaxtoolkit page gets postback instead of using AJAX 

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 12:17 AM
User is offline Arvind
50 posts
10th Ranked


Re: Using Ajaxtoolkit page gets postback instead of using AJAX 

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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Using Ajaxtoolkit page gets postback instead of using AJAX
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Data Springs Inc. - Module Development
Data Springs is a leader in the DNN community offering high quality modules, custom module development, enhancements to the DNN core product and overall DNN support.
www.datasprings.com
XCESS expertise center b.v.
Custom made modules and complete solutions for the DNN framework. Maatwerk modules en complete webtoepassingen gebaseerd op het DNN framework.
www.xcess.nl
EMAS Pro
Strategic Enrollment Management Software for Higher Education Recruitment, Retention and Financial Aid
www.emaspro.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP