PDA

View Full Version : asp.net Textbox problem


Aisha
05-13-2006, 04:28 PM
Hello..
can any one help me in this problem :confused: :confused:
if I have this code ..

<HTML>
<body>
<input id=T1 type=text size=20 name=T1 runat="server">

<form id=Form1 runat="server">

<asp:textbox id=Ts1 Runat="server" name="Ts1" size="20" />

<asp:imagebutton id=Imagebutton1 onclick = trans runat="server" ImageUrl="pic1/button4C.jpg"></asp:imagebutton>
</form>

<script>
Sub trans(sender As Object, e as ImageClickEventArgs)**
Ts1.Text= "" & T1.value
btnLogin_OnClick(sender,e)
End Sub
</script>

<script language=VB runat="server">

Sub btnLogin_OnClick(Src As Object, E As ImageClickEventArgs)
.....
this function is using the "text" in the Ts1 to search for it in the database
...
</script>
</body>
</html>

this function does not pass the value of T1 to Ts1
note :
I don't want to put the " input id=T1 " inside a form

please help me I really need it :(

Brandoe85
05-14-2006, 09:46 AM
Sorry, I don't understand? :confused:

chud_wallice
05-14-2006, 07:58 PM
I don't want to put the " input id=T1 " inside a form please help me I really need it :( [/COLOR] if you want it to be processed by the server it will have to be.

Malith
05-18-2006, 12:42 PM
do u want to get value from input box or do u want to get some value from another place and show in the text area is correct?

when do u need second thing so u no need to bother about the input ID

am i correct????

do u want get some value from the input box definitly u must acess the input ID.

cheers

malith