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

C#

 
GeneralRe: ComboBox Custom OnPaint -- CODE Pin
--Ian13-Jul-06 3:18
--Ian13-Jul-06 3:18 
QuestionGDI - filling color in a region Pin
Imtiaz Murtaza12-Jul-06 5:03
Imtiaz Murtaza12-Jul-06 5:03 
AnswerRe: GDI - filling color in a region Pin
Not Active12-Jul-06 5:13
mentorNot Active12-Jul-06 5:13 
GeneralRe: GDI - filling color in a region Pin
Imtiaz Murtaza12-Jul-06 5:33
Imtiaz Murtaza12-Jul-06 5:33 
GeneralRe: GDI - filling color in a region Pin
Not Active12-Jul-06 5:43
mentorNot Active12-Jul-06 5:43 
AnswerDrawArc Pin
Ennis Ray Lynch, Jr.12-Jul-06 6:18
Ennis Ray Lynch, Jr.12-Jul-06 6:18 
QuestionHow to avoid popup window during USB detection. Pin
sai_akkina12-Jul-06 5:01
sai_akkina12-Jul-06 5:01 
QuestionQuestion on dealing with output parameters Pin
leckey12-Jul-06 5:00
leckey12-Jul-06 5:00 
I have a stored proc in which I want to return a value. This is what I have in my c# code:
private void btnAdd_Click(object sender, System.EventArgs e)<br />
		{<br />
			strPartNumberInputReference = txtSearchPart.Text;<br />
			//strPartTypeID = ddPartType.SelectedValue;<br />
			//strPartTypeID = ddPartType.SelectedItem;<br />
			strDwgNumber = txtDwgNumber.Text;<br />
			strDwgRevision = txtDwgRevision.Text;<br />
			strDwgLocation = txtDwgLocation.Text;<br />
			<br />
			ds2 = new DataSet();<br />
			SqlParameter param1 = new SqlParameter("@PartNumber", strPartNumberInputReference);	<br />
			SqlParameter param2 = new SqlParameter("@DwgNumber", strDwgNumber);<br />
			SqlParameter param3 = new SqlParameter("@DwgRevision", strDwgRevision);<br />
			SqlParameter param4 = new SqlParameter("@DwgLocation", strDwgLocation);<br />
			SqlParameter param5 = new SqlParameter("@PartTypeDescription", strPartTypeID);<br />
			SqlParameter param6 = new SqlParameter(@ID, 0);<br />
			param6.Direction = ParameterDirection.Output;<br />
			ds2=SqlHelper.ExecuteDataset(this.connectionString, CommandType.StoredProcedure,"dbo.UpdatePart_Step_1_Test", param1, param5);<br />
			dt2 = ds2.Tables[0];<br />
			//dgParts.DataSource=dt2;		<br />
		}


My question is on the bolded portions since this is what I just added. I haven't worked with ParameterDirection.Output before. I have (@ID, 0); I put the 0 in there because I saw a response to a similar question on CodeProject. Is this what it really should be? I am returning @ID which is an integer. If I write (@ID, int) the compiler doesn't like it.

Thanks!
AnswerRe: Question on dealing with output parameters Pin
Not Active12-Jul-06 5:06
mentorNot Active12-Jul-06 5:06 
GeneralRe: Question on dealing with output parameters Pin
leckey12-Jul-06 5:11
leckey12-Jul-06 5:11 
AnswerI try to aviod output parameters Pin
Ennis Ray Lynch, Jr.12-Jul-06 6:15
Ennis Ray Lynch, Jr.12-Jul-06 6:15 
GeneralRe: I try to aviod output parameters Pin
leckey12-Jul-06 6:18
leckey12-Jul-06 6:18 
GeneralRe: I try to aviod output parameters Pin
Ennis Ray Lynch, Jr.12-Jul-06 6:24
Ennis Ray Lynch, Jr.12-Jul-06 6:24 
QuestionNot Enough storage available mscorlib Pin
Flash-Over12-Jul-06 4:57
Flash-Over12-Jul-06 4:57 
Questioncombobox Pin
gsvgnani12-Jul-06 4:24
gsvgnani12-Jul-06 4:24 
AnswerRe: combobox Pin
Christian Graus12-Jul-06 4:29
protectorChristian Graus12-Jul-06 4:29 
AnswerClear the combo box? Pin
Ennis Ray Lynch, Jr.12-Jul-06 4:37
Ennis Ray Lynch, Jr.12-Jul-06 4:37 
QuestionBrowser - Show Friendly HTTP Error Messages Pin
nlarson1112-Jul-06 4:18
nlarson1112-Jul-06 4:18 
QuestionCatching Dynamic Button Events (C# / ASP.NET) Pin
StewartS12-Jul-06 4:11
StewartS12-Jul-06 4:11 
AnswerRe: Catching Dynamic Button Events (C# / ASP.NET) Pin
Josh Smith12-Jul-06 4:26
Josh Smith12-Jul-06 4:26 
GeneralRe: Catching Dynamic Button Events (C# / ASP.NET) Pin
jabberman12-Jul-06 4:50
jabberman12-Jul-06 4:50 
AnswerRe: Catching Dynamic Button Events (C# / ASP.NET) Pin
Christian Graus12-Jul-06 4:30
protectorChristian Graus12-Jul-06 4:30 
GeneralRe: Catching Dynamic Button Events (C# / ASP.NET) Pin
jabberman12-Jul-06 4:45
jabberman12-Jul-06 4:45 
GeneralRe: Catching Dynamic Button Events (C# / ASP.NET) Pin
Christian Graus12-Jul-06 4:47
protectorChristian Graus12-Jul-06 4:47 
GeneralRe: Catching Dynamic Button Events (C# / ASP.NET) Pin
jabberman20-Jul-06 5:22
jabberman20-Jul-06 5:22 

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.