Click here to Skip to main content
15,896,487 members
Home / Discussions / C#
   

C#

 
AnswerRe: Binding data to the DataGridView Pin
Henry Minute10-Feb-09 19:33
Henry Minute10-Feb-09 19:33 
GeneralRe: Binding data to the DataGridView Pin
mrithula810-Feb-09 19:48
mrithula810-Feb-09 19:48 
GeneralRe: Binding data to the DataGridView Pin
Henry Minute10-Feb-09 20:05
Henry Minute10-Feb-09 20:05 
AnswerRe: Binding data to the DataGridView Pin
Ramkithepower10-Feb-09 19:51
Ramkithepower10-Feb-09 19:51 
QuestionProgress of FTP upload or download Pin
Radhakrishnan G.10-Feb-09 18:41
Radhakrishnan G.10-Feb-09 18:41 
Questionlog incoming sms to a form, then can be deleted one by one Pin
irsalina10-Feb-09 18:34
irsalina10-Feb-09 18:34 
AnswerRe: log incoming sms to a form, then can be deleted one by one Pin
Christian Graus10-Feb-09 18:43
protectorChristian Graus10-Feb-09 18:43 
QuestionError in Hashtable with arrayList Pin
r aa j10-Feb-09 18:26
r aa j10-Feb-09 18:26 
I am developing website using C# with ASP.net.
one page I am inserting data into hashtable after reach 1000(>1000),Add it into Array list than Insert into Database...here sometimes saying Exception like
Item has already been added. Key in dictionary: '12' Key being added: '12'
...Please help me with this.....How to avoid this Eception...


and I am using following code..


public static Hashtable ht = new Hashtable();
public string Crid="";
Crid = ht.Count.ToString();
string[] st = new string[4];
st[0] = Crid;
st[1] = "5654546456";
st[2] = "0";
st[3] = "1";
if (ht.Count<1000)
{
ht.Add(ht.Count, st);
}
else
{
ArrayList list = new ArrayList();
foreach (int key in ht.Keys)
{
list.Add(ht[key]);
}
ht.Clear();
ht = new Hashtable();
ht.Add(ht.Count, st);

for (int j = 0; j < list.Count; j++)
{
//here Inserting data into Database
}
}

Raaj

AnswerRe: Error in Hashtable with arrayList Pin
Christian Graus10-Feb-09 18:42
protectorChristian Graus10-Feb-09 18:42 
QuestionC++ dll in C# Pin
kk.tvm10-Feb-09 18:05
kk.tvm10-Feb-09 18:05 
AnswerRe: C++ dll in C# Pin
Christian Graus10-Feb-09 18:43
protectorChristian Graus10-Feb-09 18:43 
QuestionPaging DataList Control Pin
ferronrsmith10-Feb-09 16:41
ferronrsmith10-Feb-09 16:41 
QuestionASP.NET multiuser dataset shared problem Pin
Ramkithepower10-Feb-09 14:44
Ramkithepower10-Feb-09 14:44 
AnswerRe: ASP.NET multiuser dataset shared problem Pin
N a v a n e e t h10-Feb-09 15:28
N a v a n e e t h10-Feb-09 15:28 
GeneralRe: ASP.NET multiuser dataset shared problem Pin
Ramkithepower10-Feb-09 15:34
Ramkithepower10-Feb-09 15:34 
GeneralRe: ASP.NET multiuser dataset shared problem Pin
Guffa10-Feb-09 17:57
Guffa10-Feb-09 17:57 
GeneralRe: ASP.NET multiuser dataset shared problem Pin
Ramkithepower10-Feb-09 21:33
Ramkithepower10-Feb-09 21:33 
GeneralRe: ASP.NET multiuser dataset shared problem Pin
Guffa10-Feb-09 23:42
Guffa10-Feb-09 23:42 
QuestionHDD Serial Number Pin
Socheat.Net10-Feb-09 14:23
Socheat.Net10-Feb-09 14:23 
AnswerRe: HDD Serial Number Pin
ABitSmart10-Feb-09 14:43
ABitSmart10-Feb-09 14:43 
GeneralRe: HDD Serial Number Pin
Socheat.Net10-Feb-09 15:07
Socheat.Net10-Feb-09 15:07 
AnswerRe: HDD Serial Number Pin
Luc Pattyn10-Feb-09 14:57
sitebuilderLuc Pattyn10-Feb-09 14:57 
AnswerRe: HDD Serial Number Pin
Ramkithepower10-Feb-09 15:05
Ramkithepower10-Feb-09 15:05 
AnswerRe: HDD Serial Number Pin
ABitSmart10-Feb-09 15:53
ABitSmart10-Feb-09 15:53 
AnswerRe: HDD Serial Number Pin
#realJSOP10-Feb-09 23:37
professional#realJSOP10-Feb-09 23:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.