Saving A File Share Link In A SharePoint List Column?

Sep 23, 2010

I have to save a fileshare link in a sharepoint list and i want that file to be opened when the link is clicked, the normal sharepoint hyperlink column does not work for me in this case as it embeds the http:// with the url. How can I handle this scenario? the link i want to save is in the format 192.168.1.2myservermyfile.pdf and the text to be shown in the column is "myfile"

View 2 Replies


Similar Messages:

Need To Iterate Through A Server Share And List Every File Within Every Folder ?

Jun 17, 2010

I need to iterate through a server share and list every file within every folder and write each file name with all of its attributes into a database table.I assume that using the FileInfo class and all of it's properties (CreationTime, DirectoryName etc etc) is the best way but I have no idea of how to start.I'm starting to create a web app

View 8 Replies

File.OpenRead() Accesses File On Share Within Workgroup But Not A Remote Share?

Mar 4, 2011

I have an ASP.NET MVC application that attempts to read a file in using a filestream and File.OpenRead().
When the path to the file is a share on the same workgroup, and I give access to NETWORK SERVICE for the share, this works perfectly as desired.

However, when the path to the share is a UNC path to a remote share within the LAN, with read permissions open for "Everyone", the "File.OpenRead()" method throws an exception saying "Could not find a part of the path".

In my test cases I'm debugging locally with the ASP.NET MVC app being given a UNC path to the computer that it's actually running on. It's a share on my C drive, being "Shared" with permissions to "Everyone" for read access.

Is there something in IIS that needs to be configured? If I try to impersonate, in this context, the impersonation doesn't matter because NETWORK SERVICE was the user trying to access the files when it worked for a share in the same workgroup.

View 2 Replies

Open A File Share Link From Window.open Javascript?

Aug 2, 2010

I am trying to open a file share link from the window.open ... but its adding the http://localhost/vdir/ before the path can any one say what is the problem?

View 1 Replies

Authentication - Share Credentials Between Website And SharePoint 2007

Jan 4, 2011

1) I have an ASP.NET website which is the main entry point in the application.This website uses Forms authentication, which validates credentials (username/password) against a database. 2) Once logged on the website, the user is displayed a page containing several links which point to a Sharepoint 2007 application, where authentication is managed by an Active Directory. 3) Every user in the Active Directory is duplicated in the database managing the ASP.NET website authentication.

View 1 Replies

How To Share Existing Applications Membership Database With Sharepoint 2010

Mar 5, 2011

I am trying to integrate an existing asp.net application with sharepoint 2010. I would like to be able to have a logged in user on the application access a document library via an Iframe on the sharepoint 2010 site. I want to use FBA on sharepoint. Is it possible to share the membership database from the asp.net application with sharepoint? If not, what would be the best way to accomplish this?

View 1 Replies

How To Share Authentication Context Between A SharePoint 2010 Site And Applications

Aug 13, 2010

Is it possible to share the claims based authentication of a logged in Sharepoint 2010 user with a separate Asp.net application?

The following article describes how it was done using Sharepoint 2007 and forms authentication through forms auth and sharing machine keys etc however I cannot find any information regarding the external application consuming the claims authentication that is now used in Sharepoint 2010?

View 2 Replies

C# - Data Binding To XML File / How To Link The Sub Levels To The Second Drop Down List

Sep 14, 2010

I have an XML file structured as follows:

<Levels>
<Level Code="T" Text="Test">
<SubLevels>
<SubLevel Type="9" Text="Nine"/> [code]....

What I want is two drop down lists, one linked to /Levels/Level and one to the SubLevels for the selected level. Currently, I have the main one bound as follows:

<asp:XmlDataSource ID="XmlLevelInfo" runat="server" DataFile="~/Levels.xml">
</asp:XmlDataSource>
<asp:DropDownList ID="cboLevelFilter" runat="server"
DataSourceID="XmlLevelInfo" DataTextField="Text" DataValueField="Code">
</asp:DropDownList>

This works fine, but I can't work out how to link the Sub Levels to the second drop down list. Is this possible using data binding?

View 1 Replies

C# - Getting XslCompiledTransform, Load To Load A File In A SharePoint List?

Mar 3, 2010

I'm having difficulties getting XslCompiledTransform.Load method to take a server path. I googled around and found that I need to do something like:

xslt.Load(System.Web.HttpContext.Server.MapPath(xslPath), XsltSettings.Default, new XmlUrlResolver());

