Binds the value of a property of a Control to a parameter object.
Questions tagged [controlparameter]
26 questions
0
votes
2 answers
controlparameter not found
Error: Could not find control 'mytextfield' in ControlParameter 'mycontrolparam'.
The error is because "mytextfield" is inside a panel control…

TheTechGuy
- 16,560
- 16
- 115
- 136
0
votes
1 answer
How do I filter on 5 parameters, including a dropdown list using filter expression?
I'm trying to filter my gridview with 5 different parameters. I can get it to work fine but the issue arises when I add the "All" into the dropdownlist. If I select All in the dropdownlist I can't filter anymore. It will show the results for…

Dr.Prog
- 229
- 3
- 13
0
votes
0 answers
How to use LIKE operator on DATE/TIME using a Text control parameter in asp.net?
I am trying to use a like parameter to get the year within a date field in my database using a control parameter. I need this to work on the aspx not the aspx.cs page. Below is my code:

Danielle McKay
- 23
- 1
- 7
0
votes
0 answers
Change ControlParameter ControlID property from VB
I have a gridview created in asp.net within Visual Studio.
There are some control parameters in my SqlDataSource1 to identify some drop down lists for editing within my gridview. I currently have the "ControlID" property hard coded based on the name…

Blade
- 21
- 7
0
votes
1 answer
Error trying to filter drop down list with a Gridview field value via a controlparameter
I'm getting the dreaded 'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value error when trying to filter a drop down list in a templatefield using one of the other boundfield…

Defdaz
- 41
- 1
- 3
0
votes
1 answer
Using a ControlParameter in FilterParameters when the property is null
I have a DataList and FormView; they have separate datasources, though they pull the same info. The FormView's datasource has a FilterExpression to pull whatever's been selected on the DataList. On first load, the SelectedValue of the DataList is…

end-user
- 2,845
- 6
- 30
- 56
0
votes
1 answer
How to access code behind on MasterPage for ControlParameter
I'm trying to find this String in my code behind on my masterpage, however since my ControlId="__Page" it's looking for the string on the child page instead of the master page
user222427
0
votes
2 answers
Could not find control 'MainContent_DropDownList1' in ControlParameter 'Company'
I was debugging and I got the strange error listed above. It was weird because my Dropdownlist is called DropDownlist1. When I set it equal to that earlier, the debugger told me it could not cast it to a string.
So here is my C#, where the problem…

Alexander Ryan Baggett
- 2,347
- 4
- 34
- 61
0
votes
1 answer
UpdateCommand problem in a TemplateField in asp.net GridView
I have the following grid:
asp.net
gridview
datagridview
updatecommand
controlparameter

Shankar
- 1,634
- 1
- 18
- 23
0
votes
1 answer
User input query parameters in Visual Studio
I'm new to both Visual Studio and ASP.NET.
I'm creating this project for my Data Base course in the university and I want to make it web-based with Visual Studio. So I've created my site, imported the DB, etc. and now I want to create a query with…

bbahov
- 109
- 7
0
votes
2 answers
How to pass value using ImageButton to update database?
I having problem when I try to pass value from ImageButton to a controlparameter, then the update command can retrieve the value from control parameter to execute update statement.
I want to pass value Status=1 when ImageButton APPROVE is clicked,…

mcheng
- 153
- 7
- 21