Click here to Skip to main content
15,921,716 members
Home / Discussions / C#
   

C#

 
QuestionTooltip for a TrackBar control Pin
Jon Hulatt12-Jul-06 5:53
Jon Hulatt12-Jul-06 5:53 
AnswerRe: Tooltip for a TrackBar control Pin
alexey N12-Jul-06 21:22
alexey N12-Jul-06 21:22 
QuestionInstaller Project, Registry and Regasm Pin
Ranjan Banerji12-Jul-06 5:46
Ranjan Banerji12-Jul-06 5:46 
AnswerRe: Installer Project, Registry and Regasm Pin
Ranjan Banerji11-Sep-06 17:21
Ranjan Banerji11-Sep-06 17:21 
QuestionComboBox lock/suppress DropDown Pin
--Ian12-Jul-06 5:26
--Ian12-Jul-06 5:26 
AnswerRe: ComboBox lock/suppress DropDown Pin
Not Active12-Jul-06 5:33
mentorNot Active12-Jul-06 5:33 
GeneralRe: ComboBox lock/suppress DropDown Pin
--Ian12-Jul-06 6:38
--Ian12-Jul-06 6:38 
GeneralRe: ComboBox lock/suppress DropDown Pin
Not Active12-Jul-06 6:46
mentorNot Active12-Jul-06 6:46 
GeneralRe: ComboBox lock/suppress DropDown Pin
--Ian12-Jul-06 7:13
--Ian12-Jul-06 7:13 
GeneralRe: ComboBox lock/suppress DropDown Pin
VB 8.05-Feb-09 1:01
VB 8.05-Feb-09 1:01 
QuestionComboBox Custom OnPaint Pin
--Ian12-Jul-06 5:15
--Ian12-Jul-06 5:15 
AnswerRe: ComboBox Custom OnPaint Pin
leppie12-Jul-06 7:01
leppie12-Jul-06 7:01 
GeneralRe: ComboBox Custom OnPaint Pin
--Ian12-Jul-06 8:10
--Ian12-Jul-06 8:10 
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 

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.