16,018,249 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 .NET 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 richa11 (Top 14 by date)
richa11
6-Aug-14 3:30am
View
I know this very well but we get some sample project in this forum.I am asking for some sample code for this not whole project.
Its not urgent for anyone but its urgent for me.If you don't want to help just ignore it why are you giving comments?
richa11
17-Jun-14 0:13am
View
yes i have lastUpdatedTime in my database and from that I want to calcilate
richa11
8-Jun-14 11:31am
View
I used parameterized query also but again exception..
public void InsertRecord(int i)
{
int RFStatus = Convert.ToInt16((i % 2 == 0) ? RefundStatus.Dispute : RefundStatus.DisputeRes);
Random rnd = new Random();
long XUID = rnd.Next(1, 100);
String myDateTime = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss.fff");
DateTime LastUpdateTime = DateTime.Parse(myDateTime);
SqlConnection cnn = new SqlConnection("Data Source=WN7-CDDGMV1\\SQLEXPRESS;Initial Catalog=RefundsDB;Integrated Security=SSPI");
cnn.Open();
String str = @"insert into [dbo].[CustomerInfo] (RefundID,UserXUID,RefundType,RefundDate,
RefundDeniedReason,DisputeCustData,CustomerEmail,CustomerName,Currency,Country,
Refund,FraudRuleStatus,RefundStatus,DisputeStatus,AllowComments,LastUpdatedTime) values(@RefundID,@UserXUID,@RefundType,@RefundDate,@RefundDeniedReason,@DisputeCustData,@CustomerEmail,@CustomerName,@Currency,@Country,@Refund,@FraudRuleStatus,@RefundStatus,@DisputeStatus,@AllowComments,@LastUpdatedTime) ";
SqlCommand cmd=new SqlCommand(str,cnn);
cmd.Parameters.AddWithValue("@RefundID", null);
cmd.Parameters.AddWithValue("@UserXUID",XUID);
cmd.Parameters.AddWithValue("@RefundType", null);
cmd.Parameters.AddWithValue("@RefundDate", DateTime.Now);
cmd.Parameters.AddWithValue("@RefundDeniedReason", null);
cmd.Parameters.AddWithValue("@DisputeCustData", null);
cmd.Parameters.AddWithValue("@CustomerEmail", null);
cmd.Parameters.AddWithValue("@CustomerName", null);
cmd.Parameters.AddWithValue("@Currency", null);
cmd.Parameters.AddWithValue("@Country", null);
cmd.Parameters.AddWithValue("@Refund", null);
cmd.Parameters.AddWithValue("@FraudRuleStatus", null);
cmd.Parameters.AddWithValue("@RefundStatus", RFStatus);
cmd.Parameters.AddWithValue("@DisputeStatus", null);
cmd.Parameters.AddWithValue("@AllowComments", null);
cmd.Parameters.AddWithValue("@LastUpdatedTime", LastUpdateTime);
cmd.ExecuteNonQuery();
}
Whats wrong?
richa11
6-Mar-14 8:33am
View
static void Main()
{
int[] ar = { 8, 5, 3, 5, 8, 5, 2, 1 };
int temp;
int count = 1;
int[] temparr = new int[ar.Length];
for (int i = 0; i < ar.Length; i++)
{
for (int j = i + 1; j < ar.Length; j++)
{
if (ar[i] < ar[j])
{
temp = ar[j];
ar[j] = ar[i];
ar[i] = temp;
}
}
}
for (int i = 0; i < ar.Length; i++)
{
Console.WriteLine(ar[i]);
}
Console.WriteLine("--------------");
for (int i = 0; i < ar.Length; i++)
{
for (int j = 1 ; j < ar.Length; j++)
{
if (ar[i] == ar[j])
{
count++;
}
if (count > 1)
{
temparr[i] = count;
}
count = 1;
}
}
Here is my code,
richa11
6-Mar-14 8:28am
View
I have sorted the array in descending order but not able to print the maximum ocurrence
richa11
6-Mar-14 8:26am
View
Thanks Rohit..
But I have to use only loops in this
richa11
27-Jun-13 1:46am
View
I have already tried it .but if we dont select any thing in combobox set doesn't hit because I am binding through selectedvalue.
richa11
6-May-13 7:49am
View
I tried but it was not working
richa11
6-May-13 7:49am
View
Thanks Aarti..it worked..
richa11
6-May-13 7:17am
View
yes I am storing it as DateTime
richa11
24-Apr-13 6:38am
View
I have different paths for different file.
for example i have one common folder images ,in images folder i have different case folder like case 1 ,case 2 and all these case folder is having their images.I have deletes all cases as well as images from database i have left with 3 cases i want to delete all case images from folder except 3 cases.
richa11
24-Apr-13 6:30am
View
Yes I have paths stored in database.Can you please tell me how to do it.
richa11
16-Dec-11 8:17am
View
even this code is reading only 255 column.I need a code which read 433 columns.
richa11
15-Dec-11 6:23am
View
string connectionString = String.Format(@"Provider=Microsoft.ACE.OLEDB.12.0; Data Source={0}; Extended Properties=""Excel 12.0;HDR=No;IMEX=1""", fpath);
OleDbConnection conn = null;
StreamWriter wrtr = null;
OleDbCommand cmd = null;
OleDbDataAdapter da = null;
try
{
conn = new OleDbConnection(connectionString);
conn.Open();
cmd = new OleDbCommand("SELECT * FROM [test$]", conn);
cmd.CommandType = CommandType.Text;
wrtr = new StreamWriter("D:\\test.csv");
da = new OleDbDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
for (int x = 0; x < dt.Rows.Count; x++)
{
string rowString = "";
for (int y = 0; y < dt.Columns.Count; y++)
{
rowString += "\"" + dt.Rows[x][y].ToString() + "\",";
}
wrtr.WriteLine(rowString);
}
conn.Close();
MessageBox.Show("file is saved");
This is my code to convert the file
Improve solution Permalink | Posted 3 mins ago
Show More