But it returned an error saying HttpContext is null.

I also tried:

xslt.Load(System.Web.HttpServerUtility.MapPath(xslPath), XsltSettings.Default, new XmlUrlResolver());

That also returned an error saying an object reference is required for the non-static field, method, or property 'System.Web.HttpServerUtility.MapPath(string)'

The xslPath has a path that points to a xsl file in Sharepoint Web. I just want XslCompiledTransform to load the xsl file with the server path. Is it possible? If so, what is the proper way or hackish way of doing it?

EDIT: I have access to a SPWeb object which contains the path to the xsl file. However when I check the ServerRelativeUrl, it just says "/MyTree/xsl.xsl". The problem here is I couldn't get the XslCompiledTransform.Load to load the file from SharePoint list.

View 2 Replies

Forms Data Controls :: How To Insert A File Upload Template Column And Link It To Each Row

Nov 28, 2010

how can i insert a file upload template column and link it to each row because each row has a unique idi have item code column and i am listing the grid upon the item code columnso for every item code row i need to use file upload to upload it s excel sheet

View 1 Replies

Forms Data Controls :: Link Checkbox With Bit Column, So Bit Column In SQL Database Gets Updated?

Mar 6, 2011

I'm currently working on a small project and therefore created a gridview, including one bit column which has been linked with a checkbox in both the itemtemplate as the edititemtemplate (autopostback = true).Databinding for these two checkboxes has been linked (two-way) to the bit column.Now I want to display the gridview to end-users. They should be able to just click on the checkbox so they value in the database column gets changed as well (as I want to run update queries behind it), but not passing via the command column 'EDIT'.=> problem I'm having now is that the bit column in the database doesn't get updated.

View 3 Replies

Web Forms :: Converting A SharePoint List To .NET

Oct 1, 2010

I need to convert a SharePoint List to ASP.NET, including its column filters etc.

