15,892,737 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 faizyab 2009 (Top 61 by date)
faizyab 2009
16-Aug-22 2:27am
View
Sir if you have any valid pattern so please provide to me . as per my requirement i can use only these codes.
please make it clear. or send me valid codes
faizyab 2009
10-May-16 14:20pm
View
private void button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Data Source=.;Initial Catalog=DCID;Integrated Security=True");
con.Open();
string query = "insert into DSIIDC_Component_List (FARNo,User1,User2,User3,Date,ProductCategory,Model,PurchaseOrderNo,Make,InvoiceNo,SerialNo,BriefDetails,SystemTransferDetails,ProductCost,VendorName,WarrantyUpTO,AMCFrom,AMCTO,AMCWith,IssuedOn,WarrantyOnSite,WarrantyOFFSite,underAMCYES) values(@FARNo,@User1,@User2,@User3,@Date,@ProductCategory,@Model,@PurchaseOrderNo,@Make,@InvoiceNo,@SerialNo,@BriefDetails,@SystemTransferDetails,@ProductCost,@VendorName,@WarrantyUpTO,@AMCFrom,@AMCTO,@AMCWith,@IssuedOn,@WarrantyOnSite,@WarrantyOFFSite,@underAMCYES)";
SqlCommand cmd = new SqlCommand(query, con);
bool flag = Isexsist(txtfrano.Text);
if (flag)
{
MessageBox.Show("ID is already");
}
else
{
string FAR = "";
if (string.IsNullOrEmpty(txtfrano.Text) || txtfrano.Text[0] == ' ')
{
MessageBox.Show("F.A R Number is empty");
return;
}
else
{
FAR = this.txtfrano.Text;
MessageBox.Show("FAR Number" + FAR);
}
string model = "";
if (string.IsNullOrEmpty(txtmodel.Text) || txtmodel.Text[0] == ' ')
{
MessageBox.Show("Model is empty");
return;
}
else
{
model = this.txtmodel.Text;
// MessageBox.Show("model is" + model);
}
string purchaseorderno = "";
if (string.IsNullOrEmpty(txtpurchaseorderno.Text) || txtpurchaseorderno.Text[0] == ' ')
{
MessageBox.Show("purchaseorderno is empty");
return;
}
else
{
purchaseorderno = this.txtpurchaseorderno.Text;
// MessageBox.Show("purchaseorderno is" + purchaseorderno);
}
string invoicno = "";
if (string.IsNullOrEmpty(txtinvoicno.Text) || txtinvoicno.Text[0] == ' ')
{
MessageBox.Show("invoicno is empty");
return;
}
else
{
invoicno = this.txtinvoicno.Text;
//MessageBox.Show("invoicno is" + invoicno);
}
string serialno = "";
if (string.IsNullOrEmpty(txtserialno.Text) || txtserialno.Text[0] == ' ')
{
MessageBox.Show("serialno is empty");
return;
}
else
{
serialno = this.txtserialno.Text;
// MessageBox.Show("serialno is" + serialno);
}
string briefConfiguration = "";
if (string.IsNullOrEmpty(txtbriefConfiguration.Text) || txtbriefConfiguration.Text[0] == ' ')
{
MessageBox.Show("serialno is empty");
return;
}
else
{
briefConfiguration = this.txtbriefConfiguration.Text;
//MessageBox.Show("briefConfiguration is" + briefConfiguration);
}
string systemtransfer = "";
if (string.IsNullOrEmpty(txtsystemtransfer.Text) || txtsystemtransfer.Text[0] == ' ')
{
MessageBox.Show("serialno is empty");
return;
}
else
{
syst
faizyab 2009
10-May-16 14:20pm
View
"The parameterized query '(@WarrantyOnSite nvarchar(3),@WarrantyOFFSite nvarchar(4000),@un' expects the parameter '@ProductCategory', which was not supplied."this is error
faizyab 2009
10-May-16 14:16pm
View
this is a window form
faizyab 2009
10-May-16 14:06pm
View
Sir this is window form in C# . this is not a web page. how can we use jquery in this
faizyab 2009
11-Mar-16 14:30pm
View
Sir i tried this like mypcname/SQLEXPRESS. but problem did not solve?
faizyab 2009
29-Feb-16 2:15am
View
hello are you available this time
faizyab 2009
26-Feb-16 1:01am
View
public partial class Form8 : Form
{
public Form8()
{
InitializeComponent();
}
string partname;
private void Form8_Load(object sender, EventArgs e)
{
}
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
partname = "HardDrive";
}
private void checkBox4_CheckedChanged(object sender, EventArgs e)
{
partname = "Mouse";
}
private void checkBox2_CheckedChanged(object sender, EventArgs e)
{
partname = "RAM";
}
private void checkBox3_CheckedChanged(object sender, EventArgs e)
{
partname = "KeyBoard";
}
private void checkBox5_CheckedChanged(object sender, EventArgs e)
{
partname = "Monitor";
}
private void checkBox6_CheckedChanged(object sender, EventArgs e)
{
partname = "DVD Writer";
}
private void checkBox7_CheckedChanged(object sender, EventArgs e)
{
partname = "UPS";
}
private void checkBox8_CheckedChanged(object sender, EventArgs e)
{
partname = "Printer";
}
private void checkBox9_CheckedChanged(object sender, EventArgs e)
{
partname = "Lan Card";
}
private void button1_Click(object sender, EventArgs e)
{
try
{
using (SqlConnection con = new SqlConnection("Data Source=.;Initial Catalog=DCID;Integrated Security=True"))
{
string query = "insert into Direct_Purchase_Accessories(product,make,serialnumber) values(@product,@make,@serialnumber)";
SqlCommand cmd = new SqlCommand(query, con);
foreach (Control control in Controls)
{
if (control is CheckBox)
{
CheckBox chk = new CheckBox();
chk.Checked = Convert.ToBoolean(control);
cmd.Parameters.AddWithValue("@product", chk.Checked);
}
}
foreach (Control control1 in Controls)
{
if (control1 is ComboBox)
{
ComboBox combo = new ComboBox();
combo.SelectedItem = control1;
cmd.Parameters.AddWithValue("@make", combo.SelectedItem);
}
}
foreach (Control control2 in Controls)
{
if (control2 is TextBox)
{
cmd.Parameters.AddWithValue("@serialnumber", control2 as TextBox);
}
}
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds, "Direct_Purchase_Accessories");
MessageBox.Show("submitted");
}
}
catch (Exception ex)
{
MessageBox.Show("Please check"+ex);
}
}
private void comboBox4_SelectedIndexChanged(object sender, EventArgs e)
{
}
}
faizyab 2009
25-Feb-16 14:05pm
View
public partial class Form8 : Form
{
public Form8()
{
InitializeComponent();
}
string partname;
private void Form8_Load(object sender, EventArgs e)
{
}
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
partname = "HardDrive";
}
private void checkBox4_CheckedChanged(object sender, EventArgs e)
{
partname = "Mouse";
}
private void checkBox2_CheckedChanged(object sender, EventArgs e)
{
partname = "RAM";
}
private void checkBox3_CheckedChanged(object sender, EventArgs e)
{
partname = "KeyBoard";
}
private void checkBox5_CheckedChanged(object sender, EventArgs e)
{
partname = "Monitor";
}
private void checkBox6_CheckedChanged(object sender, EventArgs e)
{
partname = "DVD Writer";
}
private void checkBox7_CheckedChanged(object sender, EventArgs e)
{
partname = "UPS";
}
private void checkBox8_CheckedChanged(object sender, EventArgs e)
{
partname = "Printer";
}
private void checkBox9_CheckedChanged(object sender, EventArgs e)
{
partname = "Lan Card";
}
private void button1_Click(object sender, EventArgs e)
{
try
{
using (SqlConnection con = new SqlConnection("Data Source=.;Initial Catalog=DCID;Integrated Security=True"))
{
string query = "insert into Direct_Purchase_Accessories(product,make,serialnumber) values(@product,@make,@serialnumber)";
SqlCommand cmd = new SqlCommand(query, con);
foreach (Control control in Controls)
{
if (control is CheckBox)
{
CheckBox chk = new CheckBox();
chk.Checked = Convert.ToBoolean(control);
cmd.Parameters.AddWithValue("@product", chk.Checked);
}
}
foreach (Control control1 in Controls)
{
if (control1 is ComboBox)
{
ComboBox combo = new ComboBox();
combo.SelectedItem = control1;
cmd.Parameters.AddWithValue("@make", combo.SelectedItem);
}
}
foreach (Control control2 in Controls)
{
if (control2 is TextBox)
{
cmd.Parameters.AddWithValue("@serialnumber", control2 as TextBox);
}
}
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds, "Direct_Purchase_Accessories");
MessageBox.Show("submitted");
}
}
catch (Exception ex)
{
MessageBox.Show("Please check"+ex);
}
}
private void comboBox4_SelectedIndexChanged(object sender, EventArgs e)
{
}
}
faizyab 2009
25-Feb-16 3:53am
View
Thank you so much
faizyab 2009
4-Feb-16 14:58pm
View
SystemserialNo is the primary key
faizyab 2009
20-Jul-15 5:55am
View
Sir i want to check it from the validation process
faizyab 2009
7-Jul-15 2:36am
View
sir if you are saying so i try . be online because if it does not run so i will ask from you again ...
faizyab 2009
7-Jul-15 2:27am
View
Sir .But Can We use CSS in side the window base application ??? Sir i am talking about DataGridview. and css applies applies into Gridview Control.
faizyab 2009
8-Jun-15 2:37am
View
Thank You Sir .!!! It is Working now !!!! :).
"Sometimes small small things make codes more tuff ."
faizyab 2009
8-Jun-15 2:25am
View
still not workiing
faizyab 2009
8-Jun-15 2:24am
View
now have donle like this way plz check
private void courtnamelist_SelectedIndexChanged(object sender, EventArgs e)
{
int[] arr=new int[5];
arr[0] = supremecourtlist.SelectedIndex;
arr[1] = districtcourtlist.SelectedIndex;
arr[2] = heighcourtlist.SelectedIndex;
arr[3] = nationlgreentribunallict.SelectedIndex;
int selectinsexval = courtnamelist.SelectedIndex;
if (arr[0]==selectinsexval)
{
supremecourtlist.Visible = true;
button8.Visible = false;
}
else if (arr[1] == selectinsexval)
{
districtcourtlist.Visible = true;
}
else if (arr[2] == selectinsexval)
{
heighcourtlist.Visible = true;
}
}
faizyab 2009
8-Jun-15 1:56am
View
Sir i tried as you are saying to me. i hope it will work if i will assign arr[0]=Comboxbox1.SelectedIndex,arr[1]=Comboxbox2.SelectedIndex,arr[2]=Comboxbox3.SelectedIndex
Did it your mean ????
faizyab 2009
8-Jun-15 1:39am
View
nope!! i did not get it. please correct my codes. where io am wrong. i tried it from switch case but it does not work .i will be grateful to you sir
faizyab 2009
1-Jun-15 5:18am
View
thank you !!!!
faizyab 2009
15-Jan-15 15:49pm
View
if i add values inside the row so add button is working but row does not show at that time. but if i close the page and again reload then added values display. why thd is thing happening . and i have checked page_load() and postback event
faizyab 2009
24-Dec-14 16:06pm
View
Thank you all of you friends. now i have change the codes i used dataset and returned ds value now my code is working
faizyab 2009
24-Dec-14 7:11am
View
i have defined properties in BEL class. if i am missing something in BEL so please tell me how to correct
faizyab 2009
24-Dec-14 6:45am
View
i am getting one exception error in da.fill(ds) line
"SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.
"
@tejas sir i want to run this code properly. please tell me where i am missing
faizyab 2009
24-Dec-14 6:29am
View
i am not able to get the records into the gridview
faizyab 2009
20-Dec-14 14:38pm
View
problem is coming in this
obj.Salary = Convert.ToDecimal(TextBox3.Text);
control is not going ahead after reaching this section
faizyab 2009
24-Nov-14 4:48am
View
now i have changed the text file. now my code is working thank you so much
faizyab 2009
24-Nov-14 0:24am
View
Nope !!! . still not working . i have done button type
<button type="button">Get External Content</button>
but still not working
faizyab 2009
22-Nov-14 2:31am
View
thank you RossMW
faizyab 2009
9-Feb-13 6:06am
View
yha to sub kuch milgaya
faizyab 2009
9-Feb-13 6:05am
View
thank you so much brother :) . i was looking same thing. i am very very very grateful .
faizyab 2009
9-Feb-13 2:22am
View
Thank you so much . this example will be very helpful for me .
faizyab 2009
21-Jan-13 11:53am
View
Deleted
<pre>
<div>
<img src="images/thumbs/Product634942228352174000.jpg" alt="SmallImage" />
</div>
</pre>
faizyab 2009
21-Jan-13 11:52am
View
Marcus : now i am applying this but still same please check
<div>
<img src="images/thumbs/Product634942228352174000.jpg" alt="SmallImage" />
</div>
faizyab 2009
26-Nov-12 14:38pm
View
i have given a link on this question . when you will click on this. please open this site and see and please give me. some hint. i have been trying to search this since two days ....
faizyab 2009
26-Nov-12 11:03am
View
Thank You !Thank You ! Thank You ! Sooooo Much Brother Krunal!!!
faizyab 2009
4-Nov-12 2:20am
View
For Using MVC . Will i have to install any type of setup before making this architecture
faizyab 2009
4-Apr-12 4:48am
View
i am using foreach condition and count .please show me some code ...
faizyab 2009
27-Mar-12 4:01am
View
This code is not working check again!!
faizyab 2009
23-Mar-12 5:24am
View
i need proper example for abstract class. i know what is abstract and how to use . but the main problem is where and how i can use in which applications ....sameer
faizyab 2009
11-Mar-12 1:55am
View
which is the right answer ?
faizyab 2009
28-Feb-12 4:11am
View
Please send me more links for study
faizyab 2009
7-Feb-12 14:43pm
View
Deleted
Thank you sir ! But What is the problem so ask questions from you guys. i know you are expert and you will never give me wrong answers. and from you guys i have learn so much between these days.... sir
Well i am not confused. But spending so much time on the computer screen so sometime mind become very tired and nothing ....sir
faizyab 2009
6-Feb-12 15:28pm
View
What a nice Ans dear ! actually my friend wants to get the solution.he is still waiting.
faizyab 2009
6-Feb-12 10:47am
View
sir i have learn so much from your help. really thanks to you.
very fast i am getting more skills from you people. but sir sometime it is very hard to understand . that's why i ask about more answer ....
faizyab 2009
6-Feb-12 10:18am
View
from the google i can see but it will be hard to search right thing in small time . from your help i can learn very soon. please give me right url to learn
faizyab 2009
6-Feb-12 10:11am
View
IS there any solution ???
faizyab 2009
5-Feb-12 13:52pm
View
yes friend thank you so much
faizyab 2009
4-Feb-12 13:57pm
View
sir i am not new . i have 2 years of experience . but i never worked on it. i saw so many articles but they are very hard to understand.
here everything i have to work independently . you type of peoples help me and i am very thanks full to them . and i have seen so much from the code project really i am very thanks full . please help me sir and give me some thing essay to earn .....
faizyab 2009
4-Feb-12 13:39pm
View
i want to learn sir.please help me and tell me how i can create that thing and how we can do this ....
faizyab 2009
4-Feb-12 8:00am
View
hahahahahahahahahah very nice Answer brother :)
faizyab 2009
3-Feb-12 14:08pm
View
Thank you so much my friend . it is a nice solution..
faizyab 2009
3-Feb-12 5:50am
View
i have seen in Wikipedia.If is there any url with example..?
faizyab 2009
2-Feb-12 14:09pm
View
Hopefully you understood friend. if Is there any example or article or url so please send me .
faizyab 2009
2-Feb-12 6:10am
View
it is very simple English. ever one can read and understand.
faizyab 2009
30-Jan-12 9:29am
View
this article are very nice and i want same but the problem is . thisin is in vb.net and i want into c# so please send me c# codes
faizyab 2009
22-Jan-12 16:14pm
View
Thank you My friend
faizyab 2009
22-Jan-12 14:20pm
View
Friend
Is there any way to do this job. i can not change the form design .i am sending one link you can see
it is something like
http://www.jeevansathi.com/profile/registration_pg1.php?source=hp_side
there are so many forms so how we can do it
faizyab 2009
22-Jan-12 14:08pm
View
Dear i can use session but if there are millions of the users use this application so the server can get down . that's why i can not use session ...faiz
faizyab 2009
22-Jan-12 6:12am
View
Thank you Sir !
faizyab 2009
21-Jan-12 14:59pm
View
Thank you sir .if i don't use store procedure so how i can do it ?
Show More