.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Page render issues everywhere

Posted By:      Posted Date: October 04, 2010    Points: 0   Category :SharePoint

Sites appear to have no theme/master page applied at all when viewed on client PCs.  When viewed on the server, IE throws "Object expected" script errors on nearly every page, usually referring to an .aspx file.  This applies to Central Admin pages as well.

Central Admin renders fine on client PC's, but it actually occasionally loses its theme as well.  Even if it does render properly, some pages (so far just the Create Site Collection page, but I haven't browsed through all admin pages yet) throws a similar script error for an .aspx file.

I'm not sure where to begin!  Any guidance would be appreciated.

(P.S. Please don't forget to mark this post as an answer if it has helped you)
Eric Legault: MVP (Outlook), MCTS (SharePoint)
Owner: Collaborative Innovations
Twitter: elegault
Blog: Eric Legault My Eggo

View Complete Post

More Related Resource Links

Page Header, PrintOnFirstPage=False, HTML render fine, PDF export leaves extra space

As it says in the header.Setup:SSRS 2008, VS 2008 SP1Local Mode, rdlc fileDesign:Make a 1/2" Page header with a text box in it. Set PrintOnFirstPage=FalseBody contains a Table that spans multiple "hard" pages.Results:Renders to HTML in the report viewer just fine.PDF export leaves blank 1/2" at the top of page 1. With no header for page 1, I had hoped it would remove the extra space the same as in the report viewer.Question:Any way to tell SSRS not to leave space when page header is turned off for the first page?Attempts:Tried putting everything in a rectange in the header and set the visibility to false. Still leaves space.

Render XML text *inside* of an ASP.net page?


I have a block of XML text I need to show the user (so they can copy/paste the XML from the screen)

I use StringWriter() to make the XML a String but when I use Response.Write(xmlString) I get the following error

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '<?xml version="1.0" '.

I guess IE does not like rendering XML in the middle of a page?

is there anyway to show the XML data in the middle of my ASPX page?

Many thanks! :)

1 page, 2 validationgroups and 2 validation summary issues


Hi all,

I have one page, on which I have a part with controls and one validationgroup, with the respective validation summary.

I have another part on the same page with another validation group, and another validation summary.

The thing is that, when I press btnGo or btnGo2, both validationsummaries trigger, and both show all validation messages. For other words, it seems that the validationgroups are not working.

My html:

<!--Group 1-->
<tr style="padding-top:3px;">
    <td class="mgmCell">
    <td style="padding-left:5px;">
        <asp:TextBox ID="txtName" runat="server" ValidationGroup="Group1"/>
        <asp:RequiredFieldValidator ID="rfvName" runat="server" ErrorMessage="Name" Text="*" ValidationGroup="Group1" ControlToValidate="txtName" />
    <td colspan="2">
        <asp:Button ID="btnGo" runat="server" Text="Go" ValidationGroup="Group1" OnClick="ClickEvent" />
        <asp:ValidationSummary ID="vs1" runat="server" ShowSummary="fal

Timer control issues...page gets slower and slower....


 Hi all,

I have a Update panel with a Timer control inside the <ContentTemplate> so the JavaScript timing component is re-created only when each postback finishes. I am testing with static data in a small table. I query this table every 3 seconds. It works great for the first 5 min but then it starts to take longer to retrieve the data.... (I can see that with a time stamp I post back in a Label control).

I am not sure why that is happening. I thought that was because I had the Timer control outside the UpdatePanel (as I was using a Trigger) but I moved that inside the UpdatePanel but still get the same results.

What could be happening here?

Thank you


Excel Render - Print Header on Each Page


Hello Microsoft or Forum Members:


This seems like a simple Microsoft Based Reporting System 101 feature...But I can not find out how to do it (among other things that seem like it should work with Microsoft rendering to Microsoft).


How do I make the SSRS 2005 Header for the Report print on each of the pages in excel once it is rendered from SSRS?


All I want is an answer by MSFT that says "YES" it can be done and how or "No" it is not currently available.


I noticed I am not the only one with this type of simple question:

(see this unanswered post)


render data - BCS profile page



I am searching an external source(SQL Server) using BCS, the content coming from the table is in html format (having tags, stored in table) and it is not rendering into html on a Profile Page (when i click search result to view individual item).

When I search for something it shows me html data as text, I want this text to be rendered into html so that its readable.

