Showing posts with label webserver. Show all posts
Showing posts with label webserver. Show all posts

Wednesday, March 28, 2012

Dificult to reproduce : problems with webpartzones inside updatePanel

Hi !

That's very dificult to reproduce.

I'm creating a new website. I'm using the default webserver of Visual Studio 2005.

The home page users master pages and has a lot of user controls. The scriptManager and the webpartmanager are in masterpage.

One of the user controls uses three panels with ColapsiblePanelExtender. It's working now, after discovered It doesn't work without documentType tag.

The user controls are inserted in the master page, including a top menu with a top banner.

In the main page I have an UpdatePanel with two webpartzones and some webparts. I also have an UpdateProgress

The problems started when I tried to put outputcache in some user controls, like header and footer of the page.

1st Problem : The webParts in the middle don't allow to change position any more. When I move the webParts, the server is contacted (UpdateProgress works), answer is received but nothing change.

This happens sometimes. First I thinked it was cache, so I take out outputcache from all user controls and tried again, inserting outputcache one by one.

So I discovered that when I get this problem, if I delete the temporary directory for this application (in ASP.NET temp folder), close the webserver (and related process) and delete the browser cache the problem disappears.

2nd Problem : After insert outputcache in some user controls, something difference started to happend - when I move one webpart it changes, but the top banner change it's position, changing the page layout!

The UpdatePanel and webparts are in default.aspx page. Default.aspx uses one masterPage. Inside this master page is the top.ascx user control. Inside this control is the banner. So, something in the page change the layout, making the banner changes Its position!

In the moment I will undo all the cache changes, one by one, trying to discover wich change created this problema, but I don't believe one of the cache changes could do this.

With all this problems, the development becames too slow.

[]'s

Dennes

Hi !

I solved the banner problem, but I still don't know why it happend.

The original HTML was like this :

<style type="text/css" title="Portal BufaloInfo"><!--#banner {position:absoluteleft:284pxtop:21pxwidth:468height:60z-index:1}--></style><div id="banner"><a href="#"><img src="images/banner_468_60.gif" width="468" height="60" border="0"></a></div>

I changed to :

<div id="banner" style="position:absolute;left:284px;top:21px;width:468;height:60;z-index:1"><a href="#"><img src="images/banner_468_60.gif" width="468" height="60" border="0"></a></div>

So, now it works. Before this change, when the style was applied to DIV tag the banner was correct, when not, the banner apears in other position.

The main question is : Why the updatePanel, after a refresh, was changing the way this style was applied ?

[]'s

Dennes


Hi !

This seems to be a problem between Alas and IE, or something like that.

After I corrected the banner problem, IE stoped to apply the style to the rest of the page, to the entire page.

Like before : The pages start correct, after UpdatePanel has communicate with the server, the style disappears.

[]'s

Dennes

Saturday, March 24, 2012

Deploying a Beta 1 website

Hi all,

I, like most people I think, am not in control of my webserver. I have my testing server, of course, but that's all it is. I code on a laptop.

This is why the new AJAX Beta confuses me so, because it seems to assume I am in control of my webserver, and contains no instructions on uploading a website that uses ASP.NET AJAX (I think we're actually going to have to abbreviate the abbreviations here and call it ANA).

Does anyone actually know how to deploy an ANA Beta 1 website?

-gorman

PS: Just a thought on abbreviating the abbreviations... thank god it's not called ASP.NET AJAX Library, eh?... I'm so immature.Stick out tongue

Okay, I am massive idiot. Let me explain why.

When I tried to upload the binaries, I wondered "Why isn't the last version in the bin folder?"

Duh. Wrong folder.

Sorry everyone, it's easy to deploy, just put the new DLLs in the bin folder as usual.


Hi,

What I want to know is...

The installation notes (http://ajax.asp.net/docs/InstallingASPNETAJAX.aspx) have the following disclaimer...

note

The installation package installs the ASP.NET AJAX assembly (Microsoft.Web.Extensions.dll) in the Global Assembly Cache (GAC). Do not include the assembly in the Bin folder of your AJAX-enabled Web site.

So how are we supposed to deploy to a shared webserver. Try to convince them to load the dll in the GAC?

Thanks.

Aaron


Hmm. I stuck the binaries in the bin folder on my shared webserver. Didn't install anything at all to the GAC. And it works. Isn't it supposed to not do that?

Aaron