Binds the value of a property of a Control to a parameter object.
Questions tagged [controlparameter]
26 questions
5
votes
1 answer
Adding ControlParameter to SqlDataSource prevents query and databinding?
I have a SqlDataSource that calls a stored procedure and it works fine. If I add a tag to add an additional argument, then the query never fires and the databinding never occurs. Suggestions?
This works:

Seth Petry-Johnson
- 11,845
- 7
- 49
- 69
4
votes
2 answers
Using a dropdownlist control inside a formview
I am new to asp.net and i have a problem using a dropdownlist control inside a formview and passing its value to the related sqldatasource. When i use the code below i get the following exception
Exception Details: System.InvalidOperationException:…

rematnarab
- 1,277
- 4
- 22
- 42
2
votes
1 answer
ASP.NET Cannot find object in parameter ControlParameter
I'm trying to get value from DropDownList as a parameter for SQL query. I have a GridView and SqlDataSource. And I can't reach DropDownList ("DDLName") inside the GridView. When "DDLName" is outside the GridView, everything is working, but when I…

mover
- 25
- 4
2
votes
1 answer
Cannot Find Control ID in ControlParameter
I am trying to insert values from a textbox but I get an error that it cannot find the controlid in the controlparameter. The TextBox is inside a formview, which is inside a listview. The SqlDataSource is outside the ListView.
My InsertButton_Click…

user3339242
- 631
- 2
- 15
- 32
1
vote
1 answer
SQLDataSource inside GridView
for the past days i've been trying to find a solution for my problem but so far i couldn't.
I Have a Gridview that in edit mode, one of the fields have a DropDownList of people that is populated by a Select that uses two other fields of that row…

Gabriel Marques
- 276
- 1
- 3
- 15
1
vote
1 answer
1
vote
2 answers
SqlDataSource ControlParameter not working
I have a dropdown (selProject) populated by a SQL table. The value is the id field, the name is the name field.
I have a gridview control fed by a sqldatasource.
What I want to do is to conditional where clause based on the selProject dropdown. I…

C Palmer
- 17
- 6
1
vote
1 answer
How to pass an ID from a repeater row to a nested gridview?
QUESTION
If you have a gridview inside a repeater, how do you pass a primary key ID to the gridview where the primary key relates to the repeaters item template row?
I am currently attempting to do this by using a hiddenfield that contains the PK…

DreamTeK
- 32,537
- 27
- 112
- 171
1
vote
1 answer
My dropdownlist is not showing my hard coded listitem
I have four dropdownlists, all dependant on the one before it, using ControlParameters and AutoPostBack="true", they all work perfectly - except the last one. For some reason, the forth doesn't show my hard coded "--All--" item, and I need this so…

russds
- 845
- 5
- 25
- 48
1
vote
2 answers
Can an ASP.Net asp:ControlParameter ControlID be a public shared variable instead of an asp:label?
Can an ASP.Net asp:ControlParameter ControlID be a public shared variable instead of an ASP:label?
We were using an asp:label as a parameter for a DataSource but now want to use a public shared variable instead of the label.
This is the markup of…

Emad-ud-deen
- 4,734
- 21
- 87
- 152
1
vote
0 answers
Setting up an ASP:ControlParameter to use a variable to get values from
In an ASP.Net VB.Net code-behind file we have this variable:
Public Shared blnTuesdayCheckBoxState As Boolean
We are trying to use the variable for an ASP:ConrolParameter but seem to not have everything set up correctly.
Can you show me what I need…

Emad-ud-deen
- 4,734
- 21
- 87
- 152
1
vote
1 answer
SqlDatasource Update query controlparameter not picking the new value
if you have not encountered this problem and I have to upload my code in order to explain it for you or for you to be able to debug it, then this question is not for you.
I know I can solve this problem by using code-behind, but I don't want to do…

Aamir
- 791
- 3
- 15
- 28
0
votes
1 answer
SelectCommand doesn't work when ControlParameter is not given
I have a textbox with id = txt_SearchLibrary which is also my controlparameter that I am using to filter my sqldatasource, I want to get all the results when I don't type something in my searchtext box, but below codes results 0 rows. I tried 2 way…

HOY
- 1,067
- 10
- 42
- 85
0
votes
5 answers
ASP.NET Could not find control in ControlParamater
I'm pretty lost at this point (been working at it for a while not and am hitting a wall / deadline) but the error message I am being thrown is after I hit btnupdate to update the fields in the database.
Full Error Message:
Could not find control…

user1062411
- 65
- 2
- 4
- 12
0
votes
1 answer
PropertyName must be set to a valid property name of the control named 'xxx' in ControlParameter error
I am trying to properly define the control parameters for @NumOfTransactions and I am getting an error "PropertyName must be set to a valid property name of the control named 'rptvwTransactionResearch' in Control Parameter 'NumOfTransactions'.
My…

brianw921
- 1
- 2