Hey,
This isnt really the way you should be working with asp.net, this is more of a classic asp technique you have used.
You have controls such as <asp:Gridview> to generate grids, and you can set the value of QtyTb in the codebehind with some code such as QtyTB.Text="Some value"
These will get you started: