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


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

The Working Programmer: Multiparadigmatic .NET, Part 1

Posted By:      Posted Date: September 01, 2010    Points: 0   Category :ASP.Net
 
Software development isn't all about object-oriented design; it's about finding what works best, and incorporating it into your solution.Ted NewardMSDN Magazine September 2010


View Complete Post


More Related Resource Links

The Working Programmer: Multiparadigmatic .NET, Part 2

  

Finding the commonalities and variabilities within a system, and expressing them, forms the heart of design.

Ted Neward

MSDN Magazine October 2010


The Working Programmer: Multiparadigmatic .NET, Part 3: Procedural Programming

  

Procedural programming is often seen as "old school," outdated and useless in modern software design, but the design paradigm still shows up in a surprising number of places-including the compiler and MSBuild.

Ted Neward

MSDN Magazine November 2010


The Working Programmer: Multiparadigmatic .NET, Part 7: Parametric Metaprogramming

  

In this series we've examined procedural and structural programming, objects, and metaobjects. Now let's take a look at generics and put them to work as an example of parametric polymorphism in action.

Ted Neward

MSDN Magazine May 2011


The Working Programmer: Going NoSQL with MongoDB, Part 3

  

Wrapping up his examination of MongoDB, Ted Neward discusses predicate queries, aggregate functions and LINQ support, and provides some tips on hosting the NoSQL database in a production environment.

Ted Neward

MSDN Magazine July 2010


The Working Programmer: Going NoSQL with MongoDB, Part 2

  

Ted Neward continues his dissection of the alternative MongoDB database system, using exploration testing to investigate the underlying technology.

Ted Neward

MSDN Magazine June 2010


The Working Programmer: Inside SQLite

  

After tackling NoSQL, Ted Neward turns back to the relational world of SQL-SQLite, that is. Learn all about the lightweight, embedded database whose running footprint can be as small as one file installed in a client file system.

Ted Neward

MSDN Magazine August 2010


The Working Programmer: Going NoSQL with MongoDB

  

MongoDB is one of the principal tools of the NoSQL movement, which offers alternatives to the traditional relational database system. Learn its strengths and weaknesses as Ted Neward examines the document-based database in detail in the first of a series of columns.

Ted Neward

MSDN Magazine May 2010


Web Part working fine on the top-level page but 'Not Safe' error on lower-level pages.

  
Hi,

I have created a Web Part which reads and parses the SharePoint logs in order to display usage information of the page it resides on.  The Web Part works perfectly on the top page, reading and displaying the information desired.  However, once the Web Part is added to any page lower in the site heirarchy (sub-page) the same Web Part throws the following error:

Error 
 
Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.

Show Error Details
Hide Error Details

[UnsafeControlException: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.]
  at Microsoft.SharePoint.ApplicationRuntime.SafeControls.GetTypeFromGuid(Guid guid)
  at Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts)
 


Of course the current version of the Web Part is in the SafeControls list on the web.config.

The Web Part was originally designed to return site activity only for the top default.aspx page and worked fine but started to fail in the manner described above once I added the following line of code to return a SPCo

Why is the Content by Query Web Part CommonViewFields attribute not working as expected?

  
I am using the Content by Query Web Part to show data from a Custom List.  I have already added to the XSL "ItemStyle" sheet so that I can pick the correct Item Style.  That has worked fine - I have been able to show whatever fields I would like and apply any CSS Styles I would like to them.  The issue I am having is in formatting the field correctly.  I have two different fields in my current example that need to be formatted: [1] I want to show an Image, but right now it shows the URL  [2] I want to show Rich Text, but right now it shows all the HTML Code as Plain Text.  I have looked at many articles online, and they all tell me to change the following in the WEBPART file from: <property name="CommonViewFields" type="string" /> to: <property name="CommonViewFields" type="string">Thumbnail, Image;Teaser, RichHTML;</property> What I am doing wrong?  The Web Part still runs, but it does not format the fields any differently.  Thanks for the help!

