How to Store information in textbox to sqlserver

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pchaitanya
    New Member
    • Feb 2008
    • 13

    How to Store information in textbox to sqlserver

    hai..
    I have created a textbox at runtime.
    using
    textbox t=new textbox();
    page.form.contr ols.add(t);

    1)I am getting textbox at left top of the page.
    How to Change Position of textbox.
    2)How to insert text in textbox to database on button click.
  • Shashi Sadasivan
    Recognized Expert Top Contributor
    • Aug 2007
    • 1435

    #2
    have you used a database with your application before?

    You can search online and get lots of tutorials based on it.

    In general, you would want to create an sql like
    [CODE=sql]insert into MyTable (ID, text, field2) values (1, the textBoxText, someValue)[/CODE]

    Comment

    Working...