Im trying to make a very basic addition program but Im having a problem finding code which will help me get started.<BR><BR>What I would like to do is have 3 text boxes:<BR>Textbox1 + Textbox2 = Textbox3<BR><BR>All I really need is the code behind just to get started. If anyone could help, I would really appreciate it.<EOP>So this is for a real VB application? I am going to answer it as a standalone VB application then... <BR><BR>Since textboxes are usually text, you should use the Val() function.<BR><BR>For example, if you have a textbox for a quantity of items to buy, let's call it "txtQuantity", you would get the integer value like this: <BR><BR>intQuantity = Val(txtQuantity.Text)<BR><BR>Was this what you were asking? <BR><BR>-Vadim C.<BR>In VBScript just letting you know, you use the function CInt().<BR><BR>It takes a variable and converts its subtype into an integer.<BR><BR>Ex.: Like the one in my previous post, you have a textbox in your page called txtQuantity, on your page you call the quantity value for a calculation, you get it as follows:<BR><BR>intQuantity = CInt(txtQuantity.value)<BR><BR>Hope this covers all bases now with regards to your question. <BR><BR>-Vadim C.<BR><BR>What Im trying to do is just learn ASP.NET correctly, starting very very slowly. So one page is an .aspx with no actual code, just the layout and then I would like to have all the code in an .aspx.vb file. <BR><BR>I know I can just put it all in one page if I wanted to but....I like to make things difficult =)<BR>supposed to make life better for us all!so why do you think that option was included?I personally think that is the right thing to do. When it comes down to it, the codebehind was created to let us seperate the code from the ui. That way when you are working with a team and you have the designers working on the interface changing table widths and such, you the programmer can still be hacking away in the codebehind.<BR><BR>I think it's just a good practice to get into.