Aside from the underlying data which will be housed in a SQL Server table, what are good control choices on ASP.NET side for this? (I'm not sure if ASP.NET Gridview will have all the necessary features.)

View 3 Replies

Most Efficient C# SharePoint List Iteration?

Mar 8, 2011

I'm doing some custom code for a SharePoint webpart in C#. Specifically, I'm making a quiz, my main point here addressing the list that holds the question, answer choices, and correct answer.

At the last stage of the quiz I need to check the answers selected by the user against the correct answer in the list. Currently, I'm doing the following to check if each is correct, which I'm assuming isn't very efficient because it iterates through each question. Is there a method, specifically for the SPList foreach loop, that would be more efficient?

// 1. Store questions and answers in class
List<submittedAnswers> answeredQuestions = new List<submittedAnswers>();
// 2. From POST pull answered question IDs and answer IDs (which correspond to the question primary key and answer choice number both stored in the list)
// INSERT BEAUTFIUL AND EFFICIENT WHILE LOOP HERE
// 3. Loop through each question is list, if question was given, test if correct/incorrect
using (SPWeb myWeb = mySite.OpenWeb())
{
SPList answerList = myWeb.Lists[questionList];
foreach (SPListItem quizEntry in answerList.Items)
{
int pullAnswerId = int.Parse(quizEntry["Answer"].ToString()); // Pull answer number from list
int pullQuestionId = int.Parse(quizEntry["ID"].ToString()); // Pull primary key of question
submittedAnswers result = answeredQuestions.Find(delegate(submittedAnswers e) { return e.questionId == int.Parse(quizEntry["ID"].ToString()); });
if (result != null)
{
if (result.responseId != pullAnswerId) // If the response was different from the answer
incorrectAnswers++;
else
correctAnswers++;
}
}
}
// C# quiz grading magic here....

View 4 Replies

SharePoint Web Part List Write Permission

Mar 14, 2011

I've created a quiz web part in SharePoint 2007, but am stuck on one permission. It needs to write the quiz score to a list, which it's throwing an error now when trying. I'm under the assumption that if the web part has the appropriate permission level, the user's permissions (the quiz taker) don't matter. Is there a particular permission that should allow the webpart to write to a list? Specifically:

View 1 Replies

Web Forms :: Export Sharepoint List To Excel?

May 18, 2010

I want to export sharepoint list to excel, I also posted question on another sharepoint forum(http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/f890abb6-5558-4e47-925e-e1a026804d58)

View 2 Replies

Web Forms :: Prepopulate Information From Sharepoint List?

Oct 15, 2010

i was wondering if there is a way to prepopulate sharepoint list item values into a webform fields if the loggin user's information is matched with the information in the list item.

what i have done is that i made a query function to determine if info is matched, and then i try to pull some infomation out from list item. this method works fine for printing these values to some labels on the form, however, it is not working for prepopulation, which happens in the page_load function.

here is my query code:

[Code]....

here is the read from list code:

public void readFromList()
{
SPSite oSiteCollection = SPContext.Current.Site;
SPList oList = oSiteCollection.AllWebs["/en/admin"].Lists["TTCVIP"];
SPView oListView = oList.Views["All Items"];
SPListItemCollection collectListItems = oList.GetItems(oListView);
foreach (SPListItem oListItem in collectListItems)
{
SPWeb web = SPControl.GetContextWeb(Context);
SPUser loggedinUser = web.CurrentUser;
LabelFirstName.Text = SPEncode.HtmlEncode(oListItem["First Name"].ToString());
//LabelLastName.Text = loggedinUser.Name;
LabelLastName.Text = SPEncode.HtmlEncode(oListItem["Last Name"].ToString());
}
}

View 1 Replies

Have A Sharepoint Event Handler Attached To Task List?

Aug 23, 2010

I have a sharepoint event handler attached to task list. This work fine but I have 3 task list in my site and I want that handler trigger only to one task list.I already used the listtemplateId 107.

View 8 Replies

Web Forms :: How To Create A Form That Submits To A SharePoint List

Jun 29, 2010

How do I create a form for a public site that submits to a sharepoint list on a protected site? I am trying not to use InfoPath form.

View 2 Replies

Web Forms :: Collect Data - Publish To Sharepoint List / Page?

Feb 22, 2010

I have a form built using the wizard control in VS 2008. I need this form to collect data and publish them to a sharepoint list or page?is this possible?

View 1 Replies

Web Forms :: Current Logged In User's Information In Sharepoint List?

Oct 8, 2010

in order to prepopulate some user information, i used query to search the sharepoint list. my question is how to search loggin user's info in the list. i used following testing query function. it works fine. however, it can only search specific text, cannot be changed according different user.

[Code]....

View 1 Replies

.net - Saving SQL Results Into A List?

Jan 25, 2011

In my database one user can have multiple order. i want to get all orders for a user and save it in a list.

this is what i'm doing now

Public Function GetUserOrders(ByVal userID As Integer) As DataSet
Dim sqlDA As New SqlDataAdapter
Dim ds As New DataSet
Dim myCommand As New Data.SqlClient.SqlCommand("sp_GetUserOrders", myConnection)

[Code]....

but i can't seem to figure out how to assign the results to a list.

Dim orderList As New ListItemCollection()
orderlist = GetUserOrders()

View 1 Replies

How To Customize XSLT List Form Webpart Using SharePoint Designer 2010

Dec 7, 2010

This query related to SharePoint Designer / XSLT List Form Webpart Customization in SharePoint designer 2010

I am using SharePoint designer 2010 to design my page.

I am trying to add list and customize it.

Following is customization task.

in my list I have two columns Title and Short Description . when I add list on my test page it show one by one following manner.

[code]

Problem is I want show it following manner .

[code]

How I Customize it ? I tried almost options from ribbon but didn't success.

View 1 Replies

Web Forms :: Error - Could Not Contact Sharepoint Server For List Of Document Libraries

Feb 15, 2011

I am creating one new silverlight webpart from VS Sharepoint 2010. If i am creating the silverlight application its asking for the sharepoint local site url, i gave the valid url but its showing the ["could not contact sharepoint server for list of document libraries. check your sharepoint URl"].

how to resolve this error.

View 1 Replies

Web Forms :: Saving Data From Two Or Three Textboxes Into One Column Of Table In Sql?

Jan 29, 2011

i want to save data from three textboxes into one cloumn of database. i have there text boxes for phone no field..one for country code, 2nd for area code and third for number..

View 3 Replies

Data Controls :: Identity Column In Table (User Activation) Can Only Be Specified When A Column List Is Used

Jan 24, 2016

How to handle this error

"An explicit value for the identity column in table 'UserActivation' can only be specified when a column list is used and IDENTITY_INSERT is ON."

View 1 Replies







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