i have talked with him and learned what he meant, he was asking me to use html server controls. If anyone is interested, here is the code. processor devil, i think this is what you are talking about, but i've just learnt about this. and Mr. from Cybosoft, i don't know ajax yet. yashika, code below is what i needed. thank you all so much for your effort and contribution.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script runat="server"> protected void func(object sender, EventArgs e) { text2.Value += "asd"; } </script> </head> <body> <form id="form1" runat="server"> <div> <input type="text" name="text1" id="text1" runat="server" /><br /> <input type="text" name="text2" id="text2" runat="server" /><br /> <input type="button" name="button1" onserverclick="func" value="button1" runat="server" /> </div> </form> </body> </html> On Wed, Aug 5, 2009 at 10:39 AM, Yashika <[email protected]> wrote: > what wud be the values of both boxes before button press? only john in the > second and joe from wher u got joe in second box is that from first one? > > > On 8/5/09, Raghupathi Kamuni <[email protected]> wrote: >> >> Use javascript, set the value of the second textbox from the first >> on onclick event of the button or onblur event of the the first textbox >> >> On Tue, Aug 4, 2009 at 6:38 PM, Mustafa Battal <[email protected]>wrote: >> >>> hello there, >>> >>> i am a newbie in asp.net, so here is my pedalogical homework given by my >>> boss. it's a -supposedly- simple application and it is suppose to do >>> following; >>> >>> >>> there is two textboxes, and a button. when we enter some text to those >>> boxes and press the button, it keeps the text in one box exactly same >>> and some other text to other boxes content(i.e. if there was "john" in >>> second box before pressing button, there will be "john doe" after) >>> >>> >>> he also asked to do this without <asp: elements, so i will be using >>> <input> elements, i am terribly confused right now and i could not find a >>> way on internet >>> to do this and any clue would be appreciated. >>> >>> >>> regards.. >>> >> >> >
