C# - SharePoint Most Clicked Links?

Jul 22, 2010

I am trying to make a web part that will display what links got clicked/viewed the most across the whole site collection. These links come from a SharePoint list. Is there a mechanism in the object model that can be used to accomplish this?

View 1 Replies


Similar Messages:

AJAX :: Have 4 Main Links In The Page When Any Of These Link Is Clicked Its Submenu?

Apr 14, 2010

iam new to AJAX i need a help from you guys. i have 4 main links in the page when any of these link is clicked its submenu (say 3 submenu) should load in AccordionPane.

View 1 Replies

C# - Reload The Information Of The Sharepoint 2007 Webpart After A Button Is Clicked From Another Webpart?

Dec 29, 2010

I am new in sharepoint development. I have 2 webparts attached on a page. The first webpart (MyTestingWebpart1) basically it does only inserting of data and the other webpart (MyTestingWebpart[2]) displays the records from the database. Now my problem is when I try to click on the save button, somehow I don't know how to refresh the webpart that displays the newly inserted record. Is this possible?

I have added a query at the page load event of MyTestingWebPart[2]. Both of the webparts attached are web user controls.

View 2 Replies

Unable To Call The SharePoint Custom Web Service From Another SharePoint Farm

Jan 12, 2011

I have deployed a custom SharePoint Web service on Farm A. I am trying to access this Web service from a SharePoint timer job on Farm B. On Farm B, I am creating Class Library project, packaging it (wsp) and then deploying to GAC. The problem is I'm unable to access the Web Service using the following code. TodaysNewSVC is a service reference

TodaysNewSVC.GetTodaysnewsfromInsite objGetNews = new TodaysNewSVC.GetTodaysnewsfromInsite();
objGetNews.PreAuthenticate = true;
objGetNews.Credentials = CredentialCache.DefaultCredentials;
objGetNews.Url = "http://insite-dev.portal/_vti_bin/todaysnews.asmx";
DataTable dt2 = objGetNews.getNewsFromInsite(true, true);

//getNewsFromInsite is a WebMethod which returns the DataTable.

Note: Both farms use the same active directory authentication. I have also done the debugging for Timer Job and feature activation and they are working fine. The problem occurs during the call i.e. getNewsFromInsite
The asmx and wsdl files are accessible from Internet Explorer and also from Windows Console application. Here is the code which I use from console application:

GetTodaysnewsfromInsiteSoapClient objWSClient = new GetTodaysnewsfromInsiteSoapClient();
objWSClient.ClientCredentials.Windows.ClientCredential = System.Net.CredentialCache.DefaultNetworkCredentials;[code]...

Here is the error message:The request failed with the error message:
--
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="%2fPages%2fproblem-with-page.aspx%3fc%3d500">here</a>.</h2>
</body></html>

View 1 Replies

Error: "Could Not Load Type 'Microsoft.SharePoint.WebControls.SPGridView" SharePoint 2010

Jun 15, 2010

Following error comes when creating a WebPart In sharePoint 2010 Server.

Web Part Error: Unhandled exception was thrown by the user code wrapper's Execute method in the partial trust app domain: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.TypeLoadException: Could not load type 'Microsoft.SharePoint.WebControls.SPGridView' from assembly 'Microsoft.SharePoint, Version=14.900.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. at ListMenuSample.ListMenuSample.ListMenuSample.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at Microsoft.SharePoint.UserCode.SPUserCodeWebPartWrapper.ExecuteHttpRequest(SPUserCodeWebPartHttpRequestContext webPartExecutionContext, SPUserCodeWebPartHttpResponse httpRequestResponse) at Microsoft.SharePoint.UserCode.SPUserCodeWebPartWrapper.Execute(SPUserCodeExecutionContext executionContext) at Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext)

View 1 Replies

Run 4.0 App Under SharePoint

Apr 4, 2011

