blah blah blah is here! blah blah » Close

0
votes
4 answers

Why i cannot access members throught reference?

Hi friend, here i have written a sample code for the client to access a class members in the BLL through another class: [code] namespace WindowsFormsApplication18 { public partial class Form1 : Form { A ...

0
votes
1 answers

Could any one clarify this code on Optimistic concurrency handling!

hi, I have foudn this article on "Optimistic Concurrency" on this http://msdn.microsoft.com/en-us/library/aa0416cz(VS.71).aspx I dont understand the following lines of code in it (I have written inline comments as questions): ...

0
votes
1 answers

where should i place these exceptions?

hi, I have a class A that has three methods, M1, M2 and M3 M1 is the caller of M2 and M3. M2 and M3 throws exceptions. this method M1 is called by class B from it;s method P1, Should i write any code in M1 to handle exception throw ...

0
votes
1 answers

How can i make a the implementation of a interface member internal?

Hi, I have a public interface. i have class that implements the interface, how do i make the implementation of interface members internal or private in the implementation class? If i declare an interface internal, how to implement th ...

0
votes
1 answers

ANy good books for Unit Testing?

hi, 1) I'm looking for good books published on Unit testing (specially Developer Unit testing) for VB or C# code (preferably C#) any suggestions? 2) I have found out that the Unit testing provided by the VSTS is similar to NUnit ...

0
votes
1 answers

Calling methods from interfaces?

public interface IValidator { void ValidateX(ArrayList al); void ValidateY(ArrayList al); } public class Employee : IValidator { public void ValidateX(ArrayList al) { ...

0
votes
1 answers

Is there a way to speed up unit testing?

In the project that i;m currently working on i;m not allowed to touch GUI for anyreason that includes program testing. I'm in bit of s frustration becuase prior to this all must application were developed and tested using GUI. Typicvally it ...

0
votes
1 answers

Should i write an Error handler class?

Hi , i have a method SaveRecord() in teh data access layer (DAL) that should return the status of the query execution to the Business Layer (BL) There are three possible messages the DAL could return to BL: 1. Successfull Execution -- ...

0
votes
1 answers

How to insert record to the data set using DataAdapter?

Hi, If i retreive data to teh dataset using SQLDataAdapter we call teh Fill() of the data adapter. If i update then i should call update() from the dataadapter if i delete then i should call delete() fromthe dataadapter. What method ...

0
votes
1 answers

The difference between NVarChar and Varchar?

Hi, In SQL what's the difference between nVarchar and Varchar? Assume i need to store a report of 30, 000 charactors, which SQL string type i have to use to store the report object? cheers

0
votes
1 answers

How to Implemeting datasets to create better DB applications?

hi, I my opinion i think i should use datasets fully when performing select, insert, update and delete operations to DB. Foloowing this concept, The applications control flow should be: Assume there is a CRUD application to manage Emp ...

0
votes
1 answers

How many update statements that i have to write if the client has 3 text fields?

Hi, Assume i have a form that has three fields (all textboxes). I can find an Item by ItemNo. When item is found the detail, ItemName and ItemWeight is loaded to the other two textboxes. User updates the "Item Wieght". The log ...

0
votes
1 answers

How to create Arrays with String indexes?

hi, i hqve posted a thread similar to this. but i don think i have received the answer becuase my post is not clear. Therefore i i'l try to explain this through some code: Assume a class Customer has the following code: public class ...

0
votes
1 answers

How to create Collections with Named Indexes?

hi, I need to create a collection that should have named indexes. e.g.: In typical collection such as ArrayList : ArrayList al= New ArrayList(); al.Add("10"); al.Add("20"); to access first element ...

0
votes
1 answers

The event i should use to capture the click event on a child form of a MDIparent?

Hi, I havea an MDI parent form called MDIParent1. THis parent form comes with the VS prebuilt forms in add items. Every time i click new form, it will generate new child form. I need to display the title text of a child form, when i c ...

Feedback