Saving data with button in sql database

Saving data with button in sql database

am 16.10.2007 21:50:21 von Zeljko Bilandzija

Hi,

can somebody help me in this?


I want to insert some data in table on this way; i have button, and in
Button_Click event handler i have integer variable with some data (for
example, variable = 10), and i need to insert this data in database
SomeBase, in table named SomeTable, in column named SomeColumn. (That column
have only one record).

I have on page SqlDataSource control which is binded with database,
DetailsView control that display that data, and button that need to change
data.

I working in Visual Studio 2005, Visual Basic .NET 2005

If anybody can help in this....

Re: Saving data with button in sql database

am 17.10.2007 06:53:44 von notmyfirstname

Zwljko,

This is so basic, that I advice you to get a book about AdoNet and read it.

On the web are thousands of samples how to do it.

Search for AdoNet, Update, SqlDataAdapter

Cor

Re: Saving data with button in sql database

am 17.10.2007 11:50:39 von Zeljko Bilandzija

thanks, i'will find some book

I was think that i can do this without ado.net..

"Cor Ligthert[MVP]" wrote in message
news:83741373-0550-4301-B750-B5A477CE5761@microsoft.com...
> Zwljko,
>
> This is so basic, that I advice you to get a book about AdoNet and read
> it.
>
> On the web are thousands of samples how to do it.
> Search for AdoNet, Update, SqlDataAdapter
>
> Cor