copying data from aspx to aspx.vb

  • Thread starter Thread starter Chris Baruffi
  • Start date Start date
C

Chris Baruffi

I have an object tag, I am not able to register a component because it
is an ocx (I didn't write it and don't have time to fix it). The
object tag captures data from the client when the html code executes.
I am able to populate a textbox from the hmtl by setting it eqaul to
textbox.value. It also displays correctly on the web form when I run
it. However if I try and manipulate the data or use set textbox.value
to set a sql parameter I also get a null value. How do I transfer the
data from a client side control to a server side function or control.
Any help would be greatly appreciated.

Chris
 
Once the data has been collected via the OCX control (placed in the textbox
controls) on the client, do a postback and this way the server can capture
the info from the textboxes.
 
Hi Chris,

Are your textboxes <asp:Textbox> or <input type="text">? If they are asp
server controls then doing a postback should give you access to the values.
If they are HTML controls then adding the 'runat = "server"' property to
your text boxes should also give you access to the values on a postback.
I'm guessing they are HTML controls because you are setting your SQL
parameter with 'textbox.value' instead of 'textbox.Text'. Good luck! Ken.
 
Back
Top