Click here to Skip to main content
15,888,210 members
Home / Discussions / C#
   

C#

 
AnswerRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
jschell14-Jun-17 10:35
jschell14-Jun-17 10:35 
GeneralRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
prog.sidra15-Jun-17 19:19
prog.sidra15-Jun-17 19:19 
QuestionRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
Gerry Schmitz16-Jun-17 6:00
mveGerry Schmitz16-Jun-17 6:00 
AnswerRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
jschell17-Jun-17 6:01
jschell17-Jun-17 6:01 
GeneralRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
Gerry Schmitz17-Jun-17 6:15
mveGerry Schmitz17-Jun-17 6:15 
GeneralRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
prog.sidra18-Jun-17 20:18
prog.sidra18-Jun-17 20:18 
GeneralRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
jschell23-Jun-17 11:32
jschell23-Jun-17 11:32 
QuestionHow to remove this error:cannot implicitly convert type 'webapplication1.sharepointonlinecredentials' to 'system.net.icredentials'. An explicit conversion exists (are you missing a cast? ) Pin
Prakash-2713-Jun-17 19:45
Prakash-2713-Jun-17 19:45 
Hi, I am facing this error how to remove it: Cannot implicitly convert type 'WebApplication1.SharePoint Online Credentials' to 'System.Net.I Credentials'. An explicit conversion exists (are you missing a cast?) My Code is here:

protected void Page_Load(object sender, EventArgs e)
       {

           using (ClientContext clientContext = new ClientContext("https://------------.sharepoint.com/sites/Solutions/"))
           {
              SecureString passWord = new SecureString();

               foreach (char c in "----------".ToCharArray()) passWord.AppendChar(c);

               clientContext.Credentials = new SharePointOnlineCredentials("---------@---------.onmicrosoft.com", passWord);

               List list = clientContext.Web.Lists.GetByTitle("Cases");

               CamlQuery query = new CamlQuery();
               query.ViewXml = "<View/>";
               Microsoft.SharePoint.Client.ListItemCollection items = list.GetItems(query);
               clientContext.Load(list);
               clientContext.Load(items);

               clientContext.ExecuteQuery();

               DataTable dt = new DataTable();

               dt.Columns.Add("Title");
               dt.Columns.Add("Email_Address");
               dt.Columns.Add("occupation");
               dt.Columns.Add("PlaceOfCity");
               dt.Columns.Add("Mobile_Number");


               foreach (Microsoft.SharePoint.Client.ListItem item in items)
               {

                   dt.Rows.Add(item["Title"].ToString(), item["Email_Address"].ToString(), item["occupation"].ToString(), item["PlaceOfCity"].ToString(), item["Mobile_Number"].ToString());

               }

               GridView1.DataSource = dt;
               GridView1.DataBind();
           }

       }
[Edited to remove password, email and site details]

modified 14-Jun-17 3:36am.

QuestionRe: How to remove this error:cannot implicitly convert type 'webapplication1.sharepointonlinecredentials' to 'system.net.icredentials'. An explicit conversion exists (are you missing a cast? ) Pin
Richard MacCutchan13-Jun-17 21:36
mveRichard MacCutchan13-Jun-17 21:36 
Rant[REPOST] How to remove this error:cannot implicitly convert type 'webapplication1.sharepointonlinecredentials' to 'system.net.icredentials'. An explicit conversion exists (are you missing a cast? ) Pin
Richard Deeming14-Jun-17 11:20
mveRichard Deeming14-Jun-17 11:20 
Questionhow to use public key and private key in c# Pin
AZHAR SAYYAD13-Jun-17 18:16
AZHAR SAYYAD13-Jun-17 18:16 
AnswerRe: how to use public key and private key in c# Pin
Gerry Schmitz13-Jun-17 19:18
mveGerry Schmitz13-Jun-17 19:18 
QuestionUse I2C on Intel Celeron Pin
openLG12-Jun-17 22:31
openLG12-Jun-17 22:31 
AnswerRe: Use I2C on Intel Celeron Pin
Afzaal Ahmad Zeeshan12-Jun-17 23:03
professionalAfzaal Ahmad Zeeshan12-Jun-17 23:03 
QuestionDetect which keyboard has fired PreviewKeyDown Pin
openLG12-Jun-17 22:04
openLG12-Jun-17 22:04 
AnswerRe: Detect which keyboard has fired PreviewKeyDown Pin
OriginalGriff12-Jun-17 22:10
mveOriginalGriff12-Jun-17 22:10 
GeneralRe: Detect which keyboard has fired PreviewKeyDown Pin
openLG12-Jun-17 22:27
openLG12-Jun-17 22:27 
GeneralRe: Detect which keyboard has fired PreviewKeyDown Pin
OriginalGriff12-Jun-17 22:29
mveOriginalGriff12-Jun-17 22:29 
GeneralRe: Detect which keyboard has fired PreviewKeyDown Pin
openLG12-Jun-17 22:32
openLG12-Jun-17 22:32 
Questionform fill pdf file Pin
Member 1325361311-Jun-17 13:51
Member 1325361311-Jun-17 13:51 
AnswerRe: form fill pdf file Pin
OriginalGriff11-Jun-17 19:47
mveOriginalGriff11-Jun-17 19:47 
GeneralRe: form fill pdf file Pin
Pete O'Hanlon11-Jun-17 23:58
mvePete O'Hanlon11-Jun-17 23:58 
GeneralRe: form fill pdf file Pin
OriginalGriff12-Jun-17 2:03
mveOriginalGriff12-Jun-17 2:03 
AnswerRe: form fill pdf file Pin
ZurdoDev12-Jun-17 7:20
professionalZurdoDev12-Jun-17 7:20 
AnswerRe: form fill pdf file Pin
Ravi Bhavnani12-Jun-17 11:24
professionalRavi Bhavnani12-Jun-17 11:24 

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.