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

Top 5 Contributors of the Month
Post New Web Links

yield keyword

Posted By:      Posted Date: September 28, 2010    Points: 0   Category :ASP.Net


Can somebody explain me in simple language for what is the "yield" keyword used in C#.


View Complete Post

More Related Resource Links

MS SQL Server: Search All Tables, Columns & Rows For Data or Keyword Query

If you need to search your entire database for specific data, this query will come in handy.

So when a client needs a custom report or some sort of custom development using Great Plains, most of the time I will have to track down the data in the system by running this query and find the table(s) it is in.

Cutting Edge: C# 4.0, the Dynamic Keyword and COM


Are you a Microsoft .NET Framework programmer who struggles with critical legacy applications using COM objects that are beyond your control? Dino Esposito shows how to lessen the burden by going dynamic.

Dino Esposito

MSDN Magazine June 2010

Cutting Edge: Using the Dynamic Keyword in C# 4.0


C# 4 provide a new dynamic keyword that enables dynamic typing in what has traditionally been a strongly typed language. We explain how the dynamic keyword works and what it offers that casting, var, and System.Object cant' match.

Dino Esposito

MSDN Magazine May 2010

search textbox with search keyword inside?



how to make a search txtbox that includes the search keyword and when the user clicks the search keyword disappears

thanks for the help

Replicating the Keyword match feature from Google GSA



We are trying to replicate a feature in sharepoint search that the Google Search Appliance has called "Keyword Match".  You choose a keyword or phrase and map it to a url.  When a user searches with that keyword or phrase the result link that you've matched it to comes up first in the list of results.  I'm trying to find a similar feature like this in Sharepoint OOTB search web parts.  Can you advise?  Thank you!

Mark De Souza

keyword not supported 'wsid=

Hi I am getting this error some times but not able to figure out. I am using only sql server. Pleas help me out.

Find: "keyword" highlights but does not focus properly

Hi all, So like my subject line states, I can find "keywords" in my report which are highlighted but the focus is not rendering properly or rather it focuses on a section before the correct one.  Any suggestions? Tonya 

how to grab the top ten links of any keyword searched from bing.com and show it in datalist dynamica

i m havin .aspx      page               .aspx.cs pagei have textbox1 for entering keyword search           button1 for search that keyword in bing search engine and grab that 10 links and show that in datalist1           datalist1eg : hello in bing.comhas the top ten url links1 www.hellomagazine.com2 en.wikipedia.org/wiki/Hello3 en.wikipedia.org/?title=Hello_Kitty4 www.hellodesign.com....etc            should be shown in datalistif any body knows the full code please answer / mail me ponmanivannangj@mobiusservices.in

Use the NEW keyword to create an object instance.

Private Sub textadd(ByVal sender as Object, ByVal e as System.Windows.Controls.TextChangedEventArgs)         txtfirstname.Text = txtdisplayname.Text 'TODO: Add event handler implementation here.     End Sub I almost wasted hours on figuring this error, I don't know how to fix this I got this error

LINQ to SQL "Incorrect syntax near the keyword 'WHERE'"


I am having a problem that creeps up over and over when using LINQ to SQL.  I am getting the error: System.Data.SqlClient.SqlException: Incorrect syntax near the keyword 'WHERE'.

Now I have done a great deal of digging, and the only cause I can seem to find is when users are overriding the Equals() or GetHasCode() methods of the generated classes.  I am not overriding either.  I am getting this error on two different project with two different databases.  I have tried everything every post I have found suggests.  I have even scrapped my dbml file and re-created, all to no avail.

Anyone have any thoughts?  They would be greatly appreciated!

Ryan Sakry
Program Manager
Retail Information Technology Enterprises

How do I search for part of a keyword?


I am using the sharepoint search and I am not able to search for a part of the keyword.
EX: Word in database - Sample
Search keyword "sam" should return all the documents which have this word in them like "Sample".

But this is not happening. Could you please let me know with some example code for this?

I even saw http://msdn.microsoft.com/en-us/library/ms467796.aspx
for the prefix and nothing much info present.


what is the use of "Dynamic" keyword in wpf ?

what is the use of "Dynamic" keyword in wpf ?

Question regarding casting and as keyword



I have a question regarding casting that usually we do and the "as" keyword in C#.

E.g. in my code I use the following:

int counter = (int)strReturnValue;


Or I can also use the following:

int counter = strReturnValue as int;


Is there any difference between the above lines of code? As per my understanding if we use "as" keyword, it may not throw exception if the value in strReturnValue variable cannot be casted to int.

Please correct me if I am wrong. 

Keyword Search [me] ?


When performing a Keyword Query - in this instance within a Core Results Web Part Fixed Keyword Query - how to specify the current user?

e.g.  rather than


how can you achieve the equivalent of:


Of course I could create a Web part and inherit the from CoreResultsWebPart, but I'm surprised this isn't possible natively?


keyword search doesn't return any results



Can anybody please help me with the whole issue of keywords definition?

Here is what I've got and do:

Sharepoint 2010 server and FAST Search server for Sharepoint 2010

I create site collection "A" using FAST Search center template

I enable SharePoint Server Enterprise Site Collection Features

In FAST Search Keywords section I define a keyword "M

keyword search - anyone got code or know where I can find it, tips ?


I need to search some records for one or more keywords ( user entered) and then display them in order of matching i.e. at the top all 3 keywords, at the bottom, just one keyword found.

Before I do this.... has anyone done it before ?

I was going to go through each sql record and search for the words, presume that best way ?

Volatile keyword Usage

Hi All,
Any thoughts on volatile keyword in .NET.
I got very little information in net.
Do anybody know about the scenarios of using the Volatile Keyword?

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