I have an asp.net 2.0 user control library that runs within a SharePoint site. We upgraded one of the assemblies that this application depends on to .net 4.0 so we were forced to update the website to an asp.net 4.0 site so that it could use that assembly. That caused us to run into this error: Could not find permission set named 'ASP.Net'. Which is documented here: [URL] and states: "This error occurs because the ASP.NET 4 code access security (CAS) infrastructure looks for a permission set named ASP.Net. However, the partial trust configuration file that is referenced by WSS_Minimal does not contain any permission sets with that name."

Their proposed solution is don't attempt to use .net 4.0 which is not really an acceptable solution. So I'm trying to better understand what the actual problem. Our site is actually using a custom permission config based off of WSS_Minimal but it apparently includes the same reference. Can anyone tell me what file they are referring to when they say "the partial trust configuration file"? Where exactly does wss_Minimal reference this file? If the permission set named ASP.Net doesn't exist, I should be able to create my own permission set to take it's place. I'm not CAS expert but I haven't been able to find an ASP.Net permission set using the .net 2.0 configuration tool, and I'm not sure where it's being referenced in the wss_minimal config. Where is this ASP.Net permission set defined?

View 1 Replies

C# - Create An API For SharePoint?

May 21, 2010

how to implement API over the SharePoint(MOSS) framework.

What i want to do is create a client application to communicate with the SharePoint.
wanting to implement something like following.

Client send post request to API implemented on SharePoint, API receive a request and do the authentication and create a login cookie. Client keep communicating with API(with the login cookie), request necessary information and API returns it.

I could not find anyway to hook a program... Is there anyway to hook a program or implement own authentication mechanism before SharePoint's own authentication is called?

View 1 Replies

MVC :: Are All The MVC 2.0 CDN Links Broken?

Feb 9, 2011

Is it just me or are all the ASP.NET MVC 2.0 links listed on the ASP.NET CDN broken?

[URL]

ASP.NET MVC 2.0

[URL]

View 7 Replies

Relative Links In PDF?

Jun 9, 2010

Have written an ASP.Net application. Part of the application deals with being able to view PDFs. The initial PDF viewed acts as an index to access other PDF documents. You click a link in the Index PDF and it jumps to another PDF file. Legal documents, agreements, etc.

This scenario works on some computers and on others it doesn't. I managed to figure out what the problem was. On some of the computers the initial Index PDF was being hosted within the browser and on some other computers it was actually jumping out of the browser and directly into Adobe Acrobat. As soon as the PDF jumps out of the browser and into Acrobat the relative links in the Index PDF stop working because it is hosted client side via Acrobat but the additional PDFs it is trying to access are on the server.

I figured out why some computers stay in browser and why some jump out. There is an option within Acrobat itself that determines this behavior. It is under Edit--> Preferences ----> Display PDF in Browser.

I am in a jam because I am not in control of the PDF documents themselves and how they are written, and I obviously have no control over the options selected in Acrobat on each and every computer. My problem is also compounded by the fact that our firm has just recently purchased a new PDF reader called Nuance that will be pushed out firm wide soon and I don't think it even has the option to have PDFs hosted in browser.

I can get what I need to work if I create the index in HTML, but the problem is I don't write the Indexes and the people who do are not trained in HTML. I can get the people who write the indexes to change from relative links to absolute links, but then I run into the problem of what if we change where we are hosting the PDF files? All the links will break again? I think we are stuck with relative URLs, but how can I make it work?

I am thinking about maybe hosting the PDFs within Silverlight?

View 2 Replies

Can Login To Sharepoint From .NET Site

Aug 19, 2010

I have a preexisting asp.net site that uses forms authentication. I am setting up a Sharepoint 2007 site on the same box. I would like to use my existing asp.net site authentication and once logged in provide a link to the sharepoint site that has the user auto-logged in.It doesn't matter to me if Windows or Forms auth is used. I tried a couple different things to pass credentials through the response, but was unable to obtain success. Has anyone done anything similar. The tutorials for configuring forms auth on sharepoint just seem over the top and quite unreasonable.

