saving data to the database
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > saving data to the database




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    saving data to the database  
Ruthie


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-08-07 12:16 PM

hi,
i need help!
i am developing a web application where the user inputs some data via
textboxes and it is saved in a database. i have written the following
code to pass the parameter values to a gridview. it generates no
errors but nothing is displayed on the gridview page. what method do i
use to save the data to the database since this does not work?


public void login1_Click(object sender, EventArgs e)
{



addstudentinfo.InsertParameters["Surname"].DefaultValue =
TextBox1.Text.ToString();
addstudentinfo.InsertParameters["Names"].DefaultValue
=
TextBox2.Text.ToString();
addstudentinfo.InsertParameters["Regno"].DefaultValue
=
TextBox3.Text.ToString();
}
Thank you






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:09 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register