Help with part of my footer not working right in IE7

  
I have two div's that make up my footer... One has a list of hyperlinks the other has a copywrite.  The hyperlinks css works fine and falls right after the content of the page. However the copywrite div does not work in IE 7 it seems that the float left does not seem to be working... Can someone give me some suggestions on how I can get this div to stay at the bottom of my page too..  #Copywrite { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; font-size: 50%; margin-left: 12px; text-align: left; float: left; width: 180px; clear: left; position: relative; } #hyperlinksList { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; font-size: 70%; text-align: right; float: right; margin-right: 12px; margin-bottom: 12px; width: 575px; clear: both; color: #0076CC; }  

Target audiences not working in excel services web part

  
My appologies i posted this originally in the pre-2010 forum So i'm reposting here: We have recently upgraded to Sharepoint 2010 and we're experiencing problems with the "target audience" field being available to the users. I am not the CA admin though so it'll make this a bit tough to get solved if the problem is there. What i'm looking for are the suggestions of things for me to forward to the CA admin to change or check if anything. We have a seperate Virtual Machine that is running 2010 that has this option available to users on that farm for some reason. however on our corporate farm we don't have that option available. Plus on top of this the quick launch items are not working with audiences as well to turn off the headers to links that have nothing in them due to security trimming on document libraries. I'm hoping that this being a more of an overview of things to check would help others who may have this problem as well. I've seen resolutions such as rebooting the server and such, however that's a bit lower level and we need some higher level things to check that may resolve the issue. Think the simple stuff first to check and lets work down the list. Doesn't matter how stupid it is but can we get a more compiled list of things to check to make sure that target audience visibility to users is enabled? Thanks!

Social Comments Web Part Not Working

  
I want to use Social Comments web part. When I import this web part to the web part gallery, It was imported successfully but when I use it in any web part Page I receive following message: Cannot Import This Webpart Here is the link from which I am following the steps to add this web part for my videos to be commented. http://msdn.microsoft.com/en-us/library/ff464368.aspx Please tell me the solution of it, that how can I use the web part.  There is a NOTE in the above link which is as follows: To use the Noteboard Web Part, enable the User Profile Service Application and make it available on the server. All users of the site must have the UseSocialFeatures profile permission. At my site Collection, User Profile Service has started But I am unable to find UseSocailFeature in my site collection.

Social Comments Web Part Not Working

  
I want to use Social Comments web part. When I import this web part to the web part gallery, It was imported successfully but when I use it in any web part Page I receive following message: Cannot Import This Webpart Here is the link from which I am following the steps to add this web part for my videos to be commented. http://msdn.microsoft.com/en-us/library/ff464368.aspx Please tell me the solution of it, that how can I use the web part.

Filter on web part not working for certain columns

  

Hi all,

I have a list of "Faults" - this contains the Shop Number that the fault was logged against (which is a lookup column to the "Shops" list), who logged the fault ("Created By") and the details of the fault ("Title").

If I add the list as a web part and filter by Created By, it works perfectly - I get multiple entries in the list for all faults logged by a certain person.

However, if I filter by a Shop Number - I only get a handful of entries in the list, going back a few days - anything older than that is simply not there.

Yet if I go to the main page for the Faults List (AllItems.aspx) and change to Datasheet view - the filter works perfectly, I can see EVERY entry for a particular Shop when filtering on Shop Number.

Any ideas? It only seems to happen when using a Web part OR a DFWP - as a result, I can't pass the Shop Number as a filter parameter to it, nor can the users see a complete history of faults when viewing individual shops.

I've no idea what has changed recently, other than deletng some custom views we had created in the Faults list - could this have caused a problem? Can the Faults list be "reset" somehow without losing any data? To clarify - it's ONLY happenning when the list is viewed as a web part of DFWP, when it's viewed in Datasheet m

Set the working/start directory for a Library web part?

  

Greetings all,

One of our departments has a relatively large library with folders, sub-folders and sub-sub folders. They want to be able to add a web part to one of their pages that displays items only within a sub-sub folder, rather than beginning at the root level of the library.

How might we customize the part so that it starts its display at the sub-sub folder we need?

Thanks!

--Dave


Categories: 
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