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.0Cant Disable partial rendering (or can i?)Cant Disable partial rendering (or can i?)
Previous
 
Next
New Post
5/13/2008 5:08 PM
 

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 6:05 PM
Accepted Answer 

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
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
5/14/2008 2:18 AM
 

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/14/2008 2:32 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 10:23 AM
 

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
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Cant Disable partial rendering (or can i?)Cant Disable partial rendering (or can i?)


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