15,916,945 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 Pradeep CBZ (Top 23 by date)
Pradeep CBZ
21-May-12 1:51am
View
Deleted
am doing in Asp.net..please do help me in this regard.
Pradeep CBZ
21-May-12 1:50am
View
Am doing in Asp.net...please do help me in this regard..
Pradeep CBZ
9-Apr-12 7:42am
View
hello sir,
Is this applicable for textbox,i mean for normal textbox control...
I just now checked for the your link ,same thing i did..it is working now.
But thing is i want it for textbox the same thing to be happen..because if i drag and drop a textbox,then in properties i will get id as "textbox".
But here,for this control no id is mentioned here..because i want to make it invisible in ON_LOad the textbox.So i need a textbox..
So is it java script supports with Asp.net.
Thanks
Pradeep CBZ
Pradeep CBZ
5-Apr-12 7:42am
View
Hello sir,
As i said earlier,its manadatory to do here and get data into "gridview" sir.Am doing project in ASP.net ,thing is aftering entering into textboxes and if i click into the "insert " button.Then it has to first save into the database(MSSQL) and has to be dislayed in the "gridview",as a single row.
Now if i enter a new data into the same textboxes,then its row as to be visible in the "gridview" as a second row....
So finally two rows has to be visible to us.
pLease tel me ,how to achive this...or if you hav the idea,please do share here sir..
If code is shown,then it will be helpfull.
Thanks
PRADEEPCBZ
Pradeep CBZ
5-Apr-12 7:33am
View
Deleted
Hello sir,
As i said earlier,its manadatory to do here sir.Am doing project in ASP.net ,thing is aftering entering into textboxes and if i click into the "insert " button.Then it has to first save into the database(MSSQL) and has to be dislayed in the gridview...
pLease tel me ,how to achive this...or if you hav the idea,please do share here sir..
Thanks
PRADEEPCBZ
Pradeep CBZ
29-Mar-12 4:48am
View
Hello sir,
even i changed my code into
<<<<<<
comboBox2.Items.Add(dr["Device_name"].ToString());
>>>>>>
But even though it is not working.I mean it is not giving error ,how to resolve it sir.
Thanks,
Pradeep.
Pradeep CBZ
29-Mar-12 4:23am
View
hello sir,
Nothing happening,over here.After executing or debugging the code,then if i click on the combobox then it is not retriving into combobox from SQL database column.How to achieve it.How to make it visible the dropdownlist or how to retrive.
Thanks
Pradeep
Pradeep CBZ
18-Mar-12 15:05pm
View
Thank you sir for your replay,I will try it...I will let u know.
Pradeep CBZ
12-Mar-12 23:19pm
View
Hello sir,
I was using my way,but i made a slight change according to you,even though it is not retriving.
I created in windows application,one form in that i had created three labels (first,middle,last) & infront of that i created textboxes with
Search button
in bottom .And now i created in database three fields called first,middle,last also i gave values for those fields . what i need is wen i enter in "first" textbox and hit the button search,for the remaining textboxs like middle & last the data has to be retrived into it.Now its giving error saying cannot convert varchar to int.I had given datatype as for all the fields in database as "varchar(50)". This is the error
Conversion failed when converting the varchar value 'f' to data type int.
.
And this the code:
namespace Config_admin
{
public partial class Form2 : Form
{
SqlCommand cmd = new SqlCommand();
SqlDataReader rdr;
DataSet ds;
SqlDataAdapter da;
public Form2()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Data Source=CBP\\SQLEXPRESS;Initial Catalog=ECG;Integrated Security=True");
con.Open();
cmd.CommandText = "select * from Table2 where first=" + textBox1.Text.Trim();
cmd.Connection = con;
rdr = cmd.ExecuteReader();
bool temp = false;
while (rdr.Read())
{
//textBox1.Text = rdr.GetString(0);
textBox2.Text = rdr.GetString(1);
textBox3.Text = rdr.GetString(2);
//textBox4.Text = rdr.GetString(3);
//textBox5.Text = rdr.GetString(4);
//textBox6.Text = rdr.GetString(5);
//textBox7.Text = rdr.GetString(6);
//textBox8.Text = rdr.GetString(7);
//textBox9.Text = rdr.GetString(8);
//textBox10.Text = rdr.GetString(9);
temp = true;
}
if (temp == false)
MessageBox.Show("not found");
con.Close();
con.Open();
ds = new DataSet();
da = new SqlDataAdapter("select * from Table2", con);
da.Fill(ds, "Table2");
con.Close();
}
}
}
Please any one help me.
Thanks & Regards
Pradeep CBZ
pradeepcbckm@gmail.com
Pradeep CBZ
9-Mar-12 1:29am
View
hello sir,
This is the code ,but it is giving error in this line: "SqlDataReader rdr = cmd.ExecuteReader();" and the error is: "An expression of non-boolean type specified in a context where a condition is expected, near 'Name'."
My code is :
private void button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection();
con.ConnectionString = "Data Source=CBP\\SQLEXPRESS;Initial Catalog=ECG;Integrated Security=True;Pooling=False";
//con.ConnectionString = "Data Source=CBP\\SQLEXPRESS;Initial Catalog=hms;Integrated Security=True;Pooling=False";
// SqlConnection con = new SqlConnection(sqlString);
con.Open();
SqlCommand cmd = new SqlCommand("select * from Config Login where User Name='" + textBox1.Text.Trim() + "' and Password='" + textBox2.Text.Trim() + "'", con);
SqlDataReader rdr = cmd.ExecuteReader();
rdr.Read();
if (rdr.HasRows)
{
Config_admin_screen f = new Config_admin_screen();
f.Show();
}
}
Please do replay me me as early as possible..
Thanks
Pradeep CBZ
Pradeep CBZ
6-Mar-12 9:30am
View
Thank you sir.
Pradeep CBZ
6-Mar-12 9:30am
View
Thank you sir.
Pradeep CBZ
14-Feb-12 1:06am
View
hello sir,
U r exactly rite sir,even i wanted the same...But this link i got estardy itself...bt they are using the same table to display data in 2nd page also..Here i correctly i meantioned above that in 2nd page i hv to dispaly the data stored in Table2...And also i tryed the above link estardy iteslf...bt givng error to one property missing..Dont know why...I did exactly the same way as above...Is there any other solution..
Thanks
PradeepCBZ
Pradeep CBZ
2-Feb-12 5:04am
View
Thank u for yr kind replay sir....
Sir,
But even though it is not displaying.
What has happened is am using the DropDownList14,so i changed every where.And also i had changed in method void Calender1_SelectionChanged.So after executing , "click me" is displayed in the DropDownList14,but after clicking that i didnt show anything i mean calender not showed..
please do help me sir..
Pradeep CBZ
4-Jan-12 22:37pm
View
Sir,
I got the solution ,after using this method setAutoCreateRowSorter(true) in main program,we can make the the column in the ascending & descending order with there alphabets & with there rows ordered automatically.
Pradeep CBZ
4-Jan-12 2:37am
View
OK thank u sir, i had gone to that link...it helped me,and sir in that two columns were there:property string and Value,in tht if i click Value its column is arranged in ascending order.But after clicking again the Value column it should arrange in the descending order,bt there it is not happening..
i want by clicking the same button both ascending & descending should happen.Sir if u got any idea about tht please share with me.
Plz help me...
Thanking u,
Pradeep
Pradeep CBZ
28-Dec-11 13:01pm
View
Hello ,
After searching in google itslf,i didnt found the solution...thts why i keept the question over here..ok
Pradeep CBZ
28-Dec-11 7:35am
View
Hello sir,
Am asking about the link to download the Java Beans as a plugin for EclipseIDE.But from the above link i got only "Writing a Simple Bean, Creating a Bean & Adding Properties ".
Thanks
Pradeep
Pradeep CBZ
22-Dec-11 23:15pm
View
Sir,
Because i confused with that method really.
Pradeep CBZ
22-Dec-11 23:14pm
View
Sir,
can u please show me with example,by taking object of database program using with addItem()[^] method.
Pradeep CBZ
22-Dec-11 23:01pm
View
Ok thank u sir for yr information..
Pradeep CBZ
22-Dec-11 14:12pm
View
Hello Sir,
But the thing is our project mentor saying that in visual studio the option is there like without writing program for SQL, direct connection will be possible in VStudio,but why not possible in eclipse for Java.
If i get to know then i will surly display here,if u get to know any idea about this later,plz do replay to this question.
Pradeep CBZ
22-Dec-11 6:52am
View
Sir ,
U mean to say i can install the eclipse ide in the ubuntu,there i can work java programs in the eclipse rite...
Show More