Click here to Skip to main content
15,905,232 members
Home / Discussions / C#
   

C#

 
QuestionDetailsView returns null values on postback?? Pin
je198026-Oct-09 10:41
je198026-Oct-09 10:41 
AnswerRe: DetailsView returns null values on postback?? Pin
Not Active26-Oct-09 11:15
mentorNot Active26-Oct-09 11:15 
QuestionODBC Type mismatch error Pin
TheJudeDude26-Oct-09 9:25
TheJudeDude26-Oct-09 9:25 
AnswerRe: ODBC Type mismatch error Pin
Abhishek Sur26-Oct-09 10:01
professionalAbhishek Sur26-Oct-09 10:01 
GeneralRe: ODBC Type mismatch error Pin
TheJudeDude26-Oct-09 11:46
TheJudeDude26-Oct-09 11:46 
AnswerRe: ODBC Type mismatch error Pin
OriginalGriff26-Oct-09 10:02
mveOriginalGriff26-Oct-09 10:02 
GeneralRe: ODBC Type mismatch error Pin
TheJudeDude26-Oct-09 11:51
TheJudeDude26-Oct-09 11:51 
GeneralRe: ODBC Type mismatch error Pin
Luc Pattyn26-Oct-09 12:22
sitebuilderLuc Pattyn26-Oct-09 12:22 
GeneralRe: ODBC Type mismatch error Pin
TheJudeDude26-Oct-09 13:19
TheJudeDude26-Oct-09 13:19 
GeneralRe: ODBC Type mismatch error Pin
Luc Pattyn26-Oct-09 13:40
sitebuilderLuc Pattyn26-Oct-09 13:40 
GeneralRe: ODBC Type mismatch error Pin
TheJudeDude26-Oct-09 14:10
TheJudeDude26-Oct-09 14:10 
GeneralRe: ODBC Type mismatch error Pin
Luc Pattyn26-Oct-09 14:18
sitebuilderLuc Pattyn26-Oct-09 14:18 
GeneralRe: ODBC Type mismatch error Pin
TheJudeDude26-Oct-09 14:42
TheJudeDude26-Oct-09 14:42 
GeneralRe: ODBC Type mismatch error Pin
Luc Pattyn26-Oct-09 14:53
sitebuilderLuc Pattyn26-Oct-09 14:53 
GeneralRe: ODBC Type mismatch error Pin
TheJudeDude26-Oct-09 15:41
TheJudeDude26-Oct-09 15:41 
GeneralRe: ODBC Type mismatch error Pin
Luc Pattyn26-Oct-09 15:46
sitebuilderLuc Pattyn26-Oct-09 15:46 
GeneralRe: ODBC Type mismatch error Pin
TheJudeDude27-Oct-09 3:49
TheJudeDude27-Oct-09 3:49 
AnswerRe: ODBC Type mismatch error Pin
Luc Pattyn26-Oct-09 10:05
sitebuilderLuc Pattyn26-Oct-09 10:05 
QuestionChecking required fields in a second Windows Form Pin
JTRizos26-Oct-09 8:31
JTRizos26-Oct-09 8:31 
I am new to C# but have developed an application that worked until the need came up to ask for two additional fields of information. Because of the way the app is structured, I decided to ask for these two fields in a second form (Form2) using a dialog box. This seems to work well and finally was able to retrieve the two textboxes into the first form. I have two problems.

1) I am not sure where I should check that both fields have been filled. I have tried in both forms but although I can generate a message telling the user that both are required, I cannot seem to get Form2 to redisplay for the user to fill in the fields. The code continues to the next step. I want it to - if fields empty then display message and redisplay form. Where is the best place to do this check and redisplay the form until the user fills in both fields and hits OK or hits cancel?

2) For some reason Form2 gets displayed twice. I enter both fields and hit OK and the form is redisplayed with my input and I have to hit OK again. Any ideas how this can happen? I use the normal code.

Form2 qForm = new Form2();
qForm.ShowDialog();

Thanx in advance for any help. This site has been a big help in working through this. Unsure | :~
AnswerRe: Checking required fields in a second Windows Form Pin
Not Active26-Oct-09 8:50
mentorNot Active26-Oct-09 8:50 
GeneralRe: Checking required fields in a second Windows Form Pin
JTRizos26-Oct-09 11:09
JTRizos26-Oct-09 11:09 
GeneralRe: Checking required fields in a second Windows Form Pin
Not Active26-Oct-09 11:26
mentorNot Active26-Oct-09 11:26 
GeneralRe: Checking required fields in a second Windows Form Pin
JTRizos26-Oct-09 11:56
JTRizos26-Oct-09 11:56 
GeneralRe: Checking required fields in a second Windows Form Pin
Not Active26-Oct-09 12:44
mentorNot Active26-Oct-09 12:44 
GeneralRe: Checking required fields in a second Windows Form Pin
JTRizos26-Oct-09 13:03
JTRizos26-Oct-09 13:03 

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.