Click here to Skip to main content
15,886,137 members
Home / Discussions / C#
   

C#

 
GeneralRe: repost Pin
Maria_Esteba13-Feb-10 15:09
Maria_Esteba13-Feb-10 15:09 
GeneralRe: repost Pin
Garth J Lancaster13-Feb-10 16:14
professionalGarth J Lancaster13-Feb-10 16:14 
GeneralRe: repost Pin
Muammar©13-Feb-10 19:25
Muammar©13-Feb-10 19:25 
AnswerRe: DELETE A PDF IN A WEBBROWSER Pin
Muammar©13-Feb-10 19:40
Muammar©13-Feb-10 19:40 
GeneralRe: DELETE A PDF IN A WEBBROWSER Pin
Luc Pattyn13-Feb-10 23:16
sitebuilderLuc Pattyn13-Feb-10 23:16 
Questionhow to handle optional parameters using DAAB ? plz guide Pin
YawerIqbal13-Feb-10 12:55
YawerIqbal13-Feb-10 12:55 
AnswerRe: how to handle optional parameters using DAAB ? plz guide Pin
Not Active13-Feb-10 14:13
mentorNot Active13-Feb-10 14:13 
GeneralRe: how to handle optional parameters using DAAB ? plz guide Pin
YawerIqbal13-Feb-10 18:48
YawerIqbal13-Feb-10 18:48 
Thanks for your kind attention.

I am not using command object. Rather I am passing parameters in directly in database object. e.g.

public int UpdateInvestmentObjectivesNExperience(CorporateAccount obj)
{
int result;

object objResult = db.ExecuteNonQuery("p_corporateaccount_InvestmentObjectivesNExperience", 2, obj .Id,
obj.SpecuativeGains, obj.HedgeAgainstInvestment, obj.InvestmentObjective,
obj.UndarstandNatureOfTCD, obj.UnderstandRiskOfTCD, obj.HaveExperienceOfTCD,
obj.NoOfMonthsExp, obj.TypesOfProductsDealtIn, obj.BrokersUsed, obj.WasAdviceReq,
obj.AvgTransationSize, obj.AvgNoOfTradesPerWeek);
result = Int32.Parse(objResult.ToString());
return result;
}

If I add a new parameter in stored procedure and set its default value by null or 1, than not only I will have to supply value for it in next functions where I am using it rather I will have to supply value for it in this method as well. (for the parameter that is last in stored procedure and has default value.)

Please guide.

thanks gain
GeneralRe: how to handle optional parameters using DAAB ? plz guide Pin
Not Active14-Feb-10 3:09
mentorNot Active14-Feb-10 3:09 
GeneralRe: how to handle optional parameters using DAAB ? plz guide Pin
YawerIqbal14-Feb-10 19:00
YawerIqbal14-Feb-10 19:00 
GeneralRe: how to handle optional parameters using DAAB ? plz guide [modified] Pin
Not Active15-Feb-10 1:27
mentorNot Active15-Feb-10 1:27 
GeneralRe: how to handle optional parameters using DAAB ? plz guide Pin
YawerIqbal15-Feb-10 4:57
YawerIqbal15-Feb-10 4:57 
GeneralRe: how to handle optional parameters using DAAB ? plz guide Pin
Not Active15-Feb-10 5:44
mentorNot Active15-Feb-10 5:44 
Questionhow to make a default value in combobox where item doesn't exist in collection Pin
tonyonlinux13-Feb-10 10:10
tonyonlinux13-Feb-10 10:10 
AnswerRe: how to make a default value in combobox where item doesn't exist in collection Pin
Abhinav S13-Feb-10 10:16
Abhinav S13-Feb-10 10:16 
GeneralRe: how to make a default value in combobox where item doesn't exist in collection [resolved] Pin
tonyonlinux13-Feb-10 10:32
tonyonlinux13-Feb-10 10:32 
QuestionSend Multicast cumtom packets Pin
churchil_ucv13-Feb-10 7:30
churchil_ucv13-Feb-10 7:30 
QuestionDestroy class Pin
Scalee13-Feb-10 4:57
Scalee13-Feb-10 4:57 
AnswerRe: Destroy class Pin
Saksida Bojan13-Feb-10 5:12
Saksida Bojan13-Feb-10 5:12 
GeneralRe: Destroy class Pin
Scalee13-Feb-10 5:34
Scalee13-Feb-10 5:34 
GeneralRe: Destroy class Pin
Saksida Bojan13-Feb-10 5:51
Saksida Bojan13-Feb-10 5:51 
GeneralRe: Destroy class Pin
Abhinav S13-Feb-10 7:18
Abhinav S13-Feb-10 7:18 
AnswerRe: Destroy class Pin
Not Active13-Feb-10 7:31
mentorNot Active13-Feb-10 7:31 
AnswerRe: Destroy class Pin
Luc Pattyn13-Feb-10 11:33
sitebuilderLuc Pattyn13-Feb-10 11:33 
QuestionExecuting an EXE 24hr online Pin
Gjm13-Feb-10 4:56
Gjm13-Feb-10 4:56 

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.