View 2 Replies

How To Customize The Sharepoint Menu

Jun 4, 2010

I have this requirement to display site sub menu items in horizontal direction instead of vertical.

Home | Site1 | Site2
Page1 | Page2 | Page3

Is there any attribute avaliable in Sharepoint:ASPMenu to achieve this. We dont intend to write code behind for this. how to achieve this thru Sharepoint desinger.

View 1 Replies

Security :: Impersonation In SharePoint?

Apr 13, 2010

I noticed impersonation is turned on by default in MOSS web configs. I tried disabling it but the web app returns an error. So my question, is it possible to disable impersonation in MOSS? If it is possible are there any special considerations I should be aware of?

If you're interested in why I need to do this...I need to have a custom web part (developed with SmartPart) talk to a separate SQL server using the application pool rather than the current user (Kerberos is enabled). If I set the authentication mode to NTLM I get NTAuthority/ANonymous login errors from my SQL connection. If I turn Kerberos on, the currently logged in user's credentials are passed. If I hard code the user id and password in the connection string it seems to ignore it and default to whichever security model is in place (NTLM or Kerberos).

View 6 Replies

Datagrid / Gridview Possible In SharePoint?

Mar 8, 2011

I'm not asking as to how go about doing this, but just curious if its possible to list items in a data grid/ grid view as you would in asp.net websites, but in SharePoint using say web parts? Then be able to select a item in the grid and press a button that would then carry on out some task?

View 1 Replies

C# - Accessing Sharepoint From A WebApplication?

Feb 25, 2011

currently investigating SharePoint for our company as a means to make Excel processing accessible through our web application without relying on the Office Interop DLL files. (our sysadmin doesnt want to install Office on the production server, for good reason)I'm aware that Sharepoint has an Excel Webservice that can be enabled and used by the application. The problem, if it is a problem, is that I need to make a class that wraps all the logic for transforming an Excel into HTML.So I need to add the references to this webservice to the application.

But what if we need to deploy the application with a customer that has no SharePoint server available, will this cause a problem in the application? We will use checks to make stuff visible and invisible depending on whether a parameter is set, but I'm looking for a means to ensure that I can for example add the required references at runtime when I need them for Sharepoint.

View 1 Replies

Sharepoint - Where Are .cs Files Stored

Mar 4, 2010

I have a file called webpart.cs which is called by one of my masterpages in Sharepoint, where are those files stored on the Server?

View 1 Replies

Create A Sharepoint Application?

Jun 10, 2010

how to create a sharepoint application using asp.net

View 2 Replies

Exchange Cannot Be Autodiscovered From Sharepoint?

Jan 25, 2011

I've created an ascx control for use in Sharepoint that accesses Exchange 2010 via it's web services. When run in it's own ASP.NET test site (wrapped in a simple aspx page) all works fine. As soon as the control is used within Sharepoint a "The Autodiscover service couldn't be located" error is encountered.

The code behind dll for the ascx control has been dropped in to the GAC and also Microsoft.Exchange.WebServices.dll

Microsoft.Exchange.WebServices.dll has also been added to the safe control list in web.config for the sharepoint site:

<SafeControl Assembly="Microsoft.Exchange.WebServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="Microsoft.Exchange.WebServices" TypeName="*" Safe="True" />

I can ping the autodiscovery service and access the Exchange web service url https://mydomain.com/EWS/Services.wsdl from the Sharepoint server.

A username and password is being sent to the service in the ascx's code behind:

Dim service As ExchangeService = New ExchangeService()
service.Credentials = New WebCredentials(usrExchange, pwdExchange)
service.ImpersonatedUserId = New ImpersonatedUserId(ConnectingIdType.SmtpAddress, email)

