BTC USD 81,277.7 Gold USD 4,378.12
Time now: Jun 1, 12:00 AM

Set selectparameter from textbox in ASP.NET

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.
 
<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.

have u tried using POST or GET and bound it to the form?
 
Back
Top
Log in Register