Click here to Skip to main content
15,906,301 members
Home / Discussions / C#
   

C#

 
GeneralRe: Question System.StackOverflowException problem. [modified] Pin
hdv21213-Sep-08 6:16
hdv21213-Sep-08 6:16 
GeneralRe: Question System.StackOverflowException problem. Pin
Dave Kreskowiak13-Sep-08 7:13
mveDave Kreskowiak13-Sep-08 7:13 
GeneralRe: Question System.StackOverflowException problem. Pin
hdv21213-Sep-08 7:24
hdv21213-Sep-08 7:24 
GeneralRe: Question System.StackOverflowException problem. Pin
S. Senthil Kumar13-Sep-08 9:23
S. Senthil Kumar13-Sep-08 9:23 
GeneralRe: Question System.StackOverflowException problem. Pin
hdv21213-Sep-08 10:14
hdv21213-Sep-08 10:14 
Questionhow to make icon for file Pin
nmhai8313-Sep-08 3:26
nmhai8313-Sep-08 3:26 
AnswerRe: how to make icon for file Pin
Giorgi Dalakishvili13-Sep-08 3:30
mentorGiorgi Dalakishvili13-Sep-08 3:30 
GeneralRe: how to make icon for file Pin
nmhai8314-Sep-08 21:59
nmhai8314-Sep-08 21:59 
GeneralRe: how to make icon for file Pin
Giorgi Dalakishvili15-Sep-08 0:08
mentorGiorgi Dalakishvili15-Sep-08 0:08 
QuestionCall function in aspx file from javascript file(Validation)????? Pin
g_amol13-Sep-08 1:30
g_amol13-Sep-08 1:30 
NewsRe: Call function in aspx file from javascript file(Validation)????? Pin
Mbah Dhaim13-Sep-08 3:12
Mbah Dhaim13-Sep-08 3:12 
QuestionRemote Print (Crystal Report) Pin
mehrdadc4813-Sep-08 0:24
mehrdadc4813-Sep-08 0:24 
AnswerRe: Remote Print (Crystal Report) Pin
Dave Kreskowiak13-Sep-08 5:17
mveDave Kreskowiak13-Sep-08 5:17 
QuestionPossible Bug?? Pin
Muammar©12-Sep-08 23:28
Muammar©12-Sep-08 23:28 
AnswerRe: Possible Bug?? Pin
Muammar©12-Sep-08 23:42
Muammar©12-Sep-08 23:42 
JokeRe: Possible Bug?? Pin
Mycroft Holmes13-Sep-08 0:12
professionalMycroft Holmes13-Sep-08 0:12 
GeneralRe: Possible Bug?? Pin
Muammar©13-Sep-08 0:21
Muammar©13-Sep-08 0:21 
GeneralRe: Possible Bug?? Pin
Anthony Mushrow13-Sep-08 0:54
professionalAnthony Mushrow13-Sep-08 0:54 
GeneralRe: Possible Bug?? Pin
User 665813-Sep-08 1:04
User 665813-Sep-08 1:04 
AnswerRe: Possible Bug?? Pin
#realJSOP13-Sep-08 1:03
professional#realJSOP13-Sep-08 1:03 
QuestionTableAdapter.Insert method problem. [modified] Pin
hdv21212-Sep-08 23:19
hdv21212-Sep-08 23:19 
hi i was designed a new TableAdapter in Viusal Studio 2005 DataSet Designer(add new table and set it's CRUD command with Stored Procedures), the first column of table is pk and identity, my problem is that the insert method parameters is :
t1TableAdapter.Insert(ref int? id,int? number,string name)

first question : what is '?' ?
second question : when i insert my record by following code :
int id = -1;
int number = int.Parse(this.textBox2.Text);
string name = this.textBox3.Text;

this.adapter.Insert(ref id, number, name);


the following error message has shown me :
The best overloaded method match for 'DataAccessDesigner.DsMyDbTableAdapters.t1TableAdapter.Insert(ref int?, int?, string)' has some invalid arguments.
Argument '1': cannot convert from 'ref int' to 'ref int?'


how to solve it ?

---------------------------------------------------------------------------------

another problem is that when i declare id as int? instead of int, like this :
int? id = -1;
int number = int.Parse(this.textBox2.Text);
string name = this.textBox3.Text;

this.adapter.Insert(ref id, number, name);
this.button1_Click(null, null);


it compile and when i insert a new record, the stackOverFlow exception has occuerd, why ?
thanks

modified on Saturday, September 13, 2008 5:29 AM

QuestionGet exe/dll Icon Pin
Muammar©12-Sep-08 21:46
Muammar©12-Sep-08 21:46 
AnswerRe: Get exe/dll Icon Pin
Muammar©12-Sep-08 22:08
Muammar©12-Sep-08 22:08 
QuestionHow to generate Graphs using xml with crystal reports. Pin
K V Sekhar12-Sep-08 21:43
K V Sekhar12-Sep-08 21:43 
AnswerRe: How to generate Graphs using xml with crystal reports. Pin
Mbah Dhaim13-Sep-08 2:47
Mbah Dhaim13-Sep-08 2:47 

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.