15,899,025 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by naveend915 (Top 20 by date)
naveend915
26-Jan-14 7:27am
View
When i download it as a json file even then it has
"{\"PkUserId\":1,\"CubicalName\":\"21547\"}"
naveend915
26-Jan-14 6:52am
View
ya am seeing it, i am getting like this
sonConvert.SerializeObject(result)
"{\"PkUserId\":1,\"CubicalName\":\"21547\"}"
even when i use
naveend915
26-Jan-14 6:34am
View
i have used JsonConvert.SerializeObject(result) , even then same issue so can u please give an example ?
naveend915
26-Jan-14 6:34am
View
Can u please give an example how to do that?
naveend915
26-Jan-14 4:33am
View
List<userprofile> loginInfolist=new List<userprofile>();
if (ds != null && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0)
{
foreach (DataRow dr in ds.Tables[0].Rows)
{
loginInfoDC = new UserProfile();
loginInfoDC.PkUserId = Convert.ToInt32(dr["pkUserId"]);
loginInfoDC.CubicalName = Convert.ToString(dr["CubicalName"]);
loginInfolist.add(loginInfoDC);
}
}
i want to know how to serialise to json and how to differentiate it with list index
say list[0] json and the lit[1]json
meant all the serialised json of the list will be in same json obj how to differentiate
naveend915
26-Jan-14 4:32am
View
List<userprofile> loginInfolist=new List<userprofile>();
if (ds != null && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0)
{
foreach (DataRow dr in ds.Tables[0].Rows)
{
loginInfoDC = new UserProfile();
loginInfoDC.PkUserId = Convert.ToInt32(dr["pkUserId"]);
loginInfoDC.CubicalName = Convert.ToString(dr["CubicalName"]);
loginInfolist.add(loginInfoDC);
}
}
i want to know how to serialise to json and how to differentiate it with list index
say list[0] json and the lit[1]json
meant all the serialised json of the list will be in same json obj how to differentiate
naveend915
26-Jan-14 4:14am
View
public class UserProfile
{
[DataMember]
public int PkUserId { set; get; }
[DataMember]
public string CubicalName { get; set; }
}
naveend915
26-Jan-14 4:06am
View
Json format like this
{"PkUserId":1,"CubicalName":"21547"}
naveend915
27-Nov-13 8:27am
View
Thanks a lot ...
naveend915
5-Aug-13 9:04am
View
yup am not getting that msg? what is to be done?
naveend915
5-Aug-13 8:42am
View
nope i wanted
how to get a button click event for the button inside a datalist?
checkout the above code!!
naveend915
5-Aug-13 8:33am
View
how to get a button click event for the button inside a datalist?
checkout the above code!!
naveend915
28-Jul-13 3:24am
View
yup i did like this
for (int intCount = 0; intCount < rowCount; intCount++)
{
string id = ds.Tables[0].Rows[intCount]["MUid"].ToString();
ds1 = adm.getUserProfile(Convert.ToInt32(id));
foreach (DataRow dr in ds1.Tables[0].Rows)
{
ds2.Tables[0].Rows.Add(dr.ItemArray);
}
}
getting error like this
input array is longer than the number of columns in this table
naveend915
28-Jul-13 3:24am
View
Deleted
yup am trying like this
for (int intCount = 0; intCount < rowCount; intCount++)
{
string id = ds.Tables[0].Rows[intCount]["MentorUid"].ToString();
ds1 = adm.getUserProfile(Convert.ToInt32(id));
foreach (DataRow dr in ds1.Tables[0].Rows)
{
ds2.Tables[0].Rows.Add(dr.ItemArray);
}
}
but i am getting error like this
input array is longer than the number of columns in this table
naveend915
28-Jul-13 3:22am
View
I dont wanna copy everything i just want to copy some random rows
naveend915
22-Jul-13 12:33pm
View
thanku...:)
naveend915
20-Jul-13 3:36am
View
My code is like this its working fine when i run the solution in local system but am not not able to send mails when i published it to server what might be wrong??
public static bool SendMail(string MailTo, string MailCC, string MailBCC, string MailSubject, string MailBody)
{
bool _Success = false;
try
{
SmtpClient smtp = new SmtpClient();
MailMessage message = new MailMessage();
message.IsBodyHtml = true;
message.From = new MailAddress("emailid@gmail.com");
message.To.Add(MailTo);
message.CC.Add(new MailAddress(MailCC));
message.Subject = MailSubject;
message.Body = MailBody;
smtp.EnableSsl = true;
smtp.Send(message);
_Success = true;
}
catch (Exception ex)
{
ExceptionLogging("Common", "Common.SendMail()", ex.ToString());
_Success=false;
}
return _Success;
}
web config file is like this
<system.net>
<mailsettings>
<smtp>
<network host="smtp.gmail.com" port="587" username="emailid@gmail.com" password="pwdxyz">
naveend915
19-Jul-13 6:09am
View
ya thanks now it got added to the solution but now one more problem is that am getting some errors but its not getting captured by the exceptionlogging which i have written in the library. what can be done about it?
naveend915
19-Jul-13 6:08am
View
ya thanks now it got added to the solution but now one more problem is that am getting some errors but its not getting captured by the exceptionlogging which i have written in the library. what can be done about it?
naveend915
19-Jul-13 6:06am
View
yes i have added. But the problem i am facing now is that when i try to register am getting a error msg i have written a code for capturing error in a library file but its not capturing the exception though the library file is added. what can be done about it?
Show More