Click here to Skip to main content
15,887,135 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionNeed urgent help in ASP .NET Pin
ddeka16-May-08 4:12
ddeka16-May-08 4:12 
AnswerRe: Need urgent help in ASP .NET Pin
SomeGuyThatIsMe16-May-08 8:16
SomeGuyThatIsMe16-May-08 8:16 
AnswerRe: Need urgent help in ASP .NET Pin
Blue_Boy16-May-08 9:12
Blue_Boy16-May-08 9:12 
Questioncriters in Gridview Pin
foryou16-May-08 4:05
foryou16-May-08 4:05 
AnswerRe: criters in Gridview Pin
SomeGuyThatIsMe16-May-08 8:10
SomeGuyThatIsMe16-May-08 8:10 
GeneralThanks Pin
foryou17-May-08 7:06
foryou17-May-08 7:06 
GeneralRe: criters in Gridview Pin
foryou19-May-08 0:06
foryou19-May-08 0:06 
QuestionProblem checking out a SharePoint document using a web part Pin
JimmyRopes16-May-08 3:06
professionalJimmyRopes16-May-08 3:06 
I am having difficulty checking out a document using a SharePoint web part. I am using the default security credentials (System.Net.SystemNetworkCredentials) but I get an error saying that I am unable to check out the document.

I own the document in question and can check documents out through the standard web part supplied by the SharePoint server to access the document repository.

I use the same code in a desktop application and can check out documents but fail when trying to check them out using a web part.

I suspect that the SharePoint Service is getting the network credentials from the ASP.NET web page which is owned by the SharePoint server and not my network credentials like when I execute the code from a desktop application I wrote as a prototype.

Does anyone know how I can substitute a user’s network credentials for the default network credentials from a SharePoint web part?

The code I use is below.

SharePoint.Document_Lists.Lists doc = new SharePoint.Document_Lists.Lists();<br />
// SharePoint.Document_Lists is a web reference to http://.../_vti_bin/lists.asmx
<br />
            doc.PreAuthenticate = true;<br />
            doc.Credentials = System.Net.CredentialCache.DefaultCredentials;<br />
<br />
            if (doc.CheckOutFile(oDocName.ToString(), oTrue.ToString(), mod_date))<br />
            {<br />
process document here
<br />
}<br />
else<br />
{<br />
error message issued here
<br />
}



Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems

I'm on-line therefore I am.
JimmyRopes



QuestionProblem with UpdatePanel Pin
Johndas16-May-08 2:50
Johndas16-May-08 2:50 
AnswerRe: Problem with UpdatePanel Pin
Vinay Dornala19-May-08 3:12
Vinay Dornala19-May-08 3:12 
Questionhow to show 2 fields of values in a label in a datalist Pin
Farhad Eft16-May-08 2:31
Farhad Eft16-May-08 2:31 
AnswerRe: how to show 2 fields of values in a label in a datalist Pin
Christian Graus16-May-08 2:34
protectorChristian Graus16-May-08 2:34 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
Farhad Eft16-May-08 3:00
Farhad Eft16-May-08 3:00 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
Christian Graus16-May-08 3:02
protectorChristian Graus16-May-08 3:02 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
Farhad Eft16-May-08 3:06
Farhad Eft16-May-08 3:06 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
Christian Graus16-May-08 3:12
protectorChristian Graus16-May-08 3:12 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
Farhad Eft16-May-08 3:37
Farhad Eft16-May-08 3:37 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
J4amieC16-May-08 3:46
J4amieC16-May-08 3:46 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
Farhad Eft16-May-08 6:04
Farhad Eft16-May-08 6:04 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
Christian Graus16-May-08 3:46
protectorChristian Graus16-May-08 3:46 
GeneralRe: how to show 2 fields of values in a label in a datalist Pin
Farhad Eft16-May-08 6:07
Farhad Eft16-May-08 6:07 
QuestionDisplay data after page_load in ASPNET 2.0 Pin
salon16-May-08 2:14
salon16-May-08 2:14 
AnswerRe: Display data after page_load in ASPNET 2.0 Pin
Christian Graus16-May-08 2:31
protectorChristian Graus16-May-08 2:31 
QuestionRegard file transferring using .net.. Pin
Dotnetkanna16-May-08 2:03
Dotnetkanna16-May-08 2:03 
AnswerRe: Regard file transferring using .net.. Pin
Christian Graus16-May-08 2:13
protectorChristian Graus16-May-08 2:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.