HTML data coming from database :

 "<html xmlns:msxsl="urn:schemas-microsoft-com:xslt"><head><META http-equiv="Content-Type" content="text/html; charset=utf-16"><base target="_blank"><style>BODY, TD{background-color:#ffffff;font-family:verdana;font-size:10pt;}</style></head><body><table cellspacing="2" cellpadding="4" width="100%" height="100%"><tr><td style="font-family:verdana;font-size:16pt;">Car won't start</td></tr><tr><td style="color:#666666;font-size:9pt;">KBA-01000-56GTRK</td></tr><tr><td style="font-size:10pt;font-weight:bold;color:#000066;border-bottom:1px solid #999999;">Problem</td></tr><tr><td>The user cannot start their car.</td></tr><tr><td style="font-size:10pt;font-weight:bold;color:

ReportExecutionService.Render multi page reports and secondary streams (2008R2)


Hello.  I found the example that uses 'streamIDs' to determine the number of pages in the rendered report.  However, steamIDs always returns a zero length array.

The workaround to get all the pages in the report:

  pages = new Byte[0][];
  numberOfPages = 1;
  byte[] currentPageStream = new byte[1] {0x00}; // put a byte to get the loop started
  while (currentPageStream.Length > 0)
   deviceInfo = String.Format(@"<DeviceInfo>" + _deviceInfoAddl + "<StartPage>{0}</StartPage></DeviceInfo>", numberOfPages);
   currentPageStream = _renderEngine.Render(_renderFormat.Name, deviceInfo, out extension, out encoding, out mimeType, out warnings, out streamIDs);
   if (currentPageStream.Length == 0 && numberOfPages == 1)
   renderException = EnumRenderException.ZERO_LENGTH_STREAM;

load custom control after page render



i have few custom controls that take some time to load,how can i make the page render all is buttons and in background the controls will do there job?

Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Using jQuery to directly call ASP.NET AJAX page methods

Here I am looking to explain how to call page methods using jQuery. Using jQuery to directly call ASP.NET AJAX page methods

Reduce ASP.NET Page size and complexity using JQuery

This is my first post on asp.net blog. ASP.NET Ajax and JQuery are two different ajax framework. In this post I will show, how we can enhance gridview using ASP.NET Ajax and JQuery. I also compare the implementation of these frameworks. In next posts i will explain more about JQuery and ASP.NET Ajax and also tell you "How to combine the power of both framework". My Future post will related to ASP.NET and related frameworks.


I have 2 web pages. First page has a textbox and a button control.

when I enter test and click on the button , system goes to the second page. And in the second page I want to access the Textbox in the first page. When I try to do this I get the following error.

"Object reference not set to an instance of an object. Following is my code :

Dim txt As New TextBox

' Find the server name on the previous page
txt = CType(Page.PreviousPage.FindControl("TextBox2"), TextBox)
If Not IsNothing(txt) Then
Response.Write("[Name Not available]")
End If

I know I could do this with session, but I want to use the Page.PreviousPage.FindControl. Any help is greatly appreciated

Unique content within master page based on conditions met


 Hi all-

I would like to present users with unique content based on certain conditions being met as they land on the home page (default.aspx).  The condition logic will be in the VB code behind Page Load event. The content will go in a content placeholder as specificed from the master page. 

However, the content change wouldn't be something small (ie making a panel or label visible or not) but rather it will be different HTML,  Divs and databound gridview content.  The HTML content will be stored in the database.

Can someone point me in the right direction for best practices on how to accomplish this?


Launch CMD File From ASPX Page


My organization uses a CMD file to install updated files for a major enterprise application. Currently, we send out an email to users with a link to the file and instructions to run it, BUT inevitably users don't update their machines until their in field and try to start the app.


We're now liking the idea of using an ASPX page to prompt the users to run the updates and to capture the fact that the updates have been run. I realize that we can't capture the success or failure of the update. But we'd like to capture the user accessed the page.


Is it possible to embed into the markup for the page a link to the file on the local intranet that the users can click on to run the file?

The user accessing the page would capture that they did just that. We'd deal with wether or not the update was actually installed or if it failed later with them directly.

Handling 404 page not found with Error page



      How do i handle 404 page not found?

Setting the default start page in godaddy hosting?


 How do you set the start page with godaddy hosting? I can see no way of doing this! You do not seem to have access to the IIS settings that allow you to change it!

Need help redirecting users to personalized page


 Hi, first timer here so be gentle.


I've been able to create a cool little website, it's up and running with users logging in and out, I created roles so my administrative team can see sensitive data that's not available to regular and anonymous users.

Now they would like me to create a page specific to each user.  For instance when user A logs in they are redirected to a page that has information that pertains to user A only (like a list of their benefits/ their remaining vacation time). This page needs to be accessible only to user A. 

I've watched a ton of the videos but have yet to see one that covers this topic, any help would be great!!!





ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend