Microsoft Content Management Server - saving data to the database

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > August 2007 > saving data to the database





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author saving data to the database
Ruthie

2007-08-08, 7:16 am

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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com