Interestingly, if I specify the url [URL] to the service I get a 405 Method not allowed error.

View 1 Replies

C# - Sharepoint Web App And Jquery Combination?

Feb 19, 2010

Within SharePoint...

I can create web parts which are ASP.NET web apps, which allows me to get information about the current user (groups they are in, username, etc.).

I can create web parts which allow me to manipulate fields on SharePoint forms.

But I have not found a way to be able to combine the two things.

I can't access the content of one web part from the other kind (WebApp Page Viewer & Jquery Content Editor Web Part being the two kinds).

What I would like to be able to do is create a web service and then consume it with a jquery ajax call, but I keep getting a js "Access Denied" message.

View 1 Replies

Validating Form In Sharepoint?

Sep 23, 2010

I developed a screen in which there are fields like first name,username,password and email. I validated these fields using javascript and came to know that javascript is not that safe. So i decided to validate on server side also. My question is whether i can use asp controls like requiredfieldvalidator, regularexpression validator to validate the form or i have to validate through server side coding??

View 2 Replies

Sharepoint Learning Resources

Sep 27, 2010

I am trying to learn Microsoft sharepoint and I wanted your ask some opinion on some of the online resources available. I checked some of the training institutions (I am from India), but the courses are very expensive there. I am looking for the following details:
1 - What softwares are needed to learn sharepoint- on my laptop I have Visual Studio 2008. Is that sufficient? If not, can you please provide me some details.2 - Training material If there are some good online training materials for sharepoint,can you please let me know Typically, how long would it take to get some grasp on sharepoint? I have used visual studio and I am good in writing C# or VB.NET code.But I have no background on sharepoint.

View 2 Replies

£ Sign In Url Causes Bad Request In SharePoint?

Mar 16, 2011

We have a file in sharepoint with a £ sign as part of the url.When we try to retrieve this file we get a bad request.Interesting thing is that this is only a problem in production not in test.Anyone know what setting could be causing this difference?

View 1 Replies

Why Are The Links Changing Automatically

Oct 19, 2010

Server.HtmlDecode(wp.Body.ToString());
this.litBody.Text = body.ToString();

I'm using the above code to display database content on my website. The actual text on database is as follows.

<p>Forbury Investment Network (FIN) is a platform established to facilitate investment in early- and growth-stage companies in the technology sectors.</p>
<p>FIN was established by <a title="Clarkslegal" href="http://www.clarkslegal.com/" target="_blank">Clarkslegal</a> and its subsidiary <a title="Forbury Environmental" href="http://www.forburyenvironmental.com/" target="_blank">Forbury Environmental</a>, after 3 years of managing The EIC Environmental Investment Network.</p>

I have a test site and live site on the same server. Links work fine on test server. But when i look at the page on live server it the links are al wrong. www. is missin from both links and [URL] has become [URL]

View 2 Replies

How To Use A BulletedList To Output Some Links

May 11, 2010

I'm trying to use a BulletedList to output some links. When the list renders, all the link tags are encoded, so they are displayed to the user instead of being rendered as links.

Is there a way to make the BulletedList not do this? I'm doing a foreach over a custom object collection where each object has a string representing a link as a property. I just want to build a list of links and I thought a BulletedList was a good way to do it. Is there a better way or a way that doesn't encode the output?

View 4 Replies

Chart Control Links In 3.5 SP1?

Jun 16, 2010

Anybody have any good links on the Chart Control they introduced in 3.5 SP1? Company wants me to do some charting on a dashboard for a new project.

View 6 Replies

AdRotator Does Not Display The Links

May 11, 2010

NavigateUrlField does not work as expected! Althrough it is assigned properly MyAdRotator.NavigateUrlField = "AdvertURL" the rendered code is missing href attribute of the link e.g. <a id="blahblah" target="_blank">etc. I tried with absolute paths/urls and relative as well but, it still shows up only the images properly while link is missing.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved