Hmm. While you most certainly can do things this way, I would not recommend it. While it was certainly the norm in the days of Classic ASP to mix Server code in with HTML that model has somewhat been broken with ,NET (Unless of course you are using .NET MVC then this type of paradigm is the way to go).
Since you are conveting a standard HTML Input into a .NET Textbox Server Control you could do something like this:
protected void Page_Load(object sender, EventArgs e)
TextBox1.Text = Reqest["v"];
that way the code on the aspx page would simply look like this:
<asp:TextBox ID="TextBox1" runat="server" />
This keeps your UI code much cleaner and helps prevent management nightmares down the road.
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click
on their post!
"Easy is the path to wisdom for those not blinded by themselves."