Jack Hard
Freshie
- Messages
- 10
- Joined
- Dec 19, 2012
- Messages
- 10
- Reaction score
- 0
- Points
- 3
<SelectParameters>
<asp:ControlParameter ControlID="TextBox1" Name="model" Type="String" />
</SelectParameters>
My program actually works, I am just curious to find out why. I have a textbox with ID TextBox1 and a SqlDataSource that requires its value as a parameter in a query. So I set the source of the parameter as displayed above. I also have a button near the textbox, a click on which sets the value of the parameter. Why is that? The button has no onclick event.
<asp:ControlParameter ControlID="TextBox1" Name="model" Type="String" />
</SelectParameters>
My program actually works, I am just curious to find out why. I have a textbox with ID TextBox1 and a SqlDataSource that requires its value as a parameter in a query. So I set the source of the parameter as displayed above. I also have a button near the textbox, a click on which sets the value of the parameter. Why is that? The button has no onclick event.