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

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

Is MicrosoftAjax.js downloaded every page view?

Posted By:      Posted Date: October 20, 2010    Points: 0   Category :ASP.Net

I'n new to ASP.NET AJAX and have a few questions about the overhead the new js libraries add to my website.

File sizes:

MicrosoftAjax.js = 82KB (minified)

MicrosoftAjaxWebForms.js = 29KB (minified)

100k? ouch.


Do clients download MicrosoftAjax.js and MicrosoftAjaxWebForms.js on each initial page view?

Does this mean the initial page load is weighted with the additional size of those two JavaScript files?

Is it possible to load those files only once and reuse them for each page in an application?

What about caching?

View Complete Post

More Related Resource Links

WebDev.WebServer.exe has encounted a problem and needs to close when trying to view page in browser


Hi, whenever I load an aspx page in vwde2008, I get the message in the subject of this post.  After I click Ok on that, I get a dialog box, Unable to Connect to the ASP.Net development center.  What can I do to troubleshoot?

I am using Windows XP SP3, vwde2008 with SP1, on a HP desktop.  Also using Office 2003 if that is relevant at all.

Thanks, Justin

Crystal Report Asking for Database Authentication each time when I view Page.


Whenever I open my Crystal Report page, I am taken to the Database Authentication page where I am asked for

User name
Data Name

each time.

Is there a way to avoid this and I save these authentication in my page once.

I am using VS2005, C#.

Any Help will be appriciated.


Add page numbers for paging in data view web part


Hello all,

Has anyone found a solution that will allow me to have page numbers for paging in a data view web part. For instance, if I have 40 items/rows and I set the paging to display 10 items, I'd like the paging to show 1 2 3 4 rather than showing 1-10 and having to click next over and over to get to a specific item.

I found this article, but it is for 2003 and doesn't seem to apply to 2007 or if it does I am not able to really figure out how.


Please help!

Thanks in advance.


Page View Count And Users Online

Hello forum I have a couple of questions.  How do I go about tracking the number page views for my web page in a sql table?  Secondly, how do I track the number of users currently online? Any help will be greatly appreciated. Thanks  

unauthorised to view this page

Hi I have an account which is a member of domain admins ad group, it is site collection administrator, its given full control on the top level site. Yet when i try and access the sharepoint and log in with this account i get the HTTP 401.1 IIS error. I can log into the same sharepoint with one of the other service accounts. If anyone could help that would be appreciated or if you could point me towards some info that could help. Thanks Simon

making page work after DB update in Form View

I could really use some help with this issue. I have a DropDown that allows the selection of a Category Code. The selection populates a Gridview with details of records matching the Category Code. I have only enabled the Select option on the Gridview, which when clicked populates a Formview in Edit Mode with the full record information. When editing is complete and the Update link is clicked, I can not get the page to properly reload/postback. When another Category Code is selected from the Drop Down the Gridview does not report a list of records.   Any help would be greatly appreciated.   Thanks,              

How to pass page column value to data view parameters

Hi All, I have a page library with custom column, lets call it "FormCourseId". On that page I have data view which retrieves data from custom list filtered by page column "FormCourseId". In parameter wizard creates the following tag <ParameterBinding Name="ListCourseId" Location="Form(FormCourseId)" DefaultValue=""/> Then I try to use that parameter in XSLT of data view as a filter creteria.  <xsl:param name="CourseId"></xsl:param> It does not work for me. If I change data view parameter source from Form to Query String and pass parameter as url one it works fine. What is wrong with page column parameter binding? May be if FormCourseId column is not presented in form layout as a field(I do not need to show that field in user form of the page) it could not be treated as form parameter?

Design view displays blank page

I'm relatively new to VWD and am using the Express version.  My web site is simple with a few connections to SQL Server data and to XML documents just to populate controls to display data.  After adding a new web page, linking its controls to an XML document and running it successfully, I discovered that I can no longer display the page in the Design view, I just get a blank screen.  To further confuse things I opened my root master page, which appears just fine.  I then opened the master page derived from this root master and it shows me content placeholders but not the controls inside the content placeholders.  If I have one of the master pages open in VWD and then I open the base page, I now see the data from the root master page but nothing from the base page or the derived master page. I think I'm doing something basically wrong but I don't see it.  Before I start deconstructing my web site I'm hoping someone can help me.  I have looked at a lot of posts on this site but I don't see one that answers my problem.  I did see the one about style and links and their ordering in the aspx file, but this isn't my problem as I currently have neither of these in use. TIA Jon

view mht file in page viewer webpart

Hi, I use infopath template to publish weekly news to our corporate intranet. On my sharepoint 2007, everything work fine. but on my SharePoint 2010, it's not the same result. I have upload the template on my site. Create the news and save it. At that point it's good. Next, I open the xml file in InfoPath 2010 and export to web as mht file. Then on my site home page, I add webparts "Page Viewer" and paste the link to see this mht. The problem is when I go on the site, it's always a pop-up ask me to download it (Save or Cancel). I'm not able to see it in the page. On my 2007 it's work fine. Did someone have any idea to resolve my problem ? MOSS 2007 IIS 6 windows 2003 MOSS 2010 IIS 7 Windows 2008 x64 SP2 Thx to allDavid

