View Single Post
  #1 (permalink)  
Old May 13th, 2006, 09:55 AM
bsd bsd is offline
Registered User
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default very urgent question

Hello..
can any one help me in this problem
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

Reply With Quote