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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

installing a default J-Query library

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :ASP.Net

Hi All,


I remember once reading about installing a new template of J-Query library when there is an update for instance the default is 1.4 (in VS2010) but I would like to be able to replace this with 1.6 and this is somehow done in the templates but I can't find out how. Can anyone share this with me please.

The same happens for Ajax.



View Complete Post

More Related Resource Links

When i click on any other folder in the document library that will navigate to default view of DL?



I have document library with having some folder in the same ,i have displayed my library in the page as Treeview, so when i click on any of the folder in the library i need to navigate allitems.aspx page i.e default view page of the document library ,the document library having views.Suppose when i am in other view i have selected folder from library treeview folder is changing but view not navigate to default view.

pls help 


When the user want click on document library that should be navigate default view



I have document library which is having folders,the document library i have displayed as tree view in the left side of the page.

Here Document library having views,suppose i have selected one view on the document library it is navigating the particular view that is good but when i am trying to click document library folder still the page in same view do not navigate the default view .

I need when ever i click on any of the folder in document library that should navigate defualt view ,could you please help me on this.

Really its need urgent...


Return default value from LINK query

I am using the  query listed below which includes multiple joins, in the result of the query I need to do some value replacement values Example: db.ASSETS.BUILDING_ID=300 that ID does not exist in db.BUILDINGS, in that case I need to return BUILDING_ID=0, db.BUILDINGS.NAME="Unassigned" Please help  var productQuery = from assets in db.ASSETs join relocatableUnits in db.UNITs on assets.UID equals Units.RUID into assets_units from Units in assets_units.DefaultIfEmpty() join build in db.BUILDINGs on assets.BUILDING_ID equals build.BUILDING_ID into assets_bins from build in assets_bins.DefaultIfEmpty() join test in db.TEST_SUITEs on assets.TEST_SUITE_ID equals test.TEST_SUITE_ID into test_bins from test in test_bins.DefaultIfEmpty() join testTrgt in db.TEST_SUITEs on assets.T_TEST_SUITE_ID equals testTrgt.T_SUITE_ID into testTrgt_bins from testTrgt in testTrgt_bins.DefaultIfEmpty()

Content Query Web Part (CQWP) fails to show picture items from a document/picture library in an anon

I have a Picture Library and am trying to use the CQWP to display a list of items in the library.  The web part shows the items fine in authenticated mode, but it fails to show the items to anonymous users. The error log message is: Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.SetDocumentIconUrlAndOnClickString(SPWeb web, DataRow row, String strDefaultItemOpen, Boolean fSetDocIcon, Boolean fSetOnClick, String fileRefColumnRef, String progIdColumnRef, String fsobjTypeColumnRef, String permMaskColumnRef)     at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.PreProcessForDocumentIconAndOnClickAttribute()     at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.AddContentQueryData()     at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.GetXPathNavigator(String viewPath)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) I'm running SP 2010.  I've tried various scenarios including: 1. Using the default publishing template. 2. Using the blank site template with publishing and lock down features enabled. 3. Us

Infopath 2007: Cant we fetch data from a list or form library without using a Query to the data conn

I am trying to fetch data from a form library and a list (both secondary data sources). But cant do it without using a rule (Query using a data connection). However when I use the 'Refresh' control on the form it brings the value. I find it quite weird, as the connections are made properly and logically speaking all the data connetions should fetch dynamic data once the form opens or loads. Cant we do it without using a (data query) rule? Update: I am using a web based infopath forms, while using the same form on client its working fine. Why is that?

Default values on query strings?

