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




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


Post New Question Subscribe to Interview Questions
 
Quick Links For Interview Questions Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  OOPs  JQuery  JavaScript/VBScript
BiztalkPatten/Practices.IISWCFWPFWWF
NetworkingAptitudeOthers  All    
 

Interview Questions And Answers

What is the use of UpdatePanel in ASP.net?

Author: Syed Shakeer Hussain          Posted Date: December 29, 2011    Category: ASP.Net     Points: 40

ASP.NET UpdatePanel controls enable you to build rich, client-centric Web applications. By using UpdatePanel controls, you can refresh selected parts of the page instead of refreshing the whole page with a postback. This is referred to as performing a partial-page update. An ASP.NET Web page that contains a ScriptManager control and one or more UpdatePanel controls can automatically participate in partial-page updates, without custom client script.

Can you update the data in a view?

Author: Syed Shakeer Hussain          Posted Date: December 02, 2010    Category: Sql Server     Points: 15

Answer: A view is created by joining one or more tables. When you update record(s) in a view, it updates the records in the underlying tables that make up the view.

So, yes, you can update the data in a view providing you have the proper privileges to the underlying tables.

Where to Use Session object?

Author: Syed Shakeer Hussain          Posted Date: October 27, 2010    Category: ASP.Net     Points: 10

1) When you want to pass value/object to another page you can use this session object.

2) When you want to save (temporary) some data for that particular user , you can use this session object. Eg., Passing login information of the user from one page to another

Where Session is Stored in ASP.NET?

Author: Syed Shakeer Hussain          Posted Date: October 27, 2010    Category: ASP.Net     Points: 10

There are three locations where a session can be stored :

1)InProc : If you set this mode, then session is stored in Web Server worker process(aspnet_wp.exe). This is by default and the performance is fast because it resides in the same worker process.

2)StateServer : If you set this mode, then session is stored in a separate process in the server called aspnet_state.exe.

3) SqlServer : If you set this mode, then session is Stored in SQL Server.


Name the Implicit .NET Namespaces in WPF?

Author: Syed Shakeer Hussain          Posted Date: October 26, 2010    Category: WPF     Points: 10

WPF maps all of the following .NET namespaces

.System.Windows

. System.Windows.Automation

. System.Windows.Controls

. System.Windows.Controls.Primitives

. System.Windows.Data

. System.Windows.Documents

. System.Windows.Forms.Integration

. System.Windows.Ink

. System.Windows.Input

. System.Windows.Media

. System.Windows.Media.Animation

. System.Windows.Media.Effects

. System.Windows.Media.Imaging

. System.Windows.Media.Media3D

. System.Windows.Media.TextFormatting

. System.Windows.Navigation

. System.Windows.Shapes

Name the built-in markup extensions in WPF?

Author: Syed Shakeer Hussain          Posted Date: October 26, 2010    Category: WPF     Points: 10

The following are the built-in markup extensions:

1)Binding:-To bind the values of two properties together.

2)StaticResource:-One time lookup of a resource entry

3)DynamicResource:-Auto updating lookup of a resource entry

4)TemplateBinding:-To bind a property of a control template to a dependency property of the control

5)x:Static:-Resolve the value of a static property.

6)x:Null:-Return null

How to Change the BackGround Color of a Button dynamically in WPF?

Author: Syed Shakeer Hussain          Posted Date: October 26, 2010    Category: WPF     Points: 10

System.Windows.Controls.Button b = new System.Windows.Controls.Button();

b.Content = "OK";

b.Background = System.Windows.Media.Brushes.Red;

How to use MediaPlayer to play an audio file in WPF?

Author: Syed Shakeer Hussain          Posted Date: October 26, 2010    Category: WPF     Points: 10

MediaPlayer player = new MediaPlayer();

player.Open(new Uri("music.wma", UriKind.Relative));

player.Play();

How to use SoundPlayer to play a sound in WPF?

Author: Syed Shakeer Hussain          Posted Date: October 26, 2010    Category: WPF     Points: 10

The following code shows how to use SoundPlayer to play
a sound:

SoundPlayer player = new SoundPlayer("tada.wav");

player.Play();

Why is Shape.Stroke a Brush rather than a Pen in WPF?

Author: Syed Shakeer Hussain          Posted Date: October 26, 2010    Category: WPF     Points: 10

Shape's Fill and Stroke properties have the same role as GeometryDrawing's Brush and Pen properties: Fill is for the inner area, and Stroke is for the outline. Internally, a Pen is indeed used to create the outline of the Shape. But rather than exposing the Pen directly, Shape defines Stroke as a Brush and exposes eight additional properties to tweak the settings of the internal Penwrapping the Stroke Brush: StrokeStartLineCap,StrokeEndLineCap, StrokeThickness, and so on.
This unfortunate inconsistency was created because setting the Pen-related properties directly on the Shape is simpler than using a separate Pen object, especially for the common case in which all you're setting is the Brush and the Thickness.
« Previous12345678910….1819Next »
 




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