Showing posts with label display. Show all posts
Showing posts with label display. Show all posts

Saturday, March 24, 2012

Panel or Multiview inside Updatepanel, whats faster?

So I have multiple gridviews to display on a single page. There are multiple ways to display these one at a time. The first would, of course, be a multiview, the second, a set of panels using the visible attrib to control the views. Normally, a multiview would be a great way to do this, but when one adds an update panel what is best way to build the page when render speed is considered.

The multiview must, of course, sit in one updatepanel, therefore making the page render the entire section of code on each async postback. This would mimic the behavior of putting all the panels in one updatepanel. However, when one puts each panel inside its own updatepanel, it would seem to me that rendering would speed up, since the asyncpostback only has to return HTML related to its own individual gridview.

Anyone have any ideas on this?

Also, sort of related to this:

When all the panels are inside a table cell <td> and right on top of each other, so:

<td>

<asp:updatepanel id="test" runat="server">

<contenttemplate>

<panel id="pnl1" runat="server">

stuff

</panel>

</contenttemplate>

</asp:updatepanel>

<asp:updatepanel id="test2" runat="server">

<contenttemplate>

<panel id="pnl2" runat="server">

stuff

</panel>

</contenttemplate>

</asp:updatepanel>

</td>

When the first panel or pnl1 is rendered visible=false, the second panel pushes down the screen about 30px, yet when I remove the updatepanels, the panel shows up without the 30px push. I have not really investigated this too much, but if someone has seen this type of issue and knows a quick fix, I would be appreciative.

THanks

Jason

I think all in all they will render about the same amount of HTML - and the server side processing should be the same with both. If anything the multi-view will be a bit slower due to the extra-overhead the control might have - but i'm talking miliseconds or smaller.

Remember when a panel has visible=False - nothing inside that panel is rendered to the clients computer.

regarding the push down - have you looked with the developer tools in IE / FireFox to see what block element is pushing it down?


Sounds good. I'll just go w/the multiview then and make life a bit easier, this will solve the 30px push as well so I will mark this as solved.

Wednesday, March 21, 2012

Parser Error with GoDaddy

Hi guys, I am in the middle of a website using Ajax with Godaddy, and getting this error as soon as I try to display my default.aspx. I have searched for hours on this, and cannot figure it out. Here is the page error that I get.

Server Error in '/' Application.

Parser Error

Description:An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message:Could not load file or assembly 'System.Web.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:

Line 1: <%@dotnet.itags.org. Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>Line 2:Line 3: <%@dotnet.itags.org. Register Assembly="System.Web.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856Ad364E35"Line 4: Namespace="System.Web.UI" TagPrefix="asp" %>Line 5:


Source File:/default.aspx Line:3

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

I have AjaxControlToolkit.dll, AjaxControlToolkit.pdb, System.Web.Extensions.Design.dll and System.Web.Extensions.dll in the /bin folder in the root. I tried to email godaddy with this error, of course they say they dont support 3rd party software and suggest I convert to the virtual server, yea right... This was working up until yesterday, I am baffled. But I can say, it seems godaddy is not a good choice to host on up to this point. Any Ideas anyone?? I have read the other treads, tried all the suggestions and still get this error.

I appreciate it...

Chris

Hi Srbytes,

Based on your description, your problem seems most likely caused by the Version property:

srbytes:

Line 3: <%@. Register Assembly="System.Web.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856Ad364E35"Line 4: Namespace="System.Web.UI" TagPrefix="asp" %>

You'd better modify it like below.

<%@. Register Assembly="System.Web.Extensions,Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>

Based on my experience, I suggest that you should better add it to your web.config instead of each page.

Here is the url that you should folllow up: http://www.asp.net/AJAX/Documentation/Live/ConfiguringASPNETAJAX.aspx

I hope this helps.

Best regards,

Jonathan

partial Display of CalendarExtend Control

I am using CalendarExtend control on one of my webpage but for some reason it's not displayed correctly. When I click on imageButton to popup calendar control it display under textbox but It's partially displayed (missing Thursday,Fri, Sat).

All the below code is inside Table.

<asp:TextBoxID="txtPartNumber"runat="server"Width="181px"></asp:TextBox>
<imgsrc="Images/Calendar.png"alt="Calendar"id="ImgPartNumber"/>
<cc1:CalendarExtenderAnimated="true"CssClass="MyCalendar"ID="CEInstallationDate"PopupButtonID="ImgPartNumber"TargetControlID="txtPartNumber"runat="server">
</cc1:CalendarExtender>

.MyCalendar.ajax__calendar_container {
border:1pxsolid#646464;
filter:progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr='steelblue',endColorStr='white');
color:blue;
width:250px;
}

Hi Bhavin,

I have tested your sample on my machine.It works pretty well on IE7 and on Firefox DXImageTransform.Microsoft.Gradient doesn't work but the issue you described above doesn't appear.

So I suspect that maybe your issue is caused on your system environment. Please upgrate your Ajax Control Toolkit to V10618 or V10920.

Hope this help.

Best regards,

Jonathan