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


Top 5 Contributors of the Month
david stephan

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

What is the value of the first item in an Enum?

Posted By :Narayanan     Posted Date :October 15, 2011    Points :40   Category :.NET Framework 
0

You can also find related Interview Question to What is the value of the first item in an Enum?  below: 

Is it possible to notify application when item is removed from cache ?

  
Yes.

You can use CacheItemRemovedCallback delegate defining signature for event handler to call when item is removed from cache.

For an example:

HttpRuntime.Cache.Insert(
"CacheItem1", //insert cache item
"",
null,
Cache.NoAbsoluteExpiration,
new TimeSpan(0, 0, 15),
CacheItemPriority.Default,
new CacheItemRemovedCallback(RemovalMethod)); //define method which needs to be called when item is removed from cache

The method will be like,
private static string RemovedAt = string.Empty;
public static void RemovalMethod(String key, object value, //method is declared static so that it can be available when cache item is deleted
CacheItemRemovedReason removedReason)
{

RemovedAt = "Cache Item Removed at: " + DateTime.Now.ToString(); //Shows the time when cache item was removed

} (More...)

Which method is used to return an item from the Top of the Stack?

  
Pop()method is used to return an item from the Top of the Stack (More...)

Which method is used to reads and removes an item from the head of the Queue?

  
Dequeue()method is used to reads and removes an item from the head of the Queue (More...)

How do you create a Custom action for an item in a list ?

  

Ans. This can be done by adding a new feature into SharePoint. You would need to use customaction tag in your elements.xml file and will have to set various properties like imageurl or UrlAction for your customaction. You can later add this feature into sharepoint using stsadm install feature command. (More...)

what are the Item Controls in WPF?

  
TreeView Control
ContextMenu Control (More...)

Do and Don't do in Enum

  
Do:
Normally, we are using Singular name for most enum types.use Plural name for enum type.
Use abbr. for enum type and their values.
Don't do:
Don't use Suffix on the Enum type names. (More...)

How do you create a Custom action for an item in a list ?

  
This can be done by adding a new feature into SharePoint. You would need to use customaction tag in your elements.xml file and will have to set various properties like imageurl or UrlAction for your customaction. You can later add this feature into sharepoint using stsadm install feature command. (More...)

How do you select an item using css class or ID and get the value by use of jquery

  
If you are using an element of html like < div> , < p> or any tag have ID TagId and class used TagClass then we select the element by below jquery code

$('#TagId') for ID and for classs $('.TagClass') and for value

var Val = $('#TagId').val(); // get the value in var val by id
Or for set the value in selected item

$('#TagId').val("print "); // set the value of a form input (More...)

What is an enum?

  
It is used to define constants. (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