Adding ListViewWebPart to a page - how do you set its view to

If you add a ListViewWebPart to a wiki/web part page (such as the Links list), it will default to the <summary View>.  If you add it using code, it will default to the default view.  How can I set it to use the <Summary View>? I tried setting node.Attributes["BaseViewID"].Value = "0" in the web part view xml, but that didn't do anything. Any thoughts? ListViewWebPart wpLinks = new ListViewWebPart(); SPList listLinks = site.Lists["Links"]; wpLinks.ListName = listLinks.ID.ToString("B").ToUpper(); wpLinks.ViewGuid = listLinks.DefaultView.ID.ToString("B").ToUpper(); AddToolBar(wpLinks, "Add new link"); private void AddToolBar(System.Web.UI.WebControls.WebParts.WebPart wp, string label) { // Get the view used in the web part by using reflection PropertyInfo viewProp = wp.GetType().GetProperty("View", BindingFlags.NonPublic | BindingFlags.Instance); SPView webPartView = viewProp.GetValue(wp, null) as SPView; // This is necessary after the infrastructure update, without it you can't get to the XML of the view webPartView.GetType().InvokeMember("EnsureFullBlownXmlDocument", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.InvokeMethod, null, webPartView, null, System.Globalization.CultureInfo.Current

How to link Title to it's associated page in list view without URL path column visible -bug?

I don't know if this is a bug or if I'm an idiot (or perhaps both, I'm open minded).   My site I'm developing is a site with publishing features activated where all my news stories are pages. What I want to have is a sortable list (the type hypothetically achieved using the XsltListView Web Part) the lists these pages with 3 columns visible: The Date created, the title (not the page name), and the author. The tricky part is that I would like the title, when clicked on, to take the person to the page. I'm actually almost there. I've created a new view with these specifications except for one issue. To make the title linked to the page, I have to have the column "URL Path" in my list view. When I remove this column, the titles instead all link to the root of the directory I'm in (ex: if I'm in Pages/Forms/My_List.aspx it will link to Pages/Forms/) Is this a bug, or is the URL Path required for the link to work? Is there a way to hide the column? Thanks.

extract page view to library

i have a infopath form, within this form there 10 view availeble. a few pages is just for entering a company details and some extra data like meeting request, intervention, ... than there are some page just for a travel request: on a meeting or intervention these are different pages because some extra data is needed. those pages have a button that saves the document and send the form to a different form library. now the whole form is transported to the new library. is it possible that i can export ownly the travel view page, to the new form library?   regards  

View Page Content History

Hi Folks I have a page library in a publishing site that has major and minor versions. I can click on a pages context menu and select view history and it gives me a list of all the major and minor version along with what appears to be a snippet of the page content. The problem is that I cant view the historical version of a page in it entirety. If i click the date or context menu > view; I cant click the title like you can on a document and view the historical version. How do I see the complete page content of an old version of a page? David

How to Create a Tab View in sharepoint page

Hi All, I want to create 5 tabs in sharepoint page please tell me how can I do that and what controls I must use? see the sample example here: http://www.transport.govt.nz/   thanking you

flow doc reader showing 2 pages on 1 page view mode

Got a question about a flow doc reader. I'm using it for a report page and its main purpose is its scroll mode.  However, I'm wanting to use its 1 page mode for a print preview kind of thing.  If i have the flow docs page size set to roughly 8.5" x 11" the one page mode displays it perfectly to how it would be printed.  If i change the page size to a landscape format roughly 11" x 8.5" the doc reader crams everthing in on one page. Question is: Can you modify the doc readers one page mode to display pages as they would be printed? If not is there a way you can set up a print preview dialog with the flow doc?  Thats equally as good. Another random question.  When I call the flowdocreader.print method it displays a print dialog.  Problem is the close button on the dialog lines up with the print button on the toolbar.  If you try to close the dialog it clicks through the print dialog and hits print again.  This causes an infinite amount of print dialogs to appear and you have to close each one of them with cancel.   Is there a way to set focus to the print dialog or change its start up postition. Any feed back will be greatly appreciated.

An MVC view page in WebForms 4



I've read somewhere that one can actually mix web forms and MVC in the same app. I have a scenario that might benefit from this. I need to have a page where the FORM cannot have a RUNAT in it. It'll be used for file upload. I want almost like an old classic ASP type of page that I can still include some code behind logic. I think the answer is an MVC view page, is it not?

How do I go about creating this page?

Sharepoint 2007 View, append url with Javascript and reload page


Hi all. I have an odd requirement.

I have created a number of views for a custom list I have created. I need to be able to filter these lists by what "Quarter" we are currently in (Jan-Mar - 1; Apr-Jun - 2; Jul Sep - 3; Oct-Dec -4) compared to when the item was created (i have a calculated column that uses the created date to have the quarter). Each view is a new page (as you have created a view from within Shaarepoint)

I haven't been able to work out how to do this in the CAML query (as I can't figure out how to reference todays date in CAML).

With this out of the question, I then tried to use the Today column hack, but as this isn't dynamic, this doesn't work.

My final efforts now revolve around using a basic javascript function to append my url with the following:

?FilterField1=CreatedQuarter&FilterValue1="+ currentQuarter;

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