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

Top 5 Contributors of the Month

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

What is update panel and script manager in .NET

Posted By :Ashutosh Jha     Posted Date :July 30, 2014    Points :40   Category :.NET Framework 
Update panel is used when you are working with some of the asp.net controls like dropdown box, buttons and you don't want the whole page to get refreshed after each event then put that section of controls inside the update panel. And script manager is used to support the update panel. You can define script manager directly from the .net tool box-

<asp:ScriptManager ID="ScriptManager1" runat="server">

And update panel you can use like this-

<asp:UpdatePanel runat="server" id="UpdatePanel" updatemode="Conditional">
<asp:AsyncPostBackTrigger controlid="UpdateButton2" eventname="Click" />
<asp:Label runat="server" id="DateTimeLabel1" />
<asp:Button runat="server" id="UpdateButton1" onclick="UpdateButton_Click" text="Update" />

You can also find related Interview Question to What is update panel and script manager in .NET  below: 

Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?

AsyncPostBackTimeout Property needs to set which gets or sets a value that indicates the time, in seconds, before asynchronous postback time out if no response is received from the server.

The default value of this property is 90 second. We can also set the user defined error message using asyncpostbackerrormessage property (as shown in above code) for time out. (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.


The default layout manager of a panel is_________.?

1, FlowLayout
2, BorderLayout
3, GridLayout
4, NullLayout

I think you may know : 1 (More...)

Is it possible to use Multiple Script Manager in the Web page?

No , I think, It is not possible to use it .But Single Script manager is enough. (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 to add a combo box dynamically at run time in Java script?

document.forms[0]..options[index] new Option("Add text Value") (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...)

What the different between "Script declared in head section" and "Script declared in body Section"

Script declared in Head Section, Page Loading time the script was executed. you call the script explicitly then only use of this script.
Script declared in Body section, it execute the time of body section load. (More...)

Which of the following method enables you to disable the layout manager for a container?

1, container.setLayout(0);
2, container.layout(null);
3, container.layout(0);
4, container.setLayout(null);

The Answer is : 1 (More...)

What is the result of below given line of code in Java Script? 5+4+'7'

The answer is 97.

As 5 and 4 are integer so total becomes 9 and it's add '7' to it as string so it becomes 97.

What is the default Orientation of Stack Panel?

The Default Orientation of Stack Panel is 'Vertical'. (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