.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

Partial Page Updating

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

I have a simple Jquery that runs on load, but after partial page rendering it doesnt work, here is what I am trying, this isnt even working on page load.

<script type="text/javascript">
            function addHandler() {   
                var runningTotal = $("#dnn_HiddenField1").val();
                $("#MRRP").html (runningTotal); 



Thanks in advance

View Complete Post

More Related Resource Links

Need help with partial page caching


I have a banner on the master page that I don't want cached even though some of the content pages are cached.  I'm using the adrotator control, which I know doesn't cache, but I have code in the AdCreated event, and that does cause it to cache.

I've been struggling with this for several days now.  I've tried putting the code in another page and using an iframe to display it.  This worked except at times what got displayed was the headers of a page within a page withing a page.  This would mysteriously come and go, but when it happened, it would crach browsers and it looked terrible. 

I'm thinking of using ajax, but I don't already have a scriptmanager control on the master page.  Before I remove the scriptmanager control from all the content pages, I'd like to try to use partial page caching.  I've Googled it, but I don't understand what I've read.  CAn someone simplify this for me?

Partial Views and Popups...After clicking on Close need to refresh the page....


Hi All,


I amusing the PopUp example as suggestedin the above forum link.....

But now i want to Refresh the page after clicking on Close(x) ...

So please help me....

Please advice...

Thanks in advance...



Updating master page PlaceHolder with UpdatePanels

I have an ASPX page with two columns. The left column has a GridView control that contains a list of article titles as LinkButton controls. When a LinkButton control is clicked, the content of the article is displayed in the right column. Each of the columns is wrapped in an UpdatePanel. So far everything is working as I wish.Each article title has further descriptive text that is defined in the code-behind as labels within a Div object. Each Div is added to a PlaceHolder object on the master page. References to the Div objects are added as attributes to the LinkButton so that JavaScript is executed when the user rolls over the title and the Div object with the descriptive text is displayed.The rollovers are working fine and displaying the correct text for the first GridView page. However, when I click a button in the GridView's paging row to advance to the next page of the GridView list, the rollovers are not updated. The text is what was defined for the first GridView page of titles. How should I get the PlaceHolder objects to update when the UpdatePanels are updated?

Display popup with partial page postback


 I am using an updatepanel and a grid is placed within the same.Now,I have a checkbox corresponding to each row of the grid.If I check it,say corresponding to one row and click a button(placed outside the panel), a popup will be opened which is a separate aspx page having its own functionality.

The requirement is like I need only the panel to refresh not the whole page.

Is this possible?Any help is appreciated.

Partial View Updating Parent VIew ViewData?


From MSDN:

"When a partial view is instantiated, it gets its own copy of the ViewDataDictionary object that is available to the parent view. The partial view therefore has access to the data of the parent view. However, if the partial view updates the data, those updates affect only the partial view's ViewData object. The parent view's data is not changed.


Is there a common way around this?

For instance I have a View containing two Partial Views (User Controls) that source the same data from the Parents ViewData. The first Partial View is able to update (add/delete) certain data from the Parents View Data, however the second Partial View sources the same data but obviously isn't reflecting the changes owing to the above MSDN statement.


ASP.NET partial page upload without Updatepanel /With jQuery and example


I have an ASPX page .In the Top i am displaying 5 categories (Ex : Pen,Book,Shoe,Mobile,Mirror) When i click on any of the categories,I want to show the products under that category below the header. I dont want to reload the entire page for this.I want to maintain my page as it is (The header,footer and side panels would ) when a click happens except the center place of the image (may be a DIV or Table to show Product). Whats the best way to do this ?.I dont want to go for the ASP.NET Ajax update panel.I am already using jQuery in my project.So is there anyway to do this with jQuery ? Please advice .Thanks in advance

Updating the page formatting on existing pages.


Hi All

I moved the Quick Launch bar to the bottom of our intranet (MOSS 2k7). I created a custom master page and applied it to all the existing sites.

My issue now is that all the existing sites have a large blank space where the quick launch was. I need a way to resize TitleAreaImageCell and LeftNavigationAreaCell without opening every page. Do i have to update the site definition? or create a custom site definition and apply it?

Thanks, Ten

partial page returns an error, the same code on a full page doesn't


i have after a lot of help and some major frustrations, finally got my database returning data. i am using a .edmx file to hold most of the database information and some additional model classes (for instance particular queries joining 2 tables)

i have a model


namespace iliteratimvc.Models
    public class TitleModel
        public string MsTitle { get; set; }
        public string MsDescription { get; set; }
        public DateTime MsUploaded { get; set; }
        public int Status { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }

and controller code


public ActionResult RecentMSS()
            var rmss = (from m in ilitAuth.Manuscripts
                        join a in ilitAuth.AuthorDetails on m.MsAuthor equals a.UsID
                       where m.Status == 1
                       orderby m.MsUploaded descending
                        select new TitleModel
                            MsTitle = m.MsTitle,
                            MsDescription = m.MsDescription,
                            FirstName = a.FirstName,
                            LastName = a.LastName
            var rmssList = rmss.ToList();

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