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  |  

$4.95 Windows Hosting at Webhost4life.com
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Cant Disable partial rendering (or can i?)
Previous Previous
 
Next Next
New Post 5/13/2008 2:08 PM
Resolved
User is offline Olivier Jooris
15 posts
www.bitconsultancy.be
10th Ranked




Cant Disable partial rendering (or can i?) 

Since 1 week i had the "great" idea to enable the AJAX support for my website.  I was very pleased to see the clicking 1 checkbox would make my life better.

BUT, i found out the hard way, that <asp:fileupload> is not supported under AJAX, and i couldn't find a good control to replace this.

So i wanted to disable partial rendering, and this problem entered: my first screen is a panel with a gridview, after selecting 1 of the lines, normaly i would go to the detail panel of the selected line.  But what hapens now: after clicking the select button in the gridview, it enters my ascx 2 times. (saw this through debugging)  This causes (through the program logic) the gridview to be bound again, and it looses its correct flow and stays on the gridview.

I thought it to be a caching problem but, restart website and webserver, recycle, restart  application pools -> didnot help

i use a lot of javascript in the .ascx

And now comes the realy "good"  part: in firefox it works fine, its IE7 wich has the trouble.

Can anyone help me on this?  Or send me a workable alternative for <asp:fileupload> ?

Thanks

 

 
New Post 5/13/2008 3:05 PM
Accepted Answer 
User is offline Brian Dukes
359 posts
www.engagesoftware.com
8th Ranked


Re: Cant Disable partial rendering (or can i?) 

You'll want to use DotNetNuke.Framework.AJAX.RegisterPostBackControl to exclude the FileUpload and any button that accesses that control from being influenced by JavaScript.

If that isn't an option, I would be curious if your JavaScript might be doing something that IE7 doesn't like.  Would you mind providing a link we can look at?


Brian Dukes
Engage Software
St. Louis, MO
314.966.4000

The leading provider of DotNetNuke support, training and custom module development.
 
New Post 5/13/2008 11:18 PM
User is offline Olivier Jooris
15 posts
www.bitconsultancy.be
10th Ranked




Re: Cant Disable partial rendering (or can i?) 

Hi Brian, Thanks for your input.

I must add the following: before i "dared" to switch on the "partial rendering" it worked fine.

You can find part of my project here: http://www.bitconsultancy.be/portals/35/ajax_problem.zip

As you can see, i also use javascript in my skin (for a onhover on a picture)

There is a javascript to check a correct VAT nr and i try to prevent users from double clicking buttons

 

 

 
New Post 5/13/2008 11:32 PM
User is offline Olivier Jooris
15 posts
www.bitconsultancy.be
10th Ranked




Re: Cant Disable partial rendering (or can i?) 
Modified By Olivier Jooris  on 5/14/2008 7:27:40 AM)

Hi Brian,

i tried to use your solution for my fileupload control in AJAX:

in the page load (every time, so not only the first time)

If DotNetNuke.Framework.AJAX.IsInstalled Then
    DotNetNuke.Framework.AJAX.RegisterScriptManager()
    DotNetNuke.Framework.AJAX.RegisterPostBackControl(btnUpload)
End If

The asp:fileupload control is unchanged in the code

Now it works, Thanks for this hint!!

But, now, the control is "set to allow partial rendering", firefox behaves like IE7 before.  Meaning: the ascx is entered 2 times causing the programm flow to  be incorrect and leaving me on the selection screen

And my javascript for checking the VAT is also not executed

 
New Post 5/14/2008 7:23 AM
User is offline Mitch Sellers
5026 posts
www.cathal.co.uk
3rd Ranked




Re: Cant Disable partial rendering (or can i?) 

Just simply disable AJAX for that control.  Uncheck the "Supports Partial Rendering" option for all controls that are having the problem.  You can then completely exclude it from AJAX.


-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.
View Mitchel Sellers's profile on LinkedIn

Visit mitchelsellers.com for DotNetNuke tutorials, modules and technical help

Custom DotNetNuke Services Available (Development, etc).

My sites are hosted with 3Essentials
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Cant Disable partial rendering (or can i?)
 


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.

 


Lucede Systems Group
Providing a full range of IT services for large and medium sized companies
www.lucede.com
Adaptive InfoSystems, Inc.
We provide custom programming and various levels of support for DotNetNuke and the .Net framework.
www.aisysweb.com
Multipartner Virtual Data Rooms
The Virtual Data Rooms (VDR) provided by an expert advisor, far from any ordinary software company!, supporting the sellers and their consultants. Multipartner builds and services higly professional Virtual Data Rooms (VDR) specifically tailored to M&A, Real Estate and NPL deals.
www.multipartner.com

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