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

Top 5 Contributors of the Month
david stephan
Gaurav Pal

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

How can we implement update progress in weplication?

Posted By :Ramesh P     Posted Date :October 31, 2010    Points :10   Category :ASP.Net 
The following code shows how to create Progress Bar Using AJAX.
There is an UpdatePanel , which has a Button into it. And Place an UpdateProgress which perform the defined progress for the action happens inside the UpdatePanel by any of the controls within it.

Since i have an UpdateProgress within the UpdatePanel, and have set the AssociatedUpdatePanelID="UpdatePanel1". The UpdateProgress has the "gif" image which looks like a progress.

Place a gif image of a progress bar and impletement the same thing for showing the progress to the user.

Please find the attachments if you are not able to see the design.


<asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <table> <tr> <td> <asp:UpdateProgress runat="server" ID="UpdateProgress1" DynamicLayout="false" AssociatedUpdatePanelID="UpdatePanel1"> <ProgressTemplate> <img id="Img1" runat="Server" src<Path of Gif or motion image file>" height="12" alt=""/> </ProgressTemplate> </asp:UpdateProgress> </td> </tr> <tr> <td><asp:Button CssClass="button" Text="Search" runat="server" ID="NewPage" /></td> </tr> </table> </ContentTemplate></asp:UpdatePanel>

You can also find related Interview Question to How can we implement update progress in weplication?  below: 

If you are using C language to implement the heterogeneous linked list, what pointer type will you use?

The heterogeneous linked list contains different data types in its nodes and we need a link, pointer to connect them. It is not possible to use ordinary pointers for this. So we go for void pointer. Void pointer is capable of storing pointer to any type as it is a generic pointer type. (More...)

Minimum number of queues needed to implement the priority queue?

Two. One queue is used for actual storing of data and another for storing priorities. (More...)

Is it possible to update a connection string stored in the Web.config file programatically? If Yes, then how?


Create a Configuration object. Then, update the connection string using the ConnectionStrings collection. Finally, call Configuration.Save. (More...)

How To Update Description Value for a Column in Table using SQL Command?

We can Update Description to Column using sp_updateextendedproperty System Store Procedure.
Sample Command to Update Description for Column in a Table:

EXEC sys.sp_updateextendedproperty @name=N'MS_Description', @value=N'My Description for Column Here' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MyTableName', @level2type=N'COLUMN',@level2name=N'ColumnName' (More...)

How do you implement thread synchronization (Object.Wait, Notify,and CriticalSection) in C#?

You want the lock statement, which is the same as Monitor Enter/Exit: (More...)

How do you Implement Timer Control in Javascript?

set Timedout("alert('5 seconds')",5000); Here the argument 5000 shows the millisecond value. (More...)

How would you implement inheritance using VB.NET/C#?

When we set out to implement a class using inheritance, we must first start with an existing class from which we will derive our new subclass. This existing class, or base class, may be part of the .NET system class library framework, it may be part of some other application or .NET assembly, or we may create it as part of our existing application. Once we have a base class, we can then implement one or more subclasses based on that base class. Each of our subclasses will automatically have all of the methods, properties, and events of that base class ? including the implementation behind each method, property, and event. Our subclass can add new methods, properties, and events of its own - extending the original interface with new functionality. Additionally, a subclass can replace the methods and properties of the base class with its own new implementation - effectively overriding the original behavior and replacing it with new behaviors. Essentially inheritance is a way of merging functionality from an existing class into our new subclass. Inheritance also defines rules for how these methods, properties, and events can be merged. (More...)

How to Update SharePoint List Items without Creating New Versions?

SystemUpdate method avoids updating modified and modifier fields.
here is the sample below.
SPSite site = new SPSite("http://mossportal/");
SPWeb web = site.OpenWeb();
SPList leaveslist = web.Lists["My Leaves"];
SPListItem collection = leaveslist.Items[0];
collection["Earned_x0020_Leaves"] = "1";
collection.Update(); (More...)

WHAT is update statistics

When we have to do a large processing on data just like deletion,updation or bulk copy so we have to update the indexes to take these changes into account so to do this UPDATE STATISTICS is used. (More...)

How to update and retrieve value from a session state object?

To add or update a session state item use the following syntax,
[CODE]Session["Item Name"]= value;[/CODE]
Ex:- [CODE]Session["Name"]= Abhisek;[/CODE]
You can also pass a variable.

To to retrieve a session state items value use following ,
[CODE]String name=Session["Name"].ToString();[/CODE]
You can also retrieve to other formats according the session state item's data. (More...)


Partial Upadate of a web page ,Like what ever the controls we place in update panel those will be be loaded
on every action update panel control.
Those controls which are placed outside the update panel are loaded on page submission to server.


Is dotnet frameword needed to implement silverlight?

No, It's a cross platform version of the .NET Framework which is included in the 6 MB Silverlight 4 download, so you do not need to have anything extra to be installed on the client in order to access Silverlight applications in the browser. (More...)

Can we implement Multiple Inheritance by using Abstract Class?

As the abstarct class can contain simple methods also, therefore it doesn't support Multiple Inheritance in DotNet. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

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