Click here to Skip to main content
15,923,168 members
Home / Discussions / C#
   

C#

 
AnswerRe: a question about date calculation ? Pin
foysal mamun28-May-06 22:32
foysal mamun28-May-06 22:32 
QuestionListview DragDrop Visual Themes error... Pin
Leon van Wyk28-May-06 22:08
professionalLeon van Wyk28-May-06 22:08 
QuestionSqlParameter Array ? Pin
Mairaaj Khan28-May-06 21:28
professionalMairaaj Khan28-May-06 21:28 
AnswerRe: SqlParameter Array ? Pin
albCode28-May-06 21:31
albCode28-May-06 21:31 
GeneralRe: SqlParameter Array ? Pin
Colin Angus Mackay28-May-06 21:44
Colin Angus Mackay28-May-06 21:44 
GeneralRe: SqlParameter Array ? Pin
albCode28-May-06 22:24
albCode28-May-06 22:24 
GeneralRe: SqlParameter Array ? Pin
Mairaaj Khan28-May-06 23:34
professionalMairaaj Khan28-May-06 23:34 
AnswerRe: SqlParameter Array ? Pin
Colin Angus Mackay28-May-06 21:59
Colin Angus Mackay28-May-06 21:59 
uroojkhanpk wrote:
can v create an array or collection of SqlParameter and how?


Yes:
SqlParameter[] parameters = new SqlParameter[numParameters];
parameters[0] = new SqlParameter.....



uroojkhanpk wrote:
if so then how it will be added to the SqlCommand object?


Loop round the array adding each parameter. See the example on MSDN: SqlCommand.Parameters Property[^]


"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)

My: Website | Blog
GeneralRe: SqlParameter Array ? Pin
Mairaaj Khan28-May-06 23:48
professionalMairaaj Khan28-May-06 23:48 
Questionhow to remove special char from word doc Pin
ayyp28-May-06 21:14
ayyp28-May-06 21:14 
QuestionConverting Java to C#? Pin
econner28-May-06 17:10
econner28-May-06 17:10 
AnswerRe: Converting Java to C#? Pin
stancrm28-May-06 20:57
stancrm28-May-06 20:57 
AnswerRe: Converting Java to C#? Pin
mayuri12318-Jun-08 2:09
mayuri12318-Jun-08 2:09 
QuestionC# and SNMP Pin
mikeyhardingboyo28-May-06 17:00
mikeyhardingboyo28-May-06 17:00 
Questionbeginner in C# needs help Pin
keroed_edmond28-May-06 15:55
keroed_edmond28-May-06 15:55 
AnswerRe: beginner in C# needs help [modified] Pin
Sean8928-May-06 16:10
Sean8928-May-06 16:10 
GeneralRe: beginner in C# needs help [modified] Pin
keroed_edmond28-May-06 16:34
keroed_edmond28-May-06 16:34 
GeneralRe: beginner in C# needs help [modified] Pin
stancrm28-May-06 21:07
stancrm28-May-06 21:07 
QuestionDropDownList selected Pin
cppdotnet28-May-06 14:14
cppdotnet28-May-06 14:14 
AnswerRe: DropDownList selected Pin
Tristan Rhodes28-May-06 14:46
Tristan Rhodes28-May-06 14:46 
GeneralRe: DropDownList selected Pin
cppdotnet28-May-06 16:19
cppdotnet28-May-06 16:19 
QuestionControlling Two Panes from One Scrollbar Pin
Dan Neilsen28-May-06 13:43
Dan Neilsen28-May-06 13:43 
QuestionTargetParameterCountException Pin
thepersonof28-May-06 12:12
thepersonof28-May-06 12:12 
AnswerRe: TargetParameterCountException Pin
leppie28-May-06 18:35
leppie28-May-06 18:35 
QuestionParsing XML with gzipped DTD Pin
viniciusweb28-May-06 11:54
viniciusweb28-May-06 11:54 

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.