15,905,322 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 Mr.VJ (Top 38 by date)
Mr.VJ
10-Feb-15 7:03am
View
this error :
The remote server returned an error: (403) Forbidden.
Mr.VJ
19-Dec-14 4:32am
View
Thanks for your reply,
Its not working ,
showing
Cannot resolve method ' Add(java.lang.String,java.lang.String)'.
Mr.VJ
20-Jun-14 1:50am
View
i installed visual studi0 2010, framework 4.0 @ bh@gyesh
Mr.VJ
29-Apr-14 3:19am
View
where should i give the permissions
Mr.VJ
4-Apr-14 4:34am
View
this code works in visual studio... but after making a setup .exe , it doesnt work
getting error Operation must use an updateable query .. near executenonquery();
Mr.VJ
4-Apr-14 4:32am
View
getting error near executenonquery.
OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=phonebook.accdb");
OleDbCommand cmdd = new OleDbCommand();
cmdd = new OleDbCommand();
cmdd.CommandText = "INSERT into login([image],[imagename],[name],[username],[email],[password],[mobile],[gender],[dob],[question],[answer]) VALUES(@image,@imagename,@name,@username,@email,@password,@mobile,@gender,@dob,@question,@answer)";
cmdd.Connection = conn;
cmdd.Parameters.AddWithValue("@image", imgByteArr);
cmdd.Parameters.AddWithValue("@imagename", imgname);
cmdd.Parameters.AddWithValue("@name", textBoxname.Text);
cmdd.Parameters.AddWithValue("@username", textBoxuser.Text);
cmdd.Parameters.AddWithValue("@email", textBoxemail.Text);
cmdd.Parameters.AddWithValue("@password", textBoxretype.Text);
cmdd.Parameters.AddWithValue("@mobile", textBoxmobile.Text);
cmdd.Parameters.AddWithValue("@gender", radio);
cmdd.Parameters.AddWithValue("@dob", dat);
cmdd.Parameters.AddWithValue("@question", comboBox1.Text);
cmdd.Parameters.AddWithValue("@answer", textBoxanswer.Text);
conn.Open();
cmdd.ExecuteNonQuery();
conn.Close();
MessageBox.Show("inserted sucessfully","confirmation");
MainWindow main = new MainWindow();
main.Show();
this.Close();
Mr.VJ
4-Apr-14 2:21am
View
still getting the same error :(
Mr.VJ
2-Apr-14 1:59am
View
thank u for reply Maciej Los
i did like this
cmdd = new OleDbCommand("select [date]='"+present date+"' from Remainder where [rusername]='" + loginusername + "' ", conn);
conn.Open();
cmdd.ExecuteNonQuery();
OleDbDataAdapter da = new OleDbDataAdapter(cmdd);
//da .Fill(ds);
da.Fill(dt);
conn.Close();
string remdate = dt.Rows[0]["date"].ToString();//but here getting error like date column does belongs to table.
Mr.VJ
20-Mar-14 6:05am
View
still getting same error
i tried this one ....
OleDbCommand cmdd = new OleDbCommand("SELECT addimage,addname,addnumber1 FROM addcontact", conn);
OleDbDataAdapter da = new OleDbDataAdapter(cmdd);
da.Fill(ds);
if (ds != null)
{
view.Table = ds.Tables[0];
dataGrid1.DataContext = view;
view.RowFilter = "addname like '%" + SearchBox.Text + "%'";
dataGrid1.DataContext = view;
}
else
{
MessageBox.Show(" dataset having null value");
}
Mr.VJ
20-Mar-14 4:40am
View
thank u jayant for replying , but getting an error by putting a DataView view = dt.DefaultView;
Mr.VJ
19-Mar-14 1:49am
View
thank u so much murali , it helps me a lot
Mr.VJ
19-Mar-14 0:42am
View
great work mohammad hossein .... it helps me a lot ,thank u :)
Mr.VJ
18-Mar-14 8:48am
View
friends i have done this but getting an error : Null exception at dv.table=ds.table[0];
this code works fine in c# winform but not in Wpf .
please help me out.
public DataView dv
{
get;
set;
}
OleDbCommand cmdd = new OleDbCommand("SELECT addimage,addname,addnumber1 FROM addcontact", conn);
OleDbDataAdapter da = new OleDbDataAdapter(cmdd);
DataTable dt = new DataTable();
da.Fill(ds);
dv.Table = ds.Tables[0];
dataGrid1.DataContext = dv;
dv.RowFilter = "addname like '%" + SearchBox.Text + "%'";
dataGrid1.DataContext = dv;
Mr.VJ
14-Mar-14 7:41am
View
thank u ,
i tried ,but getting
EXCEPTION :
The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect.
Mr.VJ
14-Mar-14 7:41am
View
thank u ,
i tried ,but getting
EXCEPTION :
The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect.
Mr.VJ
13-Mar-14 3:15am
View
thank you bro.... it helps a lot :)
Mr.VJ
11-Mar-14 5:34am
View
here getting an error as datatype mis match .. iam trying this one .please help me if u have any alternate solutions.
private void button1_Click(object sender, RoutedEventArgs e)
{
cmdd = new OleDbCommand();
string iname=Application.Current.Resources["iname"].ToString();
byte[] imagedata = File.ReadAllBytes(iname);
//var imageBuffer = BitmapSourceToByteArray((BitmapSource)image2.Source);
cmdd.CommandText = "INSERT into login([image],[imagename]) VALUES(@image,@imagename)";
cmdd.Connection = conn;
conn.Open();
OleDbParameter myParameter = new OleDbParameter("@image", OleDbType.LongVarBinary, imagedata.Length);
myParameter.Value = imagedata;
cmdd.Parameters.Add(myParameter);
//cmdd.Parameters.Add("@image", imageBuffer);
cmdd.Parameters.Add("@imagename", iname);
cmdd.ExecuteNonQuery();
conn.Close();
MessageBox.Show("sucessfull");
}
Mr.VJ
11-Mar-14 5:30am
View
Deleted
here getting an error as datatype mis match .. iam trying this one .please help me if u have any alternate solutions
<pre lang="c#">
private void button1_Click(object sender, RoutedEventArgs e)
{
cmdd = new OleDbCommand();
string iname=Application.Current.Resources["iname"].ToString();
byte[] imagedata = File.ReadAllBytes(iname);
//var imageBuffer = BitmapSourceToByteArray((BitmapSource)image2.Source);
cmdd.CommandText = "INSERT into login([image],[imagename]) VALUES(@image,@imagename)";
cmdd.Connection = conn;
conn.Open();
OleDbParameter myParameter = new OleDbParameter("@image", OleDbType.LongVarBinary, imagedata.Length);
myParameter.Value = imagedata;
cmdd.Parameters.Add(myParameter);
//cmdd.Parameters.Add("@image", imageBuffer);
cmdd.Parameters.Add("@imagename", iname);
cmdd.ExecuteNonQuery();
conn.Close();
MessageBox.Show("sucessfull");
}
</pre>
Mr.VJ
26-Feb-14 6:47am
View
im using mysql .... please tell me how to give logon
Mr.VJ
15-Feb-14 2:24am
View
hey thank u so much , its so simple .
Mr.VJ
15-Feb-14 1:46am
View
where should i click and option where not visible here .
thank u
Mr.VJ
15-Feb-14 1:38am
View
thank u. please tell me how to do that.
Mr.VJ
18-Jan-14 3:03am
View
here my requirement is , when ill save the textbox.text , this textbox.text message/text should display in sticky notes.
Mr.VJ
18-Jan-14 3:03am
View
here my requirement is , when ill save the textbox.text , this textbox.text message/text should display in sticky notes.
Mr.VJ
4-Jan-14 6:59am
View
hello virandra , here i getting an error
System.Drawing.Image fullSizeImg
= System.Drawing.Image.FromFile(path);
path cannot found but everything was ok.
Mr.VJ
31-Dec-13 2:34am
View
dt.Rows.Add(new object[] {DateTime.Now});
here getting error
Mr.VJ
31-Dec-13 2:33am
View
getting same error
Mr.VJ
28-Dec-13 6:31am
View
thanks for reply , its not working.
Mr.VJ
28-Dec-13 3:25am
View
thnq so much bro ;)
Mr.VJ
27-Dec-13 1:15am
View
thnqqqqq so much :)
Mr.VJ
27-Dec-13 1:10am
View
thanks for giving suggestion ,but after uploading a image should display the image.
Mr.VJ
27-Dec-13 1:04am
View
yes , i used but image not displaying after i use fileupload.
Mr.VJ
24-Dec-13 4:43am
View
hdn_imagepath.Value = "PH-" + Session["DQ_Doctor_ID"].ToString() + DateTime.Now.ToString("ddmmyy-hhmmss tt") + ".png";
Silverlight1.InitParameters = "PHOTO_NAME=" + hdn_imagepath.Value + ",DISPLAY_PHOTO=null";
in insert command i used hdn_imagepath.Value
Mr.VJ
17-Dec-13 7:09am
View
Strings
Mr.VJ
17-Dec-13 7:07am
View
Deleted
Strings
Mr.VJ
17-Dec-13 6:48am
View
here getting error in Strings.Format(Convert.ToDateTime(txtDate.Text), "dd/MM/yyyy");
it is Strings or anything else ?
Mr.VJ
18-Oct-13 8:57am
View
thnku codestar007 , but i need to retrive the data from database.
Mr.VJ
8-Oct-13 1:37am
View
hello , i need to send from website to mobile ex like way2sms.
Show More