Hi!I have alot of query strings on one of my seartch pages. The problem is that even if the corsponding setting is not set by the enduser it will be visible in the URL. Is there a way to avoid this?In this case the Controller actions take an object of the following class : public class AdList { public AdList() { this.Page = 1; this.ModelViewAd = new PagedList<ModelViewAdList>(); this.CS = new CategorySelect(); this.LS = new LocationSelect(); } public PagedList<ModelViewAdList> ModelViewAd { get; set; } /// <summary> /// SeartchString /// </summary> [DisplayName("Sökord")] public string S { get; set; } /// <summary> /// CategorySelection /// </summary> public CategorySelect CS { get; set; } public LocationSelect LS { get; set; } /// <summary> /// Paging /// </summary> public int Page { get; set; } [DisplayName("Säljes")] public Boolean O1 { get; set; } [DisplayName("Köpes")] public Boolean O2 { get; set; } [DisplayName("Bytes")] public Boolean O3 { get; set; } [DisplayName("Uthyres")] public Boolean O4 { get; set; } [

Change Document Library default action on Items



I have a standard Document Library where I uploaded various  kinds of file (.pdf, swf). Whenever I click on an item (or I paste its direct link into the browser) it prompts me to download it instead of opening it into the browser directly (with flash player or acrobrat in my example).

How to obtain the desired behavior? Thanks

How to change the Default Value of the Parameter to "Query Based"


Hi I have a Report which i deployed into my localhost.

In the Report Manager, Report Parameter Properties, I unchecked the HasDefault option for which Default value is coming from some Query.

When I retry to Set the Default Value to Query Based, Its not taking.

Need Help.

Default Column Values in a Document Library (SP2010) do not show up in word 2010 until you save and


when you create a document in a SP 2010 document library (of a particular content type, by clicking new, letter (content type name) in sharepoint for example) which has default values set on in in the library (set by using library settings -> change default column values), the default values do not show up until you create the document , save it and reopen it again.  Is this a bug or by design.  If it is by design, it is horrible since if some of the column default values are mandatory in the content type then you actually have to type them in before you could possibly save the file which defeats the whole point of having default column values.  Also it is tremendously clunky for a user to have to create file, save it , close it, and reopen it just to view the default metadata in the document information panel that is supposed to be there.

Anyone have any thoughts/solutions to this problem?


Picture library with option of a default picture



We're using the picture library to create a classified adds section. An image is uploaded with metadata for title, price, details etc

were looking at a way to supply a default image if the user does no have an image of the item to upload.

The first hope was that a default file path could be added to the input type 'file' box but looking into this its not allowed for security issues.

anyone know any examples of using a javascript button that says use default image that on clicking could fill in the input type file box?

Or a different way of achieving this ?


query to get Items from sub folders in a document library




i am having a document library  MY LIBRARY with SUB Folders SUB 1, SUB 2,SUB 3 ,SUB 4


i need to retreive documents in SUB 1, SUB 2 only

How can i write CAML query for this?

If need to retreive from one sub folder, i am using


qry.Folder = list.ParentWeb.GetFolder("MY LIBRARY /SUB 1");


Thanks and Regards,




select query for linq on Default.aspx.cs page


how do i create linq query and asign that query to as data source to datalist on default.aspx.cs page

Linq to Sharepoint to query Pages Library



I have generated class using SPMetal.exe on site lets say http://Toplevelsite/subSite/Subsite/.

In this subsite pages library have item associate with three different content type.

Now i want to query which filter by content type  using linq against Pages library how can i do that..

something like give me all items from Pages library which content type is "ABC".

Please guide me


Thanks Ron

Is there an alternative to the VB compatibility library and the default "print document" interface?


When I first converted a program from an older version of VB to
VB .Net, I used the printer compatibility library with good success.
It treated the printer as a device.  Print this, print that, start a new page,
and so on.  Recently, when adding the printing of graphics, I started running
into out of memory conditions.  I discovered that I could use the base
.Net print capabilites to resolve this problem for the graphic images.

If all I am printing is the graphic images, this is not too bad.
However, the application I have has a mix.  Print this form followed by
another form followed by a graphic  followed by another form.  Each form
and graphic could print on a single page or take multiple pages.  The default
.Net approach of a call back to get each page becomes extremely clumsy.
Each print routine needs to remember which page it is currently on between calls and the print distributing routine needs to keep track of what form is currently being printed.

Is there another printing interface available?

A query regarding the MSDN library background worker example


In the MSDN library article "How to: Use a Background Worker",

(see http://msdn.microsoft.com/en-us/library/cc221403(VS.95).aspx),

the following sample code is presented...

Private Sub bw_DoWork(ByVal sender As Object, ByVal e As DoWorkEventArgs)
    Dim worker As BackgroundWorker = CType(sender, BackgroundWorker)

    For i = 1 To 10
        If bw.CancellationPending = True Then
            e.Cancel = True
            Exit For
            ' Perform a time consuming operation and report progress.
            bw.ReportProgress(i * 10)
        End If
End Sub

For what purpose has the "Dim worker as..." statement been included in this code?


Microsoft Visual C++ Runtime Library Error when installing .NET Framework 4.0


For some reason I'm unable to install .NET Framework 4.0. I downloaded the stand-alone install file from Microsoft Download Centre after the web installer didn't work but it still doesn't work. Next I tried removing all the previous installatiosn of .NET Framework using the Cleanup Tool found on here - http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx - and clearing the TEMPS folder but it didn't change anything.

Every time I try to install .NET Framework 4.0 I get this message:

"Microsoft Visual C++ Runtime Library

Runtime Error!

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information."

Content Query Web Part - Filter Contents of Document Library



I would like to display selective content of document library using content query web part. My document library has multiple folders. I would like to have the content query web part display the contents of one particular folder. And also another content query should display the contents based on a column in the document library. I don't see these options when customizing the query for the content query web part. If this is not possible by default, what is the potentail alternative solution ?



Srikanth Reddy

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