15,904,155 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 Abdullah Kundi (Top 19 by date)
Abdullah Kundi
8-Dec-14 2:43am
View
i have worked on this database for one year, if some other developers will hack my database then why i worked for one year on this database?
Abdullah Kundi
10-Nov-14 4:05am
View
Prospects one to many with Elective.
Prospects one to one with Subject
Abdullah Kundi
31-Oct-14 4:12am
View
now check please and give any feedback
Abdullah Kundi
23-Sep-14 4:09am
View
No, its a roll paper
Abdullah Kundi
13-Sep-14 7:29am
View
there is no login user and password on other pc's
Abdullah Kundi
30-Jun-14 6:03am
View
Good shot , Sir it solved my problem
Abdullah Kundi
30-Jun-14 4:58am
View
string s = (dg["Reason", i].Value == null)in this line of code same error
R/Sir if cell is empty then it gives same problem 'object reference not set to an instance of object'
Abdullah Kundi
30-Jun-14 4:14am
View
this is my code
private void insert()
{
for (int i = 0; i < dg.Rows.Count; i++)
{
string celValue = dg.Rows[i].Cells["Student"].Value.ToString();
int stdNo = da.fetchKeyStudent(celValue);
da.ProcName = "AddStudentsAttendance";
da.OpenDBConnection();
da.CreateCommandObject();
da.Parameters("@Date", txtDate.Text);
da.Parameters("@keyEmployee", int.Parse(txtEmployee.SelectedValue.ToString()));
da.Parameters("@KeyStudent", stdNo);
da.Parameters("@Present", Convert.ToBoolean(dg.Rows[i].Cells["Present"].Value));
da.Parameters("@Reason", dg.Rows[i].Cells["Reason"].Value.ToString());
da.Parameters("@UpdOperation", 0);
da.ExecuteNonQuery();
da.CloseConnection();
}
dg.DataSource = null;
Empty();
}
Abdullah Kundi
28-May-14 3:38am
View
Thanks a lot, it works
Abdullah Kundi
28-May-14 2:57am
View
thanks for reply but .Cells is not supported what to do?
Abdullah Kundi
28-May-14 2:48am
View
I have changed the column to Student,
problem is with foreach(object item in dg.rows)
dataRow dir = item as datarow;
here in dir null value ( if debugger is used)
Abdullah Kundi
28-May-14 2:36am
View
Object reference not set to an instance of an object.
the error is genarated at da.parameters("@AdmissionNO",..........) line
Abdullah Kundi
23-May-14 6:46am
View
it have a logical error. Sir ji.
Abdullah Kundi
23-May-14 3:50am
View
error object does not contain definition for value.
foreach (var item in this.checkedListBox1.CheckedItems)
{
da.ProcName = "AssignSubjectToStudent";
da.OpenDBConnection();
da.CreateCommandObject();
da.Parameters("@KeyStudent", int.Parse(txtStudent.SelectedValue.ToString()));
da.Parameters("@KeySubject", int.Parse(item.value));
da.ExecuteNonQuery();
}
da.CloseConnection();
empty();
Abdullah Kundi
23-May-14 3:26am
View
thanks for reply, but it gives error ,"Specified cast is not valid."
foreach (int item in this.checkedListBox1.CheckedItems)
Abdullah Kundi
23-May-14 3:21am
View
thanks dear your logic is good but actualy i want to send database value member of selected items
in checkedlistbox, your code gives an error that Nvarchar value can'nt be converted to int,
the attribute in my table is of int type
Abdullah Kundi
22-May-14 6:56am
View
Dear i appreciate your effort but i in need code for window application not for web Application
Abdullah Kundi
22-May-14 6:26am
View
Dear i Want to insert it using loop like below code, but below code is used only in Web Application. Please help.
Abdullah Kundi
22-May-14 6:23am
View
C# window application does not support ListItem , it requires System.window.Documents; that can not be included